/* PALETA DE COLORES GLOBAL Y VARIABLES */
:root {
  --rojo: #e62117;
  --negro: #111111;
  --blanco: #ffffff;
  --gris-claro: #f4f4f4;
  --gris-oscuro: #333333;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: var(--blanco);
  color: var(--negro);
}

/* NAVBAR Y FOOTER EN NEGRO */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background: var(--negro);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.logo h1 {
  color: var(--blanco);
  margin: 0;
  font-size: 2rem;
  font-family: 'Arial Black', sans-serif;
}

.logo span { color: var(--rojo); }

nav a {
  color: var(--blanco);
  text-decoration: none;
  margin-left: 25px;
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  transition: color 0.3s;
}

nav a:hover { color: var(--rojo); }

footer {
  background: var(--negro);
  color: #888;
  padding: 30px;
  text-align: center;
  font-weight: bold;
}

/* PORTADA RELLENA Y UN POCO MÁS GRANDE */
.hero {
  position: relative;
  height: 680px; 
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background-size: cover;
  background-position: center center; 
  background-repeat: no-repeat;
  background-color: var(--negro); 
}

.hero::before {
  display: none !important; 
}

.hero-content {
  
  z-index: 2;
  padding: 20px;
  border-radius: 10px;
}

/* --- 1. DISEÑO BASE (COLOR Y FORMA) --- */
.btn {
  background: linear-gradient(45deg, #e62117, #ff6b00);
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: var(--blanco);
  text-decoration: none;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(230,33,23,0.5);
  transition: all 0.3s ease;
  display: inline-block;
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
}

.btn-full { width: 100%; margin-top: 15px; }

/* --- 2. ROMPEMOS LA JAULA DE LA PORTADA --- */
.hero-content {
  position: static !important; 
}

/* --- 3. UBICACIÓN EXACTA DEL BOTÓN EN COMPUTADOR --- */
.btn-hero {
  position: absolute !important;
  bottom: 80px !important; /* 👈 AUMENTA ESTE NÚMERO PARA SUBIRLO MÁS (Ej: 100px o 120px) */
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 999 !important;
  
  /* Mantenemos el tamaño grande en PC */
  padding: 18px 50px !important;
  font-size: 1.4rem !important;
  white-space: nowrap !important;
}

/* --- PANEL DE INFO RÁPIDA (ESTILO TARJETAS LLAMATIVAS) --- */
.panel-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  padding: 30px;
  background-color: #f8f9fa; 
  border-radius: 20px;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
}

.panel-item {
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); 
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  min-width: 10px;
}

.panel-item::before {
  content: '';
  position: absolute;
  top: 0; 
  left: 0; 
  width: 4px; 
  height: 100%;
  background: linear-gradient(135deg, #FF6B6B, #FF8E53); 
  opacity: 0;
  transition: opacity 0.3s ease;
}

.panel-item:hover {
  transform: translateY(-5px); 
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.panel-item:hover::before {
  opacity: 1; 
}

.icono-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 142, 83, 0.1)); 
  color: #FF6B6B; 
}

.icono-panel svg {
  width: 28px;
  height: 28px;
}

.texto-panel h4 {
  margin: 0 0 6px 0;
  color: #1a1a1a;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.texto-panel p {
  margin: 0;
  color: #666;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.8;
}

.texto-panel strong {
  color: #FF6B6B; 
  font-weight: 600;
}

/* TÍTULOS DE SECCIONES */
.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin: 0 0 40px 0;
  text-transform: uppercase;
  font-family: 'Arial Black', sans-serif;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 5px;
  background: var(--rojo);
  margin: 10px auto 0;
}

.title-white { color: var(--blanco); }

/* SECCIONES BASE */
section { padding: 80px 5%; }
.seccion-oscura { background-color: var(--negro); color: var(--blanco); }

/* --- TARJETAS DE SERVICIOS --- */
#servicios {
  background-color: var(--blanco); 
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--blanco);
  color: #000000; 
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); 
  border-bottom: 5px solid var(--rojo); 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-12px); 
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); 
}

.card h3 {
  color: #000000; 
  font-family: 'Arial Black', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.card p {
  color: #333333; 
  font-weight: 500;
  font-size: 1.05rem;
}

/* --- ESTILOS DEL CARRUSEL --- */
.carousel-container {
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none; 
}

.carousel-container::-webkit-scrollbar {
  display: none; 
}

.carousel-track {
  display: flex;
  gap: 15px; 
  padding: 10px 0;
}

.foto-carrusel {
  scroll-snap-align: start; 
  flex: 0 0 calc(33.333% - 15px); 
  display: flex;
  flex-direction: column;
  background: #222;
  border-radius: 8px;
  overflow: hidden;
}

.foto-carrusel img {
  width: 100%;
  height: 250px;
  object-fit: scale-down;
}

.foto-titulo {
  padding: 10px;
  text-align: center;
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
}

/* OPINIONES Y FORMULARIO */
#opiniones-ver { background: var(--gris-claro); }
#dejar-opinion { background: var(--blanco); }

.comentarios-container { max-width: 1000px; margin: 0 auto; }

.comentario-form {
  background: var(--blanco);
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 50px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  border-top: 5px solid var(--negro);
}

.comentario-form input, .comentario-form textarea, .comentario-form select {
  width: 100%;
  padding: 15px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  box-sizing: border-box;
}

/* --- NUEVO CARRUSEL DE COMENTARIOS --- */
.comentarios-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.comentarios-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory; 
  padding: 15px 5px;
  width: 100%;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.comentarios-grid::-webkit-scrollbar {
  display: none;
}

.comentario-card {
  flex: 0 0 320px; 
  scroll-snap-align: center; 
  background: var(--blanco);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-top: 4px solid var(--rojo);
  box-sizing: border-box;
}

.arrow-btn {
  background-color: var(--rojo);
  color: var(--blanco);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.2rem;
  cursor: pointer;
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s, background 0.3s;
}

.arrow-btn:hover {
  background-color: #cc1d14;
  transform: scale(1.1);
}

.arrow-btn.left { left: -20px; }
.arrow-btn.right { right: -20px; }

/* CONTACTO Y REDES */
#contacto { background: var(--gris-claro); text-align: center; }
.dir { font-size: 1.2rem; font-weight: bold; margin-bottom: 30px; }

.social-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
}

.social-btn {
  width: 300px;
  padding: 15px;
  color: var(--blanco);
  text-decoration: none;
  font-weight: bold;
  border-radius: 10px;
  font-size: 1.1rem;
  transition: transform 0.3s, filter 0.3s;
}

.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.facebook { background: #1877F2; }

.social-btn:hover { transform: scale(1.05); filter: brightness(1.1); }

.whatsapp-text { font-size: 1.2rem; font-weight: bold; margin-bottom: 15px; }
.btn-whatsapp { background-color: #25D366; }
.btn-whatsapp:hover { background-color: #1ebd5a; }

/* BOTÓN WHATSAPP FLOTANTE */
.wa-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  padding: 18px;
  border-radius: 50%;
  font-size: 22px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.wsp-fijo {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  z-index: 1000;
  transition: transform 0.3s;
}

.wsp-fijo:hover {
  transform: scale(1.1);
}

/* --- ESTRELLAS RATING PARA COMENTARIOS --- */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 5px;
  margin: 5px 0 20px 0;
}
.star-rating input { display: none; }
.star-rating label {
  font-size: 40px;
  color: #cccccc; 
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #ff9800; 
}


/* ========================================================
   DISEÑO ÚNICO PARA CELULARES (RESPONSIVE)
   Aquí agrupamos TODOS los ajustes para pantallas pequeñas
======================================================== */
@media (max-width: 768px) {
  
  /* Menú y Secciones */
  header { flex-direction: column; padding: 15px; }
  nav { margin-top: 15px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
  nav a { margin: 0; font-size: 1rem; }
  section { padding: 50px 20px; }
  
  /* Portada (Banner Ajustado) */
  .hero { 
    height: 150px; 
    background-size: cover; /* cover llena el espacio sin dejar huecos negros */
    background-position: center center; 
  }

  /* UBICACIÓN EXACTA DEL BOTÓN EN CELULAR */
  .btn-hero {
    bottom: 10px !important; /* 👈 AUMENTA ESTE NÚMERO PARA SUBIRLO EN CELULAR */
    padding: 10px 25px !important; /* Tamaño perfecto para celular */
    font-size: 1rem !important;
  }
  
  /* Carrusel de Trabajos */
  .foto-carrusel { flex: 0 0 100%; }
  .foto-carrusel img { height: 250px; }
  
  /* Carrusel de Opiniones */
  .comentario-card { flex: 0 0 85%; }
  .arrow-btn { display: none; } /* Ocultar flechas para deslizar con el dedo */
  
  /* Panel de Información Rápida (4 Tarjetas) */
  .panel-info {
    gap: 10px; 
    padding: 25px 2%; 
  }
  .panel-item { padding: 15px 5px; }
  .icono-panel {
    width: 45px;
    height: 45px;
    font-size: 1.4rem;
    margin-bottom: 10px;
  }
  .texto-panel h4 { font-size: 0.75rem; }
  .texto-panel p { font-size: 0.7rem; }
  
  /* Redes Sociales */
  .social-btn { width: 100%; box-sizing: border-box; }
}