/* --- VARIABLES Y ESTILOS GLOBALES --- */
:root {
    --color-primario: #1a4c25;
    --color-secundario: #ffcb86;
    --color-texto-claro: #f4f4f4;
    --color-texto-oscuro: #111;
    --fuente-principal: 'Outfit', sans-serif;
    --accent: #31be62;
    --glass: rgba(255, 255, 255, 0.06);
    --card-bg: linear-gradient(120deg, #232423fb, #f7f70117);
    --radius: 18px;
    --max-wgablesidth: 1200px;
    --accent-color: #31be62;
    --accent-gradient: linear-gradient(135deg, #31be62, #1e7a3b);
    --text-primary: #0f172a;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --bg-light: #fff;
    --bg-soft: #fbfbfb;
    --border-color: rgba(15, 23, 42, 0.05);
}

:root {
    --fluid-h1: clamp(2rem, 5vw + 1rem, 3.5rem);
    --fluid-h2: clamp(1.8rem, 3vw + 1rem, 2.8rem);
    --fluid-h3: clamp(1.5rem, 2vw + 1rem, 2rem);
    --fluid-body: clamp(1rem, 1vw + 0.75rem, 1.125rem);
    --spacing-base: clamp(1rem, 2vw, 2rem);
    --container-padding: clamp(1rem, 5vw, 5rem);
    --bp-mobile: 576px;
    --bp-tablet: 768px;
    --bp-desktop: 1200px;
}

/* === RESPONSIVE DESIGN SYSTEM === */

:root {
    --fluid-h1: clamp(2rem, 5vw + 1rem, 3.5rem);
    --fluid-h2: clamp(1.8rem, 3vw + 1rem, 2.8rem);
    --fluid-h3: clamp(1.5rem, 2vw + 1rem, 2rem);
    --fluid-body: clamp(1rem, 1vw + 0.75rem, 1.125rem);
}

/* Ensure images are responsive by default */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: var(--fuente-principal);
    color: var(--color-texto-oscuro);
}

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;

}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url('../img/BG-Prims.png') ;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    filter: blur(0px); 
    scale: 1.05;
}


.contenedor {
    max-width: 1650px;
    margin: 0 auto;
    padding: 0 2rem;
}

.encabezado {
    background: rgba(253, 253, 253, 0.121);
    padding: 2rem 0;
    position: fixed;
    width: 95%;
    max-width: 1650px;
    z-index: 1000;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 35px;
    backdrop-filter: blur(5px);
    transition: all .6s;
    transform-origin: center;
}

.encabezado:hover {
    background: rgba(233, 233, 233, 0.091);
    box-shadow: 1px 50px 55px rgba(0, 0, 0, 0.193);
    backdrop-filter: blur(15px);
    scale: 1.02;
    transform-origin: center;
}

.encabezado .contenedor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* ancla para el título centrado */
}

.contenedor h1 {
    font-size: 7rem;
}

.logo-imagen img {
    height: 50px;
    display: block;
}

.navegacion a {
    color: #ffffff;
    text-decoration: none;
    padding: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}


/* Animated underline para la navegación del header */
.navegacion a {
    position: relative;
    display: inline-block;
    padding-bottom: 0.25rem;
    transition: color 250ms ease;
}

.navegacion a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px; 
    height: 3px;   
    background: #339e3c;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .7s cubic-bezier(.2,.9,.3,1), opacity 220ms ease;
    opacity: 0;
    border-radius: 3px;
}

/* Mostrar la línea solo en el enlace que está en hover/focus o en estado activo */
.navegacion a:hover::after,
.navegacion a:focus::after,
.navegacion a.active::after {
    transform: scaleX(1);
    opacity: 1;
}

/* Accesibilidad: foco visible */
.navegacion a:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(49,190,98,0.08);
    border-radius: 4px;
}

.navegacion a:hover {
    color: #339e3c;
}



/* Hero principal */
.hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 19rem 0 1rem;
    overflow: visible;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2rem;
    align-items: center;
    width: 100%;
}

.hero .main-title {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    color: #333;
    line-height: 1.03;
    margin-bottom: .6rem;
    font-weight: 800;
    max-width: 800px;
}

.hero p.lead {
    color: #333;
    font-weight: 300;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    max-width: 44ch;
    font-size: 28px;
}

.cta-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}


.cta-button {
    background-color: #f4f4f4;
    color: #333;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: .9rem 1.25rem;
    font-size: 0.98rem;
    font-weight: 700;
    border-radius: 14px;
    cursor: pointer;
    transition: all .22s ease;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    width: 190px;
    height: 50px;
    text-align: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    font-size: 18px;
}

.cta-button.primary {
    background: linear-gradient(135deg,
            rgb(49, 190, 98),
            rgb(28, 114, 58));
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(49, 190, 98, 0.12);
    width: 220px;
}

.cta-button.primary:hover {
    box-shadow: 0 0px 70px rgba(49, 190, 98, 0.493);
    color: #ffffff;
}

.cta-button:hover {
    color: #4aec83 ;
    width: 235px;
    height: 85px;
    background-color: #dadada52;
    border: 1px solid rgba(255, 255, 255, 0.267);
    backdrop-filter: blur(10px);
    border: 2px solid rgb(49, 190, 98),;
}

.resumen {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
    padding: 1rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    align-self: start;
    backdrop-filter: blur(15px);
}


/* Buscador & filtros */
.tools {
    margin-top: 13.25rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search {
    display: flex;
    gap: .5rem;
    background: rgba(255, 255, 255, 0.158);
    padding: .5rem;
    border-radius: 12px;
    align-items: center;
    width: 100%;
    max-width: 520px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 45px #14141425;
    transition: all .1s ease;
}

.search input {
    border: 0;
    background: transparent;
    outline: none;
    color: #eee;
    padding: .6rem .4rem;
    width: 100%;
    transition: all .1s ease;
    font-size: 1rem;
}

.search:hover{
    background-color: #e2e2e2;
    border: 4px solid rgba(49, 190, 98, 0.8);
     box-shadow: 0 0 15px rgba(49, 190, 98, 0.5); 
}

#searchInput:focus { 
  color: #000000; 
  outline: none; 
  border-radius: 15px;
}

.filter-btn {
    background: transparent;
    border: 1.5px solid rgba(49, 190, 98, 0.8);
    padding: .55rem .9rem;
    border-radius: 10px;
    color: #202020;
    cursor: pointer;
    transition: all .3s ease;
    font-size: 17px;
    font-family: 'Outfit', sans-serif;
    backdrop-filter: blur(50px);
}

.filter-btn:hover {
    background: rgba(49, 190, 98, 0.1);
    color: var(--color-texto-claro);
    border-color: rgba(49, 190, 98, 0.8);
    scale: 1.05;
}

.filter-btn:focus {
    background: rgb(49, 190, 98);
    color: var(--color-texto-claro);
    border-color: rgba(49, 190, 98, 0.8);
    box-shadow: 0 0 15px rgba(49, 190, 98, 0.5);    
}

.muted {
    color: #eeeeee;
    font-size: .95rem;
    font-weight: 500;
}

/* Grid de servicios */
.servicios {
    padding: 0 var(--container-padding);
    width: 100%;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: clamp(1rem, 2vw, 2rem);
    justify-content: center; 
    align-items: stretch;
    max-width: none; 
    transition: all 4.6s ease, gap 4.4s;

}

.service-card {
    background: rgba(255, 255, 255, 0.24);
    padding: 1.25rem;
    border-radius: 35px;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all .5s cubic-bezier(.16, .9, .3, 1);
    backdrop-filter: blur(40px);
    box-shadow: 0 0 55px #14141418;
    width: 450px;
    overflow: hidden;
    position: relative;
}

.service-card.expanded {
  grid-column: 1 / -1; 
  max-height: 800px;  
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 65px #14141433;
  z-index: 5;
  width: 50%;
  transition: all 0.5s ease;
}

.service-card .extra-content {
  max-height: 0;
  opacity: 0;
  transition: all 0.5s ease;
}

.service-card.expanded .extra-content {
  max-height: 500px; 
  opacity: 1;
  margin-top: 1rem;
  transition: all 0.5s ease;
}

.service-card:hover {
    scale: 1.02;
}

.service-card .tag {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    padding: .3rem .6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: #333;
    transition: all .3s ease;
}

.service-card h4 {
    font-size: 1.05rem;
    margin-top: .25rem;
    color: var(--color-texto-oscuro);
}

.service-card p {
    color: #333;
    font-size: .95rem;
    line-height: 1.45;
    flex-grow: 1;
}

.service-actions {
    display: flex;
    gap: .5rem;
    align-items: center;
    margin-top: .6rem;
}

.icon-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: .5rem .7rem;
    border-radius: 10px;
    cursor: pointer;
    color: #eee;
    background: linear-gradient(135deg,
            rgb(49, 190, 98),
            rgb(28, 114, 58));
    transition: all .3s ease;
}

.icon-btn:hover {
    scale: 1.05;
    background: linear-gradient(135deg,
            rgb(96, 236, 145),
            rgb(28, 114, 58));

}

/* Estilo para el botón de WhatsApp */
.boton-wsp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 95.5%;
    padding: 15px;
    margin-top: 25px;
    border: none;
    border-radius: 25px;
    background-color: transparent;
    color: rgb(14, 14, 14);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0px 0px 45px #0d0d0d5a;
}

.boton-wsp:hover {
    background-color: #1fca5b;
    transform: translateY(-5px);
    color: white;
    box-shadow: 0px 0px 45px #0a6d1978;

}

/* Acordeón y detalles */
.details {
    display: flex;
    margin-top: 2rem;
    justify-content: center;
    align-items: flex-start;
}

.content2 {
    width: 100%;
    background: var(--card-bg);
    padding: 28px;
    border-radius: 35px;
    backdrop-filter: blur(7px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 50px;
}

.requirements-title {
    font-size: 1.6rem;
    color: var(--color-texto-claro);
    margin-bottom: .6rem;
    font-weight: 700;
}

.accordion-item {
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    
    transition: all .25s;
    border: 1px solid rgba(255, 255, 255, 0.02);
    padding: 1rem;
}

.accordion-header {
    padding: .85rem .9rem;
    display: flex;
    gap: .8rem;
    align-items: center;
    cursor: pointer;
    color: #333;
    font-weight: 700;
}

.accordion-header svg {
    flex-shrink: 0;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .42s cubic-bezier(.2, .9, .2, 1), padding .28s;
    color: #313131;
    font-weight: 300;
}

.accordion-item.active .accordion-body {
    padding: .9rem;
    max-height: 420px;
}

/* Sidebar de contacto rápido */


.pie-pagina {
    background-color: #1a1a1a;
    color: #f0f0f0;
    padding-top: 60px;
}

.grid-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.pie-pagina h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    position: relative;
}

.pie-pagina h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 50px;
    height: 3px;
    background-color: #31be62;
}

.info-footer .logo-imagen-footer img {
    max-width: 200px;
    margin-bottom: 15px;
}

.info-footer p {
    color: #b3b3b3;
    line-height: 1.6;
}

.navegacion-footer a,
.redes-sociales a {
    color: #f0f0f0;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.navegacion-footer a:hover,
.redes-sociales a:hover {
    color: #31be62;
    padding-left: 8px;
}

.contacto-footer p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.derechos-reservados {
    background-color: #0d0d0d;
    text-align: center;
    padding: 20px 10px;
    border-top: 1px solid #d8a25e;
}

.derechos-reservados p {
    margin: 0;
    font-size: 0.9rem;
    color: #8c8c8c;
}


.process.timeline {
  background: var(--bg-light);
  padding: 64px 24px;
  margin-top: 5.5rem;
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 64px 0;
  background: #ffffff4b;
  backdrop-filter: blur(70px);
  box-shadow: 0 -20px 45px rgba(0, 0, 0, 0.144);
}

.process .contenedor {
  max-width: 1200px;
  margin: 0 auto;
}

.process-header {
  text-align: center;
  margin-bottom: 48px;
}

.process-header h2 {
  font-size: 2.25rem; 
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.process-header .muted {
  font-size: 1.1rem;
  color: #363636;
  max-width: 600px;
  margin: 0 auto;
}

.process-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
  background: #ffffff;
  border-radius: 55px;
  padding: 62px;
  box-shadow: 0 20px 40px rgba(15,23,42,0.06);
}

/* Línea de tiempo */
.timeline-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px; 
  width: 100%;
}

.timeline-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background: #e5e7eb;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 6px;
  z-index: 1;
}

.timeline-progress {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  border-radius: 6px;
  transition: width 450ms cubic-bezier(0.25, 1, 0.5, 1);
}

/* Botones de pasos */
.timeline-step {
  position: relative;
  z-index: 2;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  width: 150px; 
  transition: transform 0.2s ease-out;
}
.timeline-step:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 4px;
  border-radius: 8px;
}

.step-dot {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%; 
  background: #f1f5f9;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.1rem;
  border: 4px solid var(--bg-light);
  transition: all 0.3s ease;
}

.step-label {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

/* Estado activo y completado */
.timeline-step.is-active .step-dot,
.timeline-step.is-completed .step-dot {
  background: var(--accent-gradient);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(49, 190, 98, 0.2);
}
.timeline-step.is-active .step-label {
  color: var(--text-primary);
  font-weight: 700;
}
.timeline-step.is-completed .step-label {
  color: var(--text-secondary);
}


/* Panel de detalles */
.process-detail {
  background: linear-gradient(180deg, var(--bg-light), var(--bg-soft));
  padding: 32px;
  border-radius: 35px;
  border: 1px solid var(--border-color);
  box-shadow: 0 16px 70px rgba(0, 0, 0, 0.267);
}
.detail-inner {
  /* Clase para animar el contenido */
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.detail-inner.is-changing {
  opacity: 0;
  transform: translateY(10px);
}

.detail-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.detail-text {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.detail-bullets {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem 0;
}
.detail-bullets li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}
.detail-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  font-weight: 700;
  color: var(--accent-color);
}

/* Botones de acción */
.detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.cta-button {
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background-color: var(--bg-light);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}
.cta-button:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

.cta-button.primary {
  background: var(--accent-gradient);
  color: white;
  border: 0;
}
.cta-button.primary:hover {
  filter: brightness(1.1);
}

.cta-button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #e5e7eb;
  border-color: #e5e7eb;
}
.cta-button.primary[disabled] {
    background: #d1d5db;
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
  .process-wrap {
    gap: 32px;
  }
  .timeline-track {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
  }
  .timeline-line {
    display: none;
  }
  .timeline-step {
    width: 45%; 
    margin-bottom: 24px;
  }
}

@media (max-width: 576px) {
    .process-header h2 {
        font-size: 1.8rem;
    }
    .timeline-step {
        width: 100%; 
        flex-direction: row; 
        align-items: center;
        text-align: left;
        gap: 12px;
    }
    .step-label {
        font-size: 1rem;
    }
    .process-detail {
        padding: 24px;
    }
    .detail-actions {
      flex-direction: column;
    }
    .cta-button {
      width: 100%;
    }
}


/* responsive */
@media (max-width: 980px) {
  .process-wrap { display:block; }
  .timeline-track { flex-wrap:nowrap; overflow-x:auto; padding:16px; gap:12px; }
  .timeline-step { min-width: 220px; }
  .process-detail { margin-top: 16px; }
}

/* Responsive: columna única en pantallas pequeñas */
@media (max-width: 960px) {
    .plusInfo {
        padding: 20px;
    }
    .plusInfo .details {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .plusInfo .sidebar-card {
        order: 2;
        width: 100%;
    }
    .plusInfo .accordion .accordion-item {
        margin-bottom: 10px;
    }
}

/* Respect reduce-motion */
@media (prefers-reduced-motion: reduce) {
    .plusInfo *,
    .plusInfo *::before,
    .plusInfo *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* Botón flotante de WhatsApp */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #2e8340;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

.whatsapp-float img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}


/* ===== RESPONSIVE + MENÚ HAMBURGUESA ===== */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    margin-right: 15px;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: #a0a0a0; 
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: absolute;
    left: 0;
}

.menu-toggle:active span {
    background: #21861e; 
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }

/* Estado 'X' cuando está activo */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Navegación móvil: overlay y animación de links */
@media screen and (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    .navegacion {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, rgb(26, 76, 37), rgba(13, 38, 19, 0.918));
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
        backdrop-filter: blur(50px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        border-radius: 25px;
    }

    .navegacion.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;

    }

    .navegacion a {
        margin: 1rem 0;
        font-size: 1.2rem;
        color: #fff;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .navegacion.active a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger animation para los links */
    .navegacion.active a:nth-child(1) { transition-delay: 0.08s; }
    .navegacion.active a:nth-child(2) { transition-delay: 0.16s; }
    .navegacion.active a:nth-child(3) { transition-delay: 0.24s; }
    .navegacion.active a:nth-child(4) { transition-delay: 0.32s; }
    .navegacion.active a:nth-child(5) { transition-delay: 0.40s; }
}

/* Respeto prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .menu-toggle span,
    .navegacion,
    .navegacion a {
        transition: none !important;
    }
}

/* ==========================================================================
   MEDIA QUERIES PARA RESPONSIVE DESIGN
   ========================================================================== */

/* --- TABLETS Y PANTALLAS MEDIANAS (hasta 992px) --- */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr 320px; 
        gap: 1.5rem;
    }

    .service-card {
        width: auto; 
    }

    .service-card.expanded {
        width: 100%; 
    }

    .process-wrap {
        padding: 40px; 
    }

    .logo-imagen img {
        height: 30px;
    }

}


/* --- TABLETS PEQUEÑAS Y MÓVILES GRANDES (hasta 768px) --- */
@media (max-width: 768px) {
    body {
        height: auto; 
    }

    .encabezado {
        width: 90%;
        padding: 1.5rem 0;
        top: 1rem;
        border-radius: 25px;
    }
    
    /* Preparamos para el menú de hamburguesa */
    .navegacion {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        inset: 0;
        background: linear-gradient(135deg, rgba(26,76,37,0.98), rgba(13,38,19,0.98));
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.32s ease, opacity 0.32s ease, visibility 0s linear 0.32s;
        z-index: 1000;
    }

    /* Cuando está abierto se muestra sobre el contenido */
    .navegacion.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        transition-delay: 0s;
    }

    .hero {
        padding: 12rem 0 2rem; 
        text-align: center; 
    }

    .muted {
      color: #333;
    }

    .resumen {
      color: #333;
    }

    .hero-grid {
        grid-template-columns: 1fr; 
        gap: 2.5rem;
    }
    
    .hero .main-title,
    .hero p.lead {
        max-width: 100%; 
        margin-left: auto;
        margin-right: auto;
    }

    .cta-group {
        justify-content: center; 
    }

    .resumen {
        align-self: center; 
        width: 100%;
        max-width: 420px;

    }

    .tools {
        margin-top: 5rem;
        
        align-items: center;
    }
    .search {
        max-width: 100%;
    }

    .cards-grid {
        gap: 1.5rem;
    }

    /* Adaptación de la Línea de Tiempo a VERTICAL */
    .process-wrap {
        grid-template-columns: 1fr; 
    }
    
    .timeline-track {
        flex-direction: column; 
        align-items: flex-start; 
        padding: 0;
        gap: 2rem; 
    }

    .timeline-line {
        width: 6px;
        height: 100%;
        left: 21px; 
        top: 0;
        transform: none;
    }

    .timeline-step {
        flex-direction: row; 
        width: 100%;
        gap: 1.5rem;
    }

    .step-label {
        text-align: left;
    }

    .detail-actions {
        flex-direction: column; 
    }

    .cta-button.secondary {
        width: 100%;
        justify-content: center;
    }

    .grid-footer {
        text-align: center; 
    }

    .pie-pagina h4::after {
        left: 50%; 
        transform: translateX(-50%);
    }
}


/* --- MÓVILES PEQUEÑOS (hasta 576px) --- */
@media (max-width: 576px) {
    .contenedor {
        padding: 0 var(--container-padding);
    }
    
    .hero {
        padding: 10rem 0 2rem;
    }
    
    .hero .main-title {
        font-size: var(--fluid-h2); 
    }
    
    .hero p.lead {
        font-size: 18px; 
    }

    .cta-group {
        flex-direction: column; 
        width: 100%;
    }

    .cta-button, .cta-button.primary {
        width: 100%; 
        height: 55px;
    }
    
    .cta-button:hover {
        width: 100%;
        height: 55px;
    }
    
    .process-wrap {
        padding: 24px;
        border-radius: 30px;
    }

    .process-header h2 {
        font-size: 1.8rem;
    }

    .process-detail {
        padding: 24px;
    }
}

/* Título centrado solo en móviles */
.header-title-mobile {
  display: none;
  font-weight: 800;
  letter-spacing: .06em;
  color: #ffffff;
  text-transform: uppercase;
  pointer-events: none;
}

@media (max-width: 768px) {
  .header-title-mobile {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.05rem;
  }
}