/*
Color Palette

#1B3B3D Verde
#1B2A3D Azul
#E4DCD1 Greige
#DE955D Naranja 
#D4BA68 Amarilla 
#4b5563 Texto
H2 34
P 16
*/

/* =========================
   Body 
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}


@media (max-width: 768px) {
  html {
    scroll-padding-top: 10px; /* 🔥 margen pequeño como quieres */
  }
}


body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg,#E4DCD1,#d6cdc3);
    position: relative;    
    overflow-x: hidden;
    overscroll-behavior: none; /* 🔥 evita rebotes raros */

}


html, body {
  height: 100%;
  overflow-x: hidden;
}

input {
  font-size: 16px; /* 🔥 clave para iOS */
}



/* =========================
   HEADER
========================= */

.hero-header {
    background: linear-gradient(135deg, #0f172a, #1B2A3D);
    color: white;
    padding: 30px 20px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo-box {
    flex: 0 0 auto;
}

.logo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    background-color: white;
    border-radius: 50%;
}

.header-text {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-size: 2.2rem;
    margin: 0;
    
}

.slogan {
    font-size: 1.05rem;
    color: #DE955D;
    margin: 0;
    align-self: flex-end;
}


/* =========================
   NAVBAR
========================= */


.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;

  background: linear-gradient(135deg, #1B3B3D, #234E52);

  display: flex;
  justify-content: center;
  align-items: center;

  /* 🔥 transiciones específicas (mejor que "all") */
  transition: 
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    box-shadow 0.4s ease,
    border-bottom 0.4s ease;
}


.navbar.scrolled {
  background: rgba(37, 98, 102, 0.35);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(255,255,255,0.06);

  box-shadow: 0 10px 30px rgba(0,0,0,0.25);

  transform: translateY(0); /* prepara para animaciones futuras */
}


.menu {
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =========================
   ITEMS DEL MENÚ
========================= */

.menu-item {
    position: relative;
}

.menu-item > a,
.submenu-toggle {
    display: block;
    padding: 18px 24px;
    color: #ffffff; /* Color del texto del menu*/
    text-decoration: none;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.menu-item > a:hover,
.submenu-toggle:hover,
.menu-item.active > .submenu-toggle {
    background-color: #1B2A3D; /* al hacer hover cambia a azul el menu*/
    color: #ffffff;
}

.arrow {
    margin-left: 6px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.menu-item.active .arrow {
    transform: rotate(180deg);
}

/* =========================
   SUBMENÚ
========================= */

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    list-style: none;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(12, 18, 82, 0.5); /*sombra del submenu*/
}

.menu-item.active .submenu {
    display: block;
}

.submenu li a {
    display: block;
    padding: 14px 18px;
    text-decoration: none;
    color: #1f2937;
    background-color: #ffffff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.submenu li a:hover {
    background-color: #eff6ff;
    color: #1B3B3D;
}

/* Botón de WhatsApp */
.btn-whatsapp {
  background-color: #25D366;
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none; /* ✅ quita el subrayado */
  
  position: relative;
  overflow: hidden;

}

.btn-whatsapp:hover {
  background-color: #1ebe5d;
  transform: scale(1.05);
}

.btn-whatsapp::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.btn-whatsapp:hover::after {
  left: 120%;
}

/* Botón hamburguesa (oculto en desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

.menu-toggle.active {
    transform: rotate(90deg);
}

/* =========================
   RESPONSIVE BARRA
========================= */

/*Medida de Tablet pero aplcia de 1024 hacia abajo*/ 
@media (max-width: 1024px) {
  .navbar {
    justify-content: space-between;
    padding: 10px 20px;
  }


  .menu-item {
      width: 100%;
  }

  .menu-item > a,
  .submenu-toggle {
      width: 100%;
      text-align: left;
      padding: 16px 20px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .submenu {
      position: static;
      width: 100%;
      border-radius: 0;
      box-shadow: none;
  }

  .submenu li a {
      padding-left: 35px;
  }

      .navbar {
      justify-content: space-between;
      padding: 10px 20px;
  }

  .menu-toggle {
      display: block;
  }

  .menu {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background-color: #1B3B3D;

      flex-direction: column;
      align-items: stretch;

      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
  }

  /* cuando se abre */
  .menu.active {
      max-height: 500px; /* puedes ajustar si crece */
  }

  .btn-whatsapp {
    display: block;
      
    width: calc(100% - 30px); /* resta el margen */
    margin: 10px auto;        /* centra */

    text-align: center;

    background-color: #25D366;
    color: #fff !important;

    
    padding: 15px 10px;
    border-radius: 12px; /* opcional: estilo tipo menú */

    font-size: 16px;
    font-weight: 600;
  }

  .btn-whatsapp:hover {
      background-color: #1ebe5d;
      transform: none; /* para que no "salte" en mobile */
  }
}


/* =========================
   CONTENIDO
========================= */

.section {
    position: relative;
    max-width: 1000px;
    margin: 100px auto;
    
    
    min-height: unset;
    height: auto;

    padding: 70px 40px 60px; /* reducimos un poco la altura */
    
    display: flex;
    flex-direction: column;
    justify-content: center; /* ✅ centra el contenido verticalmente */

    background: linear-gradient(145deg, #ffffff, #f9fafb);
    
    border-radius: 20px;
    box-shadow: 
        0 10px 25px rgba(0,0,0,0.06),
        0 4px 10px rgba(0,0,0,0.04);
}

.section h2 {
    position: relative;
    text-align: center;
    font-size: 34px;
    font-weight: 700;
    color: #DE955D;
    margin-bottom: 35px;
}

/* Línea decorativa */
.section h2::after {
    content: "";
    display: block;
    
    width: 60px;
    height: 3px;
    
    background: linear-gradient(to right, #DE955D, #f3c29b);
    
    margin: 12px auto 0;
    border-radius: 2px;
}

.section p {
    font-size: 16px;
    color: #374151;
    text-align: justify;
    margin-right: 15px;
    margin-bottom: 15px;

}

/* Círculo */
.logo-circle {
    position: absolute;
    top: -55px;
    left: 50%;
    transform: translateX(-50%);
    
    width: 110px;
    height: 110px;

    background: linear-gradient(145deg, #ffffff, #f3f4f6);
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 3px solid #de955d33;

    box-shadow: 
        0 10px 25px rgba(0,0,0,0.15),
        inset 0 2px 6px #ffffff99;
}

/* Logo dentro del círculo */
.logo-circle img {
    width: 80%;
    height: auto;
    object-fit: contain;
}

.logo-circle {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-circle:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.text-box {
    background: rgba(255, 255, 255, 0.35); /* más transparente */
    
    backdrop-filter: blur(16px); /* MÁS blur */
    -webkit-backdrop-filter: blur(16px);

    padding: 20px 22px;
    border-radius: 14px;

    margin-bottom: 18px;

    border: 1px solid rgba(255, 255, 255, 0.5);

    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.text-box p {
    margin: 0;
    color: #4b5563;
    line-height: 1.8;
}

.text-box {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.text-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

/* =========================
   RESPONSIVE Inicio - Historia
========================= */

@media (max-width: 1024px) {
    .section {
        margin: 70px 20px; 
        padding: 60px 20px;
    }

    .text-box {
        opacity: 0;
        transform: translateY(40px);
        transition: 
            opacity 0.6s ease,
            transform 0.6s ease;
    }

    .text-box.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/*
============================
Cards: Conocenos: Fase 1
============================
*/

.cards-section {
  padding: 110px 20px;
  background: linear-gradient(135deg,#e6ded4,#d6cdc3);
}

.header-grid {
  max-width: 1250px;
  margin: 0 auto 45px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 30px; /* igual al gap de las cards */
}

.section-header {
  grid-column: 1 / -1;
  justify-self: center;
  text-align: center;
  position: relative;
  padding-top: 70px;

  /* 🔥 CAMBIO CLAVE */
  width: 100%;
  max-width: 1100px; /* controla que no sea exagerado en pantallas grandes */

  /* GLASS */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-radius: 20px;
  padding: 50px 40px 40px 40px;

  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.section-header::after {
  content: "";
  position: absolute;

  bottom: 0;
  left: 12px;   /* 🔥 separa de los bordes redondeados */
  right: 12px;

  height: 3px;  /* grosor de la línea */

  background: #ffffff33; /* color de la línea */

  border-radius: 10px; /* suaviza los extremos */
}

.section-header:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
}

.section-header h2 {
  font-size: 34px;
  color: #DE955D; /* tono dorado elegante */
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.section-header h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #ffffff;
  margin: 12px auto 0;
  border-radius: 10px;
}

.section-header p {
  width: 100%;
  text-align: justify;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.8;
}

.header-circle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);

  border: 2px solid #ffffff4d;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.header-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 🔥 importante para que no se deforme */
}

/*
============================
Cards: Conocenos: Fase 2
============================
*/

.cards-container {
  max-width: 1250px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
}

.card {
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
  transition: all 0.35s ease;
  align-self: start;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.card-content {
  padding: 22px 22px 24px;
  font-size: 16px;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 10px;
}

.card-category {
  display: inline-block;
  font-size: 16px;
  color: #ffffff;
  background: #1B2A3D;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 15px;
}

.card h3 {
  font-size: 24px;
  line-height: 1.35;
  margin-bottom: 14px;
  color: #1f2937;
}

.card-text {
  font-size: 16px;
  color: #4b5563;
  margin-bottom: 18px;
  text-align: justify;
}

/* =========================
   Cards: boton leer mas
========================= */

.read-more-btn {
  margin-top: 15px;
  padding: 12px 22px;

  border: none;
  border-radius: 10px;

  background: #e9a533; /* mismo color que servicios */
  color: #fff;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  transition: all 0.3s ease;

  position: relative;
  overflow: hidden;

}

/* hover igual que servicios */
.read-more-btn:hover {
  background: #d8921f;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(233, 165, 51, 0.2);
}

/* estado activo (cuando dice "Leer menos") */
.read-more-btn.active {
  background: #1B3B3D;
}

.read-more-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.read-more-btn:hover::after {
  left: 120%;
}

.arrow-conocenos {
  display: inline-block;
  transition: transform 0.3s ease;
}

.read-more-btn.active .arrow-conocenos {
  transform: rotate(90deg);
}

/* =========================
   Cards: informacion desplegable
========================= */

.card-info {
  margin-top: 0;
  max-height: 0;
  overflow: hidden;

  opacity: 0;
  transform: translateY(-10px);

  transition: all 0.4s ease;
}

.card-info.active {
  margin-top: 12px;
  max-height: 500px; /* suficiente para el contenido */
  opacity: 1;
  transform: translateY(0);
}


.card-info p {
  color: #4b5563;
  font-size: 16px;
  margin-bottom: 14px;
  text-align: justify;
}


/* =========================
   RESPONSIVE Cards
========================= */

@media (max-width: 1024px) {
  .cards-container {
    grid-template-columns: repeat(3, 1fr);

  }

  .card h3 {
    font-size: 24px;
  }

  .card span {
    font-size: 16px;
  }
  
  .section-header h2 {
    font-size: 34px;
  }

  .read-more-btn {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .cards-section {
    padding: 110px 20px;
  }

  .cards-container {
    grid-template-columns: 1fr;
  }

  .card img {
    height: 320px;
  }
  

}

@media (max-width: 480px) {
  .card-content {
    padding: 18px;
  }

  .card img {
    height: 320px;
  }

  .card-category {
    font-size: 0.85rem;
  }

  .card-text
  .card-info p {
    font-size: 16px;
    color: #4b5563;
    
  }
}

/*
============================
SERVICIOS - LAYOUT GENERAL
============================
*/

.servicios-layout {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    align-items: center;
    
}

/* ============================
   SIDEBAR IZQUIERDA
============================ */
.servicios-sidebar {
    width: 280px;
    background: #f3f3f3;
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-left: 60px; /* ajusta */
}

.servicios-sidebar .filter {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: none;
    background: #e7e7e7;
    color: #444;
    padding: 18px 18px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: normal;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.servicios-sidebar .filter i {
    font-size: 18px;
    min-width: 20px;
    color: inherit;
    transition: 0.3s ease;

}

.servicios-sidebar .filter:hover {
    background: #1B2A3D;
    color: #fff;
    transform: translateX(4px);
}

.servicios-sidebar .filter.active {
    background: #1B2A3D;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(233, 165, 51, 0.25);
}

.servicios-sidebar .filter.active i {
    transform: scale(1.1);
}


/* ============================
   CONTENIDO DERECHA
============================ */

.servicios-content {
    flex: 1;
    display: flex;
    justify-content: center;
}

.servicio-box {
    width: 100%;
    margin: 0 auto;
    max-width: 700px;
    background: #fff;
    border-radius: 22px;
    padding: 35px 40px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
    border-left: 6px solid #e9a533;
    position: relative;

    /* estado inicial animable */
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* clase para salida */
.servicio-box.slide-out {
    opacity: 0;
    transform: translateX(30px);
}

/* clase para entrada */
.servicio-box.slide-in {
    opacity: 0;
    transform: translateX(-30px);
}

.servicio-box h2 {
    font-size: 24px;
    margin-bottom: 18px;
    color: #1f2937;
    line-height: 1.1;
}

.servicio-box p {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 10px;
}

.servicio-detalle {
    font-size: 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.45s ease, opacity 0.3s ease, margin-top 0.3s ease;
    color: #4b5563;
    line-height: 1.8;
    margin-top: 0;
}

/* expandido */
.servicio-box.expandido .servicio-detalle {
    max-height: 900px;
    opacity: 1;
    margin-top: 20px;
}

.servicio-detalle strong {
    display: block;
    margin-top: 16px;
    margin-bottom: 6px;
    color: #111827;
    font-size: 17px;
}

.btn-leer {
  margin-top: 22px;
  padding: 12px 22px;

  border: none;
  background: #e9a533;
  color: #fff;

  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;

  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  transition: all 0.3s ease;

  position: relative;
  overflow: hidden;
}

/* Hover igual que conocenos */
.btn-leer:hover {
  background: #d8921f;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(233, 165, 51, 0.2);
}

/* Estado activo (cuando está expandido) */
.servicio-box.expandido .btn-leer {
  background: #1B3B3D;
}

/* Flecha */
.arrow-servicios {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Rotación cuando está activo */
.servicio-box.expandido .arrow-servicios {
  transform: rotate(90deg);
}

/* ✨ Efecto brillo elegante */
.btn-leer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.btn-leer:hover::after {
  left: 120%;
}

/* ============================
   RESPONSIVE Servicios
============================ */
@media (max-width: 1024px) {
    .servicios-layout {
      flex-direction: column;
    }

    .servicios-sidebar {
        width: 100%;
        margin-left: 0px; /* ajusta */
    }

    .servicios-sidebar .filter {
        font-size: 16px;
    }

    .servicio-box {
        padding: 28px 24px;
    }

    .servicio-box h2 {
        font-size: 30px;
    }

    .servicio-box p {
        font-size: 16px;
    }
}

/* =========================
Preguntas frecuentes
========================= */

.faq-container {
  max-width: 980px;
  margin: auto;
  text-align: center;
}

.faq-intro {
  max-width: 600px;
  margin: 10px auto 30px;
  color: #555;
}

/* Buscador */

.faq-search {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
  z-index: 10; /* evita reflow visual */
}

/* Pregunta */
.faq-question {
  padding: 15px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  line-height: 1.4;
}

.faq-question:hover {
  background: #fef3c7;
}

/* Respuesta */
.faq-answer {
  display: none;
  text-align: left;
  border-top: 1px solid #eee;
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: all 0.35s ease;
}

/* Estado activo */
.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-question {
  background: #f59e0b;
  color: white;
}

.faq-question span {
  font-size: 24px;
  font-weight: bold;
}

.faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}


/* Ícono */
.faq-question span {
  transition: transform 0.3s ease;
}

/* Rotación */
.faq-item.active .faq-question span {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 15px 20px 20px;
}


.faq-question span,
.faq-question mark {
  display: inline;
}

/* 🔥 CUANDO ESTA ACTIVA */
.faq-item.active {
  grid-column: 1 / -1; /* 👈 ocupa todo el ancho */
}

/* CONTENEDOR INTERNO PARA MEJOR CONTROL */
.faq-item-inner {
  transition: all 0.4s ease;
}

/* ANIMACION EXPANSION */
.faq-answer {
  opacity: 0;  max-height: 0;
  transform: translateY(-6px);
  transition: all 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   SECCIÓN AYUDA
========================= */

.faq-help {
  margin-top: 60px;
  text-align: center;
}

.faq-help-content {
  background: linear-gradient(135deg, #1B3B3D, #234E52);
  padding: 40px 30px;
  border-radius: 18px;
  color: white;
}

.faq-help-content h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.faq-help-content p {
  max-width: 700px;
  margin: 0 auto 20px;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

/* =========================
   FAQ LIMPIO (SIN CAJAS)
========================= */

/* Línea separadora */
.faq-item:not(:last-child) {
  border-bottom: 1px solid #e5e7eb;
}

/* Pregunta estilo limpio */
.faq-question {
  padding: 18px 10px;
  font-weight: 600;
  background: transparent !important;
}

/* Hover más sutil */
.faq-question:hover {
  background: rgba(0,0,0,0.03);
}

.faq-search input {
  width: 100%;
  max-width: 380px;
  padding: 12px 16px 12px 40px; /* 🔥 espacio para icono */
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  outline: none;
  font-size: 16px;
  color: #1B2A3D;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
  transition: all 0.3s ease;
}

/* ICONO DENTRO DEL INPUT */
.faq-search::before {
  content: "🔍";
  position: absolute;
  left: calc(50% - 190px + 14px); /* alineado con el input */
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #94a3b8;
  pointer-events: none;
  transition: all 0.25s ease;
}

.faq-search input:focus {
  max-width: 440px;
  border-color: #1B3B3D;
  box-shadow:
    0 10px 30px rgba(27, 59, 61, 0.18),
    0 0 0 4px rgba(27, 59, 61, 0.08);
  transform: translateY(-2px);
}

/* ICONO REACCIONA AL FOCUS */
.faq-search:focus-within::before {
  color: #1B3B3D;
  transform: translateY(-50%) scale(1.05);
}

.faq-search:focus-within .icon {
  color: #1B3B3D;
  transform: translateY(-50%) scale(1.05);
}

/* PLACEHOLDER PREMIUM */
.faq-search input::placeholder {
  color: #94a3b8;
  font-size: 0.85rem;
  letter-spacing: 0.2px;
}

/* HOVER SUAVE */
.faq-search input:hover {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.faq-search .icon {
  position: absolute;
  left: 14px;   /* 🔥 SIEMPRE a la izquierda */
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #94a3b8;
  pointer-events: none;
  transition: all 0.25s ease;
}

.faq-search:focus-within .icon {
  color: #1B3B3D;
  transform: translateY(-50%) scale(1.05);
}

/* Estado sin resultados */
.faq-empty {
  display: none;
  margin-top: 14px;
  padding: 18px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #475569;
  text-align: center;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.faq-empty strong {
  display: block;
  color: #1B2A3D;
  margin-bottom: 6px;
  font-size: 16px;
}

/* =====================================================
   LISTA FAQ - ELIMINA TARJETAS / BLOQUES PESADOS
===================================================== */

/* Quita el grid de tarjetas y lo convierte en lista limpia */
.faq-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  align-items: start;
}

/* Item limpio */
.faq-item {
  display: none;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  height: fit-content;
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}


/* Línea separadora entre preguntas */
.faq-item:not(:last-child) {
  border-bottom: 1px solid #e5e7eb !important;
}

/* Inner */
.faq-item-inner {  
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 0;
}

/* Pregunta */
.faq-question {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 10px 20px 0 !important;
  background: transparent !important;
  color: #111827 !important;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
  transition: all 0.28s ease;
}

/* hover limpio */
.faq-question:hover {
  background: transparent !important;
  color: #1B3B3D !important;
}

/* Ícono del + */
.faq-question .icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #1B3B3D !important;
  font-size: 18px;
  font-weight: 700;
  transition: all 0.35s ease;
}

/* Estado activo */
.faq-item.active .faq-question {
  color: #1B3B3D !important;
}

.faq-item.active .faq-question .icon {
  transform: none;
  background: #1B3B3D;
  color: #fff !important;
}

/* Respuesta más elegante */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  padding: 0 20px !important;
  border-top: none !important;
  text-align: left;
  transition:
    max-height 0.38s ease,
    opacity 0.28s ease,
    transform 0.28s ease,
    padding 0.32s ease;
}

.faq-answer p {
  color: #4b5563;
  line-height: 1.75;
  margin-right: 40px;
  max-width: 100%;
  padding-bottom: 18px;
  text-align: justify;
}

/* Abierto */
.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
  padding: 0 0 0 52px !important;
}

/* =========================
   FAQ CATEGORÍAS PREMIUM
========================= */

.faq-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}

.faq-category-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.faq-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10);
  border-color: rgba(27, 59, 61, 0.18);
}

.faq-category-card.active {
  border-color: #1B3B3D;
  background: linear-gradient(180deg, #ffffff, #f5f9f9);
  box-shadow: 0 14px 30px rgba(27, 59, 61, 0.16);
}

.faq-category-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 59, 61, 0.10);
  color: #1B3B3D;
  font-size: 24px;
  transition: all 0.3s ease;
}

.faq-category-card.active .faq-category-icon {
  background: #1B3B3D;
  color: #ffffff;
}

.faq-category-text h3 {
  font-size: 16px;
  color: #1B2A3D;
  margin-bottom: 6px;
}

.faq-category-text p {
  font-size: 16px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  text-align: left;
}

/* Contenedor dinámico */
#faqCategoryContent {
  margin-bottom: 20px;
  display: grid;
  gap: 15px;
}

/* Animación suave */
.faq-item.fade-in {
  animation: fadeUp 0.35s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.faq-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}

.faq-category-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-category-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.faq-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10);
}

.faq-category-card.active {
  border-color: #1B3B3D;
  background: linear-gradient(180deg, #ffffff, #f5f9f9);
  box-shadow: 0 14px 30px rgba(27, 59, 61, 0.16);
}

.faq-category-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 59, 61, 0.10);
  color: #1B3B3D;
  font-size: 20px;
}

.faq-category-card.active .faq-category-icon {
  background: #1B3B3D;
  color: #fff;
}

.faq-category-text h3 {
  font-size: 1.05rem;
  color: #1B2A3D;
  margin-bottom: 6px;
}

.faq-category-text p {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  text-align: left;
}

.faq-category-questions {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.faq-category-block.active-block .faq-category-questions,
.faq-category-block.search-open .faq-category-questions {
  display: flex;
}

.faq-list-source {
  display: none;
}

/* Dentro de cada categoría, los items no expanden toda la fila */
.faq-category-questions .faq-item.active {
  grid-column: auto !important;
}

.faq-category-questions .faq-item {
  margin-bottom: 0 !important;
}

.faq-item.fade-in {
  animation: fadeUpFaq 0.32s ease;
}

@keyframes fadeUpFaq {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   FAQ CATEGORÍAS DESPLEGABLES
========================= */

.faq-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}

.faq-category-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-category-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.faq-category-questions {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.faq-category-block.active-block .faq-category-questions {
  display: flex;
  animation: fadeUpFaq 0.3s ease;
}

/* dentro de una categoría abierta, la pregunta NO debe expandir todo el grid */
.faq-category-questions .faq-item.active {
  grid-column: auto !important;
}

.faq-category-questions .faq-item {
  margin-bottom: 0 !important;
}

.faq-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10);
}

.faq-category-card.active {
  border-color: #1B3B3D;
  background: linear-gradient(180deg, #ffffff, #f5f9f9);
  box-shadow: 0 14px 30px rgba(27, 59, 61, 0.16);
}

.faq-category-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 59, 61, 0.10);
  color: #1B3B3D;
  font-size: 20px;
}

.faq-category-card.active .faq-category-icon {
  background: #1B3B3D;
  color: #ffffff;
}

.faq-category-text h3 {
  font-size: 1.05rem;
  color: #1B2A3D;
  margin-bottom: 6px;
}

.faq-category-text p {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  text-align: left;
}

/* Contenedor donde aparecerán las preguntas */
.faq-category-questions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Oculta la fuente original */
.faq-list-source {
  display: none;
}

/* En este modo, no expanden a todo el grid */
.faq-category-questions .faq-item.active {
  grid-column: auto !important;
}

.faq-category-questions .faq-item {
  margin-bottom: 0 !important;
}

/* Animación */
.faq-item.fade-in {
  animation: fadeUpFaq 0.3s ease;
}

@keyframes fadeUpFaq {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .faq-categories-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   CONTENIDO FAQ
========================= */

.faq-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  align-items: start;
}

.faq-item.active {
  grid-column: 1 / -1;
}

/* =====================================================
   ICONO POR CATEGORÍA (automático con data-category)
   Usa Font Awesome que ya tienes cargado
===================================================== */

.faq-question::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
  margin-right: 14px;
  background: #eef2f7;
  color: #1B3B3D;
  font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(27, 59, 61, 0.06);
}

/* Servicio */
.faq-item[data-category="Servicio"] .faq-question::before {
  content: "\f013"; /* gear */
  background: #e8f4f2;
  color: #1B3B3D;
}

/* Cotizacion */
.faq-item[data-category="Cotizacion"] .faq-question::before {
  content: "\f53a"; /* file-invoice-dollar */
  background: #fff3e6;
  color: #b96a12;
}

/* Visitas */
.faq-item[data-category="Visitas"] .faq-question::before {
  content: "\f5a0"; /* map-marked-alt */
  background: #eef4ff;
  color: #1B2A3D;
}

/* Politicas */
.faq-item[data-category="Politicas"] .faq-question::before {
  content: "\f05a"; /* circle-info */
  background: #fff7db;
  color: #9d7a10;
}

.faq-question > *:not(.icon) {
  grid-column: 2;
}


.faq-question::before {
  grid-column: 1;
}

.faq-question .icon {
  grid-column: 3;
}

/* =====================================================
   PEQUEÑO ACENTO VISUAL AL ABRIR
===================================================== */

.faq-item.active .faq-item-inner {
  background:
    linear-gradient(to right, rgba(27, 59, 61, 0.06), rgba(27, 59, 61, 0)) ;
  border-radius: 12px;
  padding-left: 10px;
  transition: all 0.3s ease;
}

/* =====================================================
   AYUDA / CTA MÁS REFINADO
===================================================== */

.faq-help-content {
  background:linear-gradient(135deg, rgba(27,59,61,0.96), rgba(27,42,61,0.96));
  border-radius: 22px;
  padding: 36px 26px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
}

.faq-help-content h3 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.faq-help-content p {
  max-width: 700px;
  margin: 0 auto 20px;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 768px) {
  .faq-question {
    font-size: 0.96rem;
    padding: 18px 0 !important;
  }
  

  .faq-search input {
    max-width: 100%;
    transform: none;
    padding: 11px 14px 11px 38px;
  }

  .faq-search input:focus {
    max-width: 100%; /* sin expansión en móvil */
    transform: none;
  }

  .faq-search::before {
    left: 14px;
  }
  
  .faq-search .icon {
    left: 14px;
  }


  .faq-question::before {
    width: 30px;
    height: 30px;
    min-width: 30px;
    font-size: 13px;
    border-radius: 9px;
    margin-right: 10px;
  }

  .faq-question .icon {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  .faq-answer {
    padding-left: 40px !important;
  }

  .faq-item.active .faq-answer {
    padding-left: 40px !important;
  }

  .faq-help-content {
    padding: 30px 18px;
  }

  .faq-help-content h3 {
    font-size: 1.45rem;
  }

  .faq-help-content p {
    white-space: normal;
  }


}

/* =========================
   RESPONSIVE
========================= */


@media (max-width: 1024px) {
  .faq-categories {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .faq-category-card {
    padding: 16px;
    border-radius: 16px;
  }

  .faq-category-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    font-size: 18px;
  }

  .faq-category-text h3 {
    font-size: 1rem;
  }

  .faq-category-text p {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .faq-category-header {
    padding: 16px;
  }

  .faq-category-header h3 {
    font-size: 1.15rem;
  }

  .faq-category-header p {
    font-size: 0.9rem;
  }
}

@media (max-width: 1024px) {
  .faq-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .faq-list {
    grid-template-columns: 1fr;
  }

  .faq-help-content h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {

  .faq-question {
    color: #000; /* ✅ siempre negro */
  }

  .faq-question .icon {
    color: #000; /* ✅ icono también negro */
  }

  /* cuando está abierta */
  .faq-item.active .faq-question {
    color: #ffffff; /* ✅ texto blanco cuando activa */
  }

  .faq-item.active .faq-question .icon {
    color: #ffffff;
  }
  
}

/* Redes Sociales */

/* Botón WhatsApp */
.btn-whatsapp-help {
  display: inline-block;
  background: #25D366;
  color: white;
  padding: 14px 25px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;

  position: relative;
  overflow: hidden;

}

.btn-whatsapp-help:hover {
  background: #1ebe5d;
  transform: scale(1.05);
}


.btn-whatsapp-help::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.btn-whatsapp-help:hover::after {
  left: 120%;
}


.social-section {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #0f172a, #1B2A3D);
  color: white;
  overflow: hidden;
}

.social-section h2 {
  font-size: 34px;
  margin-bottom: 10px;
}

.social-section p {
  margin-bottom: 30px;
  font-size: 16px;
  color: #ddd;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}


.icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  text-decoration: none;
  position: relative;
  transition: all 0.4s ease;

  /* Estado inicial para animación al hacer scroll */
  opacity: 0;
  transform: translateY(40px) scale(0.9);
}

/* Colores */
.instagram {
  background: #e1306c;
}

.facebook {
  background: #1877f2;
}

.tiktok {
  background: #000;
}

/* Hover de iconos */
.icon:hover {
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.instagram:hover {
  background: #ff4f8b;
}

.facebook:hover {
  background: #3b8cff;
}

.tiktok:hover {
  background: #333;
}

/* Tooltip base */
.tooltip {
  position: absolute;
  top: -40px;
  background: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: all 0.3s ease;
  pointer-events: none;
}

/* Flechita */
.tooltip::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

/* Tooltip normal al hover */
.icon:hover .tooltip {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===== Animación al entrar con scroll ===== */
.social-section.visible .icon {
  animation: iconEntrance 0.8s ease forwards;
}

.social-section.visible .icon:nth-child(1) {
  animation-delay: 0.2s;
}

.social-section.visible .icon:nth-child(2) {
  animation-delay: 0.4s;
}

.social-section.visible .icon:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes iconEntrance {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== Tooltips automáticos al aparecer la sección ===== */
.social-section.visible.show-tooltips .icon:nth-child(1) .tooltip {
  animation: tooltipPreview 1.4s ease 1s forwards;
}

.social-section.visible.show-tooltips .icon:nth-child(2) .tooltip {
  animation: tooltipPreview 1.4s ease 1.3s forwards;
}

.social-section.visible.show-tooltips .icon:nth-child(3) .tooltip {
  animation: tooltipPreview 1.4s ease 1.6s forwards;
}

@keyframes tooltipPreview {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  20% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  80% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .social-section h2 {
    font-size: 2rem;
  }

  .social-section p {
    font-size: 1rem;
  }

  .icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .social-icons {
    gap: 15px;
  }
}

/*

Portafolio Trabajos Carrusel

*/

/* =========================
FILTROS DEL CARRUSEL
========================= */
.carousel-filters {
  max-width: 1250px;
  margin: 0 auto 30px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.carousel-filter {
  border: none;
  background: #ffffff;
  color: #1B2A3D;
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.carousel-filter:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.carousel-filter.active {
    background: linear-gradient(135deg, #1B3B3D, #1B2A3D);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(27, 59, 61, 0.22);
}

/* ocultar slides filtrados */
.carousel-slide.is-hidden {
    display: none;
}

/* mensaje vacío */
.carousel-empty {
    display: none;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.92);
    color: #4b5563;
    text-align: center;
    padding: 18px 20px;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    font-size: 16px;
    font-weight: 500;
}

/* estado disabled para flechas */
.carousel-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}


/* CONTENEDOR */
.carousel-container {
  position: relative;
  max-width: 800px;
  margin: auto;
  overflow: hidden;
  border-radius: 20px;
  touch-action: pan-y; /* permite scroll vertical normal y swipe horizontal */
}


/* Fondo solo abajo */
.carousel-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;

  width: 100%;
  height: 2%; /* 🔥 controla cuánto sube el color */

  background-color: #DE955D;

  z-index: 0;
}

/* Asegura que el carrusel quede encima */
.carousel-track,
.carousel-slide {
  position: relative;
  z-index: 1;
}


/* TRACK */
.carousel-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  gap: 20px; 
  will-change: transform;
}

/* SLIDE */
.carousel-slide {
  min-width: 100%;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  
}

/* ✅ IMAGEN (RECORTE RECTANGULAR SIN PERDER CALIDAD) */
.carousel-slide img {
  width: 100%;
  height: 400px; /* 🔥 controla tamaño */
  object-fit: cover; /* 🔥 recorta sin deformar */
  border-radius: 0px;
}

/* OVERLAY */
.carousel-overlay {
  left: 18px;  position: absolute;

  width: 360px;              /* más rectangular */
  max-width: calc(100% - 36px);

  padding: 16px 18px;

  border-radius: 18px;

  /* efecto glass premium */
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255, 255, 255, 0.12);

  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  color: #ffffff;
  text-align: left;
  bottom: 18px;
}
  

.carousel-overlay h3 {
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 6px;
  color: #ffffff;
}

.carousel-overlay p {
  font-size: 0.90rem;
  line-height: 1.45;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.88);
}


/* BOTÓN INSTAGRAM */
.btn-instagram {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;


  background: rgba(255, 255, 255, 0.15);
  color: #fff;


  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;

  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(225, 48, 108, 0.25);

  position: relative;
  overflow: hidden;

}

.btn-instagram:hover {
  transform: translateY(-2px);
}

.btn-instagram::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.btn-instagram:hover::after {
  left: 120%;
}

/* ✅ BOTONES EN EL BORDE DE LA IMAGEN */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  z-index: 5;
  width: 45px;
  height: 45px;

  border-radius: 50%;
  border: none;

  background: rgba(255,255,255,0.9);
  cursor: pointer;

  font-size: 20px;

  color:#1B3B3D;
}

.carousel-btn.prev {
  left: 10px; /* 🔥 justo borde */
}

.carousel-btn.next {
  right: 10px; /* 🔥 justo borde */
}



/* ✅ DESKTOP */
@media (min-width: 1024px) {
  .carousel-slide img {
    height: 550px; /* 🔥 más alto = se ve más imagen */
  }
}

/* =========================
RESPONSIVE FILTROS CARRUSEL
========================= */

@media (max-width: 768px) {
    .carousel-filters {
      max-width: 260px;   /* mismo rango que tus stat-card */
      margin: 0 auto 30px; /* centra igual */
      padding: 0 10px;     /* opcional para espacio lateral */
    }

    .carousel-filter {
      width: 100%;        /* botones ocupan todo */
      text-align: center; /* centrado limpio */
    }
}


/* =========================
   Graficos trabajos completados
========================= */

.stats-dashboard-section {
  padding: 80px 20px;
  background: #E4DCD1;
}

.dashboard-header {
  max-width: 1000px;
  margin: 0 auto 35px;
  text-align: center;
}

.dashboard-header h2 {
  font-size: 2rem;
  color: #1B2A3D;
  margin-bottom: 12px;
}

.dashboard-header p {
  max-width: 850px;
  margin: 0 auto;
  color: #374151;
  line-height: 1.7;
  text-align: justify;
}

/* Cards superiores */
.stats-cards {
  max-width: 1250px;
  margin: 0 auto 30px;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  justify-content: center;  
  gap: 20px;
}

.stat-card {
  background: #ffffff;
  padding: 24px 20px;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
}

.stat-card h3 {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 10px;
}

.stat-card span {
  font-size: 2rem;
  font-weight: 700;
  color: #1B3B3D;
}

/* Filtros */
.chart-filters {
  max-width: 1250px;
  margin: 0 auto 30px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.chart-filter {
  border: none;
  background: #ffffff;
  color: #1B2A3D;
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.chart-filter:hover {
  background: #1B2A3D;
  color: #ffffff;
}

.chart-filter.active {
  background: #1B3B3D;
  color: #ffffff;
}

/* Gráfico + descripción */
.chart-main-container {
  max-width: 1250px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
  align-items: stretch;
}

.chart-box,
.chart-description-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.chart-box {
  min-height: 420px;
}

.chart-description-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chart-description-box h3 {
  font-size: 1.5rem;
  color: #1B2A3D;
  margin-bottom: 12px;
}

.chart-description-box p {
  color: #475569;
  line-height: 1.7;
  text-align: justify;
}

/* Responsive */
@media (max-width: 1024px) {
  .stats-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .chart-main-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .stats-dashboard-section {
    padding: 60px 16px;
  }

  .stats-cards {
    grid-template-columns: 1fr;
  }

  .chart-box {
    min-height: 340px;
  }

  .dashboard-header h2 {
    font-size: 1.7rem;
  }
  
  .chart-filters {
    max-width: 260px;   /* mismo rango que tus stat-card */
    margin: 0 auto 30px; /* centra igual */
    padding: 0 10px;     /* opcional para espacio lateral */
  }

  
  .chart-filter {
    width: 100%;        /* botones ocupan todo */
    text-align: center; /* centrado limpio */
  }

}


.chart-box {
  position: relative;
  height: 400px;
  animation: fadeChart 0.4s ease;
}

@keyframes fadeChart {
  from {opacity: 0; transform: translateY(10px);}
  to {opacity: 1; transform: translateY(0);}
}

/* =========================
   ESTILO PRO DASHBOARD
========================= */

.stats-cards {
  perspective: 1000px;
}

.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.45),
    transparent
  );
  transition: left 0.8s ease;
}

.stat-card:hover::before {
  left: 120%;
}

.stat-card span {
  display: inline-block;
  min-width: 60px;
}

/* Filtro activo más premium */
.chart-filter {
  position: relative;
  overflow: hidden;
}

.chart-filter.active {
  background: linear-gradient(135deg, #1B3B3D, #1B2A3D);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(27, 59, 61, 0.25);
}

/* Caja del gráfico */
.chart-box {
  position: relative;
  min-height: 420px;
}

/* Descripción */
.chart-description-box {
  position: relative;
}

.chart-highlight {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(27,59,61,0.08), rgba(222,149,93,0.10));
  border: 1px solid rgba(27, 59, 61, 0.08);
}

.chart-highlight span {
  display: block;
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 6px;
}

.chart-highlight strong {
  font-size: 1.1rem;
  color: #1B2A3D;
}

/* Animaciones suaves */
.fade-up {
  animation: fadeUp 0.45s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulse suave para cards actualizadas */
.stat-card.updated {
  animation: pulseCard 0.45s ease;
}

@keyframes pulseCard {
  0% {
    transform: scale(1);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.14);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .chart-box {
    min-height: 340px;
  }
}
