/* RESET */

*{

    margin:0;

    padding:0;

    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Montserrat',sans-serif;

    background:#F8F9FA;

    color:#1B1B1B;

}

:root{

    --primary:#48B7B0;

    --secondary:#2E8C88;

    --dark:#1B1B1B;

    --gray:#6C757D;

    --light:#F8F9FA;

    --white:#FFFFFF;

}

/* =========================
   HEADER
========================= */

.header{
    position: sticky;
    top: 18px;
    z-index: 1000;

    width: 92%;
    max-width: 1250px;

    margin: 0 auto;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:20px 38px;

    border-radius:22px;

    background:rgba(255,255,255,.78);

    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);

    border:1px solid rgba(255,255,255,.45);

    box-shadow:
        0 12px 35px rgba(0,0,0,.08);

    transition:
        all .35s ease,
        padding .35s ease,
        box-shadow .35s ease,
        background .35s ease;
}

.header.scrolled{

    padding:14px 34px;

    background:rgba(255,255,255,.92);

    box-shadow:
        0 18px 45px rgba(0,0,0,.12);

    border-color:rgba(72,183,176,.12);
}

.logo img{

    width:165px;

    transition:.35s;
}

.header.scrolled .logo img{

    width:150px;
}

.header nav{

    display:flex;
    gap:38px;
}

.header nav a{

    position:relative;

    text-decoration:none;

    color:var(--dark);

    font-weight:600;

    transition:.3s;
}

.header nav a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:0;

    height:2px;

    background:var(--primary);

    transition:.3s;
}

.header nav a:hover{

    color:var(--primary);
}

.header nav a:hover::after{

    width:100%;
}

.header nav a:hover{

    color:var(--primary);

}

.btn-header{

    background:var(--primary);

    color:white;

    text-decoration:none;

    padding:14px 28px;

    border-radius:50px;

    font-weight:700;

    transition:.3s;

}

.btn-header:hover{

    background:var(--secondary);

    transform:translateY(-4px);

    box-shadow:0 15px 30px rgba(72,183,176,.35);
}

/*==========================
        HERO
==========================*/

.hero{

    max-width:1200px;

    margin:70px auto;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap: 30px;

    padding:20px;

}

.hero-texto{

    flex:1;

}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    background: #E8F8F7;
    color: var(--secondary);

    padding: 9px 17px;
    border-radius: 50px;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;

    margin-bottom: 25px;
}

.tag img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.hero h1{

    font-size:58px;

    line-height:1.1;

    margin-bottom:25px;

}

.hero h1 span{

    color:var(--primary);

}

.hero p{

    font-size:20px;

    color:var(--gray);

    line-height:1.8;

    margin-bottom:35px;

}

.hero-botones{

    display:flex;

    gap:20px;

    margin-bottom:35px;

}

.btn-principal{

    background:var(--primary);

    color:white;

    text-decoration:none;

    padding:16px 30px;

    border-radius:50px;

    font-weight:700;

    transition:.3s;

}

.btn-principal:hover{

    background:var(--secondary);

    transform:translateY(-3px);

}

.btn-secundario{

    text-decoration:none;

    color:var(--dark);

    border:2px solid #ddd;

    padding:16px 30px;

    border-radius:50px;

    font-weight:700;

    transition:.3s;

}

.btn-secundario:hover{

    border-color:var(--primary);

    color:var(--primary);

}

.hero-info{

    color:var(--gray);

    font-weight:600;

}

.hero-imagen{

    flex:1;

    text-align:center;

}

.hero-imagen {
    flex: 1.15;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-imagen img {
    width: 115%;
    max-width: 650px;
    height: auto;
    object-fit: contain;
}

/*==========================
    ANIMACIONES DEL HERO
==========================*/

@keyframes aparecerArriba {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

@keyframes aparecerDerecha {

    from {
        opacity: 0;
        transform: translateX(45px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}

.hero .tag,
.hero h1,
.hero p,
.hero-botones,
.hero-info,
.hero-imagen {
    opacity: 0;
}

.hero .tag {
    animation: aparecerArriba 0.6s ease forwards;
    animation-delay: 0.1s;
}

.hero h1 {
    animation: aparecerArriba 0.7s ease forwards;
    animation-delay: 0.25s;
}

.hero p {
    animation: aparecerArriba 0.7s ease forwards;
    animation-delay: 0.4s;
}

.hero-botones {
    animation: aparecerArriba 0.7s ease forwards;
    animation-delay: 0.55s;
}

.hero-info {
    animation: aparecerArriba 0.7s ease forwards;
    animation-delay: 0.7s;
}

.hero-imagen {
    animation: aparecerDerecha 0.9s ease forwards;
    animation-delay: 0.35s;
}

/*==========================
      SERVICIOS
==========================*/

.servicios{

    padding:120px 20px;

    background:#F8FAFC;

}

.titulo-seccion{

    max-width:700px;

    margin:auto;

    text-align:center;

    margin-bottom:70px;

}

.titulo-seccion span{

    color:var(--primary);

    font-weight:700;

    letter-spacing:2px;

}

.titulo-seccion h2{

    font-size:46px;

    margin:20px 0;

    color:var(--dark);

}

.titulo-seccion p{

    color:var(--gray);

    font-size:18px;

    line-height:1.8;

}

.contenedor-servicios{

    max-width:1200px;

    margin:auto;

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}

.card-servicio{

    background:white;

    border-radius:25px;

    padding:40px 30px;

    transition:.4s;

    border:1px solid #eef2f7;

    position:relative;

    overflow:hidden;

    cursor:pointer;

}

.card-servicio::before{

    content:"";

    position:absolute;

    top:0;

    left:0;

    width:0;

    height:5px;

    background:var(--primary);

    transition:.4s;

}

.card-servicio:hover{

    transform:translateY(-10px);

    box-shadow:0 25px 45px rgba(0,0,0,.08);

}

.card-servicio:hover::before{

    width:100%;

}

.icono {
    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #E8F8F7;
    color: var(--primary);

    border-radius: 18px;
    margin-bottom: 24px;

    transition: 0.4s;
}

.icono svg {
    width: 30px;
    height: 30px;
    stroke-width: 1.8;
}

.card-servicio:hover .icono {
    transform: translateY(-5px) scale(1.08) rotate(4deg);
    background: var(--primary);
    color: white;
}

.card-servicio:hover .icono{

    transform:scale(1.15) rotate(8deg);

}

.card-servicio h3{

    margin-bottom:15px;

    color:var(--dark);

}

.card-servicio p{

    color:var(--gray);

    line-height:1.7;

}

/*==========================
      ESTADÍSTICAS
==========================*/

.estadisticas {
    padding: 120px 20px;
    background: var(--white);
}

.contenedor-estadisticas {
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
}

.estadistica {
    padding: 35px 20px;
    text-align: center;
    border-radius: 24px;
    transition: 0.4s;
}

.estadistica:hover {
    transform: translateY(-8px);
    background: #F8FAFC;
}

.linea-estadistica {
    width: 45px;
    height: 4px;

    margin: 0 auto 25px;

    background: var(--primary);
    border-radius: 20px;
}

.estadistica h3 {
    margin-bottom: 12px;

    color: var(--dark);
    font-size: 54px;
    line-height: 1;
}

.estadistica p {
    color: var(--gray);
    font-size: 16px;
    font-weight: 600;
}

/*==========================
       NUESTRO PROCESO
==========================*/

.proceso {
    padding: 120px 20px;
    background: var(--light);
    overflow: hidden;
}

.contenedor-proceso {
    position: relative;

    max-width: 1200px;
    margin: 70px auto 0;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
}

/* Línea horizontal */

.linea-proceso {
    position: absolute;
    top: 74px;
    left: 12.5%;

    width: 75%;
    height: 3px;

    background: #DDE9E8;
    border-radius: 20px;
    overflow: hidden;
}

.linea-progreso {
    width: 0;
    height: 100%;

    background: linear-gradient(
        90deg,
        var(--primary),
        var(--secondary)
    );

    border-radius: 20px;
    transition: width 1.5s ease;
}

/* Cada paso */

.paso-proceso {
    position: relative;
    z-index: 2;

    padding: 0 20px;
    text-align: center;

    opacity: 0;
    transform: translateY(35px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.numero-paso {
    margin-bottom: 15px;

    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
}

.icono-proceso {
    width: 82px;
    height: 82px;
    margin: 0 auto 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--primary);
    background: var(--white);

    border: 3px solid #DDF4F2;
    border-radius: 50%;

    box-shadow: 0 15px 35px rgba(27, 27, 27, 0.08);

    transition:
        transform 0.4s ease,
        background 0.4s ease,
        color 0.4s ease;
}

.icono-proceso svg {
    width: 32px;
    height: 32px;
    stroke-width: 2;
}

.paso-proceso:hover .icono-proceso {
    color: var(--white);
    background: var(--primary);
    transform: translateY(-8px) scale(1.05);
}

.paso-proceso h3 {
    margin-bottom: 15px;

    color: var(--dark);
    font-size: 23px;
}

.paso-proceso p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.8;
}

/* Animación activada desde JavaScript */

.proceso.visible .linea-progreso {
    width: 100%;
}

.proceso.visible .paso-proceso {
    opacity: 1;
    transform: translateY(0);
}

.proceso.visible .paso-proceso:nth-of-type(1) {
    transition-delay: 0.15s;
}

.proceso.visible .paso-proceso:nth-of-type(2) {
    transition-delay: 0.4s;
}

.proceso.visible .paso-proceso:nth-of-type(3) {
    transition-delay: 0.65s;
}

.proceso.visible .paso-proceso:nth-of-type(4) {
    transition-delay: 0.9s;
}

@media (max-width: 900px) {

    .contenedor-proceso {
        max-width: 650px;
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .linea-proceso {
        top: 35px;
        bottom: 35px;
        left: 40px;

        width: 3px;
        height: auto;
    }

    .linea-progreso {
        width: 100%;
        height: 0;

        transition: height 1.5s ease;
    }

    .proceso.visible .linea-progreso {
        width: 100%;
        height: 100%;
    }

    .paso-proceso {
        min-height: 100px;
        padding-left: 120px;
        text-align: left;
    }

    .numero-paso {
        margin-bottom: 8px;
    }

    .icono-proceso {
        position: absolute;
        top: 10px;
        left: 0;

        margin: 0;
    }
}

@media (max-width: 520px) {

    .proceso {
        padding: 90px 18px;
    }

    .contenedor-proceso {
        gap: 45px;
    }

    .paso-proceso {
        padding-left: 95px;
    }

    .linea-proceso {
        left: 34px;
    }

    .icono-proceso {
        width: 70px;
        height: 70px;
    }

    .icono-proceso svg {
        width: 27px;
        height: 27px;
    }
}

/*==========================
      POR QUÉ ELEVA
==========================*/

.porque-eleva{

    padding:120px 20px;
    background:white;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:70px;

}

.porque-texto{

    flex:1;
    max-width:560px;

}

.porque-texto span{

    color:var(--primary);
    font-weight:700;
    letter-spacing:2px;

}

.porque-texto h2{

    margin:20px 0;

    font-size:48px;
    line-height:1.2;

}

.porque-texto p{

    color:var(--gray);
    line-height:1.9;
    margin-bottom:40px;

}

.beneficios{

    display:grid;
    gap:22px;

}

.beneficio{

    display:flex;
    align-items:center;
    gap:18px;

    padding:18px 22px;

    background:#F8FAFC;

    border-radius:18px;

    transition:.35s;

}

.beneficio:hover{

    transform:translateX(10px);

}

.beneficio svg{

    color:var(--primary);

}

.porque-imagen{

    flex:1;
    position:relative;
    display:flex;
    justify-content:center;

}

.circulo{

    position:absolute;

    width:420px;
    height:420px;

    background:#DDF4F2;

    border-radius:50%;

    z-index:0;

}

.porque-imagen img{

    position:relative;

    width:100%;
    max-width:550px;

    z-index:1;

}

/* =========================================
   CONTACTO
========================================= */

.contact {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f7fbfb 100%
    );
}

.contact-container {
  position: relative;
  z-index: 2;
}

.contact-decoration {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  pointer-events: none;
}

.contact-decoration-one {
  width: 420px;
  height: 420px;
  top: -180px;
  right: -160px;
  background: rgba(20, 184, 166, 0.1);
}

.contact-decoration-two {
  width: 320px;
  height: 320px;
  bottom: -150px;
  left: -120px;
  background: rgba(45, 212, 191, 0.08);
}

.contact-heading {
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
}

.contact-heading .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-heading .section-tag svg {
  width: 16px;
  height: 16px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}

/* Información */

.contact-info {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 42px;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(
      145deg,
      #0f766e 0%,
      #0d9488 55%,
      #14b8a6 100%
    );
  box-shadow: 0 24px 70px rgba(15, 118, 110, 0.18);
  color: #ffffff;
}

.contact-info::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  top: -100px;
  right: -100px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.contact-info::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  top: -60px;
  right: -60px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.contact-info-header,
.contact-methods,
.contact-social,
.contact-quote {
  position: relative;
  z-index: 2;
}

.contact-info-header > span,
.contact-form-top span {
  display: block;
  margin-bottom: 9px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-info-header > span {
  color: rgba(255, 255, 255, 0.72);
}

.contact-info-header h3 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
  color: #ffffff;
}

.contact-info-header p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
}

.contact-methods {
  display: grid;
  gap: 13px;
  margin-top: 34px;
}

.contact-method {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 15px;
  align-items: center;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  text-decoration: none;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}

.contact-method:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.14);
}

.contact-method-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
}

.contact-method-icon svg {
  width: 21px;
  height: 21px;
}

.contact-method-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-method-text span {
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-method-text strong {
  color: #ffffff;
  font-size: 0.96rem;
}

.contact-method-text small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

.contact-arrow {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-social > span {
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-social-links {
  display: flex;
  gap: 10px;
}

.contact-social-links a {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.contact-social-links a:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.18);
}

.contact-social-links svg {
  width: 18px;
  height: 18px;
}

.contact-quote {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: auto;
  padding-top: 30px;
  color: rgba(255, 255, 255, 0.82);
}

.contact-quote svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #99f6e4;
}

.contact-quote p {
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.6;
}

/* Formulario */

.contact-form-wrapper {
  padding: 42px;
  border: 1px solid rgba(15, 118, 110, 0.11);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(14px);
}

.contact-form-top {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.contact-form-top span {
  color: #0d9488;
}

.contact-form-top h3 {
  color: #0f172a;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.contact-form-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  flex-shrink: 0;
  border-radius: 17px;
  background: rgba(20, 184, 166, 0.11);
  color: #0d9488;
}

.contact-form-icon svg {
  width: 23px;
  height: 23px;
}

.contact-form {
  display: grid;
  gap: 21px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.form-group {
  display: grid;
  gap: 9px;
}

.form-group label {
  color: #334155;
  font-size: 0.88rem;
  font-weight: 650;
}

.form-group label span {
  margin-left: 4px;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 500;
}

.form-control {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 57px;
  overflow: hidden;
  border: 1px solid #dce5e7;
  border-radius: 15px;
  background: #f8fafc;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.form-control:focus-within {
  border-color: #14b8a6;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

.form-control > svg:first-child {
  width: 19px;
  height: 19px;
  margin-left: 17px;
  flex-shrink: 0;
  color: #94a3b8;
  transition: color 0.25s ease;
}

.form-control:focus-within > svg:first-child {
  color: #0d9488;
}

.form-control input,
.form-control select,
.form-control textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
}

.form-control input,
.form-control select {
  height: 55px;
  padding: 0 17px 0 13px;
}

.form-control select {
  padding-right: 45px;
  cursor: pointer;
  appearance: none;
}

.select-arrow {
  position: absolute;
  right: 16px;
  width: 18px;
  height: 18px;
  pointer-events: none;
  color: #64748b;
}

.form-textarea {
  align-items: flex-start;
}

.form-textarea > svg:first-child {
  margin-top: 18px;
}

.form-control textarea {
  min-height: 150px;
  padding: 17px 17px 17px 13px;
  resize: vertical;
  line-height: 1.6;
}

.form-control input::placeholder,
.form-control textarea::placeholder {
  color: #94a3b8;
}

.contact-submit {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background:
    linear-gradient(
      135deg,
      #0f766e,
      #14b8a6
    );
  box-shadow: 0 14px 28px rgba(13, 148, 136, 0.24);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-submit::before {
  content: "";
  position: absolute;
  width: 80px;
  height: 160%;
  top: -30%;
  left: -120px;
  transform: rotate(20deg);
  background: rgba(255, 255, 255, 0.24);
  filter: blur(2px);
  transition: left 0.65s ease;
}

.contact-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 19px 35px rgba(13, 148, 136, 0.3);
}

.contact-submit:hover::before {
  left: calc(100% + 70px);
}

.contact-submit span,
.contact-submit svg {
  position: relative;
  z-index: 2;
}

.contact-submit svg {
  width: 19px;
  height: 19px;
  transition: transform 0.3s ease;
}

.contact-submit:hover svg {
  transform: translateX(4px);
}

.contact-privacy {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.79rem;
  line-height: 1.5;
  text-align: center;
}

.contact-privacy svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #0d9488;
}

.form-message {
  display: none;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(20, 184, 166, 0.1);
  color: #0f766e;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

/* Responsive */

@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    order: 1;
  }

  .contact-info {
    order: 2;
  }

  .contact-quote {
    margin-top: 25px;
  }
}

@media (max-width: 680px) {
  .contact-heading {
    margin-bottom: 38px;
  }

  .contact-info,
  .contact-form-wrapper {
    padding: 27px 20px;
    border-radius: 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-method {
    grid-template-columns: auto 1fr;
  }

  .contact-arrow {
    display: none;
  }

  .contact-form-top {
    align-items: flex-start;
  }

  .contact-form-icon {
    width: 47px;
    height: 47px;
    border-radius: 14px;
  }

  .contact-social {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
}

/* =========================
   CTA FINAL
========================= */

.footer-cta {
  position: relative;
  padding: 110px 24px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(34, 211, 238, 0.14),
      transparent 34%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(20, 184, 166, 0.12),
      transparent 32%
    ),
    #f8fafc;
}

.footer-cta::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  top: -240px;
  right: -140px;
  border-radius: 50%;
  border: 1px solid rgba(20, 184, 166, 0.16);
}

.footer-cta__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.footer-cta__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  margin-bottom: 24px;
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #0f766e;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-cta h2 {
  max-width: 800px;
  margin: 0 auto 22px;
  color: #0f172a;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.footer-cta p {
  max-width: 680px;
  margin: 0 auto 36px;
  color: #64748b;
  font-size: 1.08rem;
  line-height: 1.8;
}

.footer-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 25px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(15, 118, 110, 0.22);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.footer-cta__button:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(15, 118, 110, 0.3);
}

.footer-cta__button svg {
  width: 19px;
  height: 19px;
  transition: transform 0.3s ease;
}

.footer-cta__button:hover svg {
  transform: translate(3px, -3px);
}


/* =========================
   FOOTER
========================= */

.footer {
  position: relative;
  padding: 85px 24px 30px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(20, 184, 166, 0.09),
      transparent 30%
    ),
    #07111f;
  color: #ffffff;
}

.footer::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  right: -300px;
  bottom: -330px;
  border-radius: 50%;
  border: 1px solid rgba(45, 212, 191, 0.08);
}

.footer__container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 0.9fr 1.2fr;
  gap: 55px;
}

.footer__brand {
  max-width: 360px;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 22px;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.footer__logo span {
  margin-left: 5px;
  color: #2dd4bf;
}

.footer__brand p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.98rem;
  line-height: 1.8;
}

.footer__socials {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.footer__socials a {
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease;
}

.footer__socials a:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 212, 191, 0.45);
  background: rgba(45, 212, 191, 0.08);
  color: #2dd4bf;
}

.footer__socials svg {
  width: 19px;
  height: 19px;
}

.footer__column h3 {
  margin: 4px 0 23px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer__column ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer__column ul a {
  position: relative;
  color: #94a3b8;
  font-size: 0.95rem;
  text-decoration: none;
  transition:
    color 0.3s ease,
    padding-left 0.3s ease;
}

.footer__column ul a::before {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  left: 0;
  bottom: -4px;
  background: #2dd4bf;
  transition: width 0.3s ease;
}

.footer__column ul a:hover {
  padding-left: 4px;
  color: #ffffff;
}

.footer__column ul a:hover::before {
  width: 24px;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__contact > a,
.footer__location {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 17px;
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.55;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__contact > a:hover {
  color: #2dd4bf;
}

.footer__contact svg,
.footer__location svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: #2dd4bf;
}

.footer__divider {
  width: 100%;
  height: 1px;
  margin: 65px 0 28px;
  background: rgba(148, 163, 184, 0.14);
}

.footer__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.footer__signature {
  margin: 0 0 8px;
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 500;
}

.footer__copyright {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.footer__legal a {
  color: #64748b;
  font-size: 0.86rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__legal a:hover {
  color: #2dd4bf;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {
  .footer__top {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__brand {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .footer-cta {
    padding: 80px 20px;
  }

  .footer-cta h2 {
    font-size: 2.35rem;
  }

  .footer-cta p {
    font-size: 1rem;
  }

  .footer-cta__button {
    width: 100%;
    max-width: 320px;
  }

  .footer {
    padding: 65px 20px 28px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .footer__divider {
    margin: 48px 0 25px;
  }

  .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer__legal {
    flex-direction: column;
    gap: 12px;
  }
}

.footer__socials i {
  font-size: 19px;
}

/* =========================================
   BOTONES PREMIUM — ELEVA GROUP
========================================= */

.btn-header,
.btn-principal,
.footer-cta__button,
.contact-submit {
    position: relative;
    isolation: isolate;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            var(--secondary),
            var(--primary)
        );

    color: var(--white);
    border: none;

    box-shadow:
        0 12px 26px rgba(46, 140, 136, 0.22);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

/* Brillo que atraviesa el botón */

.btn-header::before,
.btn-principal::before,
.footer-cta__button::before,
.contact-submit::before {
    content: "";

    position: absolute;
    z-index: -1;

    width: 55px;
    height: 180%;

    top: -40%;
    left: -100px;

    transform: rotate(22deg);

    background: rgba(255, 255, 255, 0.28);
    filter: blur(2px);

    transition: left 0.65s ease;
}

/* Hover uniforme */

.btn-header:hover,
.btn-principal:hover,
.footer-cta__button:hover,
.contact-submit:hover {
    transform: translateY(-4px);

    background:
        linear-gradient(
            135deg,
            #277f7b,
            #48b7b0
        );

    box-shadow:
        0 18px 36px rgba(46, 140, 136, 0.32);
}

.btn-header:hover::before,
.btn-principal:hover::before,
.footer-cta__button:hover::before,
.contact-submit:hover::before {
    left: calc(100% + 65px);
}

/* Sensación al hacer clic */

.btn-header:active,
.btn-principal:active,
.footer-cta__button:active,
.contact-submit:active {
    transform: translateY(-1px) scale(0.98);

    box-shadow:
        0 8px 18px rgba(46, 140, 136, 0.22);
}

/* Enfoque para teclado */

.btn-header:focus-visible,
.btn-principal:focus-visible,
.btn-secundario:focus-visible,
.footer-cta__button:focus-visible,
.contact-submit:focus-visible {
    outline: 3px solid rgba(72, 183, 176, 0.3);
    outline-offset: 4px;
}

.btn-secundario {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.72);

    border: 1px solid rgba(27, 27, 27, 0.13);

    box-shadow:
        0 8px 22px rgba(15, 23, 42, 0.05);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.btn-secundario:hover {
    color: var(--secondary);

    border-color: rgba(72, 183, 176, 0.5);

    background: rgba(232, 248, 247, 0.75);

    transform: translateY(-4px);

    box-shadow:
        0 15px 30px rgba(46, 140, 136, 0.13);
}

.btn-secundario:active {
    transform: translateY(-1px) scale(0.98);
}

.footer-cta__button svg,
.contact-submit svg {
    transition: transform 0.3s ease;
}

.footer-cta__button:hover svg {
    transform: translate(4px, -4px);
}

.contact-submit:hover svg {
    transform: translateX(5px);
}

@media (max-width: 640px) {

    .btn-header,
    .btn-principal,
    .btn-secundario,
    .footer-cta__button {
        min-height: 50px;
    }

    .hero-botones {
        width: 100%;
    }

    .hero-botones .btn-principal,
    .hero-botones .btn-secundario {
        flex: 1;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {

    .btn-header,
    .btn-principal,
    .btn-secundario,
    .footer-cta__button,
    .contact-submit,
    .btn-header::before,
    .btn-principal::before,
    .footer-cta__button::before,
    .contact-submit::before {
        transition: none;
    }

    .btn-header:hover,
    .btn-principal:hover,
    .btn-secundario:hover,
    .footer-cta__button:hover,
    .contact-submit:hover {
        transform: none;
    }
}

/* =========================================
   TARJETAS PREMIUM — ELEVA GROUP
========================================= */

/* Base compartida */

.card-servicio,
.estadistica,
.beneficio,
.contact-form-wrapper {
    position: relative;
    isolation: isolate;

    border: 1px solid rgba(15, 118, 110, 0.10);

    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.05);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        background 0.35s ease;
}

.card-servicio {
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(248, 252, 252, 0.96)
        );

    border-radius: 24px;
}

/* Brillo suave */

.card-servicio::after {
    content: "";

    position: absolute;
    z-index: -1;

    width: 180px;
    height: 180px;

    top: -110px;
    right: -110px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(72, 183, 176, 0.16),
            transparent 70%
        );

    opacity: 0;

    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}

.card-servicio:hover {
    transform:
        translateY(-10px)
        rotate(-0.5deg);

    border-color: rgba(72, 183, 176, 0.30);

    box-shadow:
        0 25px 55px rgba(15, 23, 42, 0.10),
        0 0 0 1px rgba(72, 183, 176, 0.04);
}

.card-servicio:hover::after {
    opacity: 1;
    transform: scale(1.15);
}

.card-servicio::before {
    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--secondary),
            var(--primary),
            #7ddbd5
        );

    border-radius:
        24px 24px 0 0;

    box-shadow:
        0 4px 14px rgba(72, 183, 176, 0.20);
}

.card-servicio .icono {
    position: relative;

    box-shadow:
        inset 0 0 0 1px rgba(72, 183, 176, 0.08);

    transition:
        transform 0.4s ease,
        background 0.4s ease,
        color 0.4s ease,
        box-shadow 0.4s ease;
}

.card-servicio:hover .icono {
    color: var(--white);
    background:
        linear-gradient(
            135deg,
            var(--secondary),
            var(--primary)
        );

    transform:
        translateY(-5px)
        scale(1.08)
        rotate(4deg);

    box-shadow:
        0 14px 25px rgba(46, 140, 136, 0.24);
}

.card-servicio h3 {
    font-size: 1.25rem;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.card-servicio:hover h3 {
    color: var(--secondary);
    transform: translateX(3px);
}

.card-servicio p {
    transition: color 0.3s ease;
}

.card-servicio:hover p {
    color: #52606d;
}

.estadistica {
    overflow: hidden;

    background: rgba(255, 255, 255, 0.72);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.estadistica::before {
    content: "";

    position: absolute;
    z-index: -1;

    width: 150px;
    height: 150px;

    left: 50%;
    bottom: -130px;

    transform: translateX(-50%);

    border-radius: 50%;

    background: rgba(72, 183, 176, 0.12);

    transition:
        bottom 0.4s ease,
        transform 0.4s ease;
}

.estadistica:hover {
    transform: translateY(-8px);

    border-color: rgba(72, 183, 176, 0.25);

    background: var(--white);

    box-shadow:
        0 20px 45px rgba(15, 23, 42, 0.08);
}

.estadistica:hover::before {
    bottom: -105px;

    transform:
        translateX(-50%)
        scale(1.15);
}

.estadistica h3 {
    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.estadistica:hover h3 {
    color: var(--secondary);
    transform: scale(1.04);
}

.estadistica:hover .linea-estadistica {
    width: 65px;
}

.linea-estadistica {
    transition:
        width 0.35s ease,
        box-shadow 0.35s ease;
}

.estadistica:hover .linea-estadistica {
    box-shadow:
        0 5px 14px rgba(72, 183, 176, 0.25);
}

.beneficio {
    border: 1px solid transparent;

    box-shadow:
        0 7px 20px rgba(15, 23, 42, 0.03);

    transition:
        transform 0.35s ease,
        background 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.beneficio:hover {
    transform: translateX(10px);

    background: var(--white);

    border-color: rgba(72, 183, 176, 0.22);

    box-shadow:
        0 15px 32px rgba(15, 23, 42, 0.07);
}

.beneficio svg {
    transition:
        transform 0.35s ease,
        color 0.35s ease;
}

.beneficio:hover svg {
    color: var(--secondary);
    transform: scale(1.15) rotate(-5deg);
}

@media (max-width: 680px) {

    .card-servicio:hover,
    .estadistica:hover {
        transform: translateY(-5px);
    }

    .beneficio:hover {
        transform: translateX(5px);
    }
}

@media (prefers-reduced-motion: reduce) {

    .card-servicio,
    .estadistica,
    .beneficio,
    .card-servicio::after,
    .card-servicio .icono,
    .card-servicio h3,
    .linea-estadistica {
        transition: none;
    }

    .card-servicio:hover,
    .estadistica:hover,
    .beneficio:hover,
    .card-servicio:hover .icono,
    .card-servicio:hover h3,
    .estadistica:hover h3,
    .beneficio:hover svg {
        transform: none;
    }
}

/* =========================================
   FONDOS DECORATIVOS — ELEVA GROUP
========================================= */

.hero,
.servicios,
.estadisticas,
.proceso,
.porque-eleva {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.hero::before {
    content: "";

    position: absolute;
    z-index: -2;

    width: 520px;
    height: 520px;

    top: -260px;
    left: -220px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(72, 183, 176, 0.14),
            rgba(72, 183, 176, 0.04) 45%,
            transparent 72%
        );

    pointer-events: none;
}

.hero::after {
    content: "";

    position: absolute;
    z-index: -2;

    width: 420px;
    height: 420px;

    right: -180px;
    bottom: -210px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(46, 140, 136, 0.11),
            transparent 70%
        );

    pointer-events: none;
}

.servicios::before {
    content: "";

    position: absolute;
    z-index: -2;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(72, 183, 176, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(72, 183, 176, 0.035) 1px,
            transparent 1px
        );

    background-size: 48px 48px;

    mask-image:
        linear-gradient(
            to bottom,
            transparent,
            black 18%,
            black 82%,
            transparent
        );

    -webkit-mask-image:
        linear-gradient(
            to bottom,
            transparent,
            black 18%,
            black 82%,
            transparent
        );

    pointer-events: none;
}

.servicios::after {
    content: "";

    position: absolute;
    z-index: -1;

    width: 340px;
    height: 340px;

    top: 80px;
    right: -170px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(72, 183, 176, 0.10),
            transparent 70%
        );

    pointer-events: none;
}

.estadisticas::before {
    content: "";

    position: absolute;
    z-index: -2;

    width: 620px;
    height: 220px;

    left: 50%;
    bottom: -130px;

    transform: translateX(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            ellipse,
            rgba(72, 183, 176, 0.12),
            transparent 72%
        );

    filter: blur(10px);
    pointer-events: none;
}

.proceso::before,
.proceso::after {
    content: "";

    position: absolute;
    z-index: -2;

    border-radius: 50%;

    pointer-events: none;
}

.proceso::before {
    width: 360px;
    height: 360px;

    top: -190px;
    right: -150px;

    border: 1px solid rgba(72, 183, 176, 0.12);

    box-shadow:
        0 0 0 45px rgba(72, 183, 176, 0.025),
        0 0 0 90px rgba(72, 183, 176, 0.018);
}

.proceso::after {
    width: 280px;
    height: 280px;

    bottom: -170px;
    left: -130px;

    background:
        radial-gradient(
            circle,
            rgba(72, 183, 176, 0.10),
            transparent 70%
        );
}

.porque-eleva::before {
    content: "";

    position: absolute;
    z-index: -2;

    width: 500px;
    height: 500px;

    right: -220px;
    top: 50%;

    transform: translateY(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(72, 183, 176, 0.10),
            rgba(72, 183, 176, 0.025) 45%,
            transparent 72%
        );

    pointer-events: none;
}

.titulo-seccion,
.contact-heading,
.porque-texto {
    position: relative;
    z-index: 2;
}

.titulo-seccion::before {
    content: "";

    position: absolute;
    z-index: -1;

    width: 180px;
    height: 70px;

    left: 50%;
    top: -20px;

    transform: translateX(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            ellipse,
            rgba(72, 183, 176, 0.10),
            transparent 72%
        );

    filter: blur(8px);
    pointer-events: none;
}

/* Scrollbar para Chrome, Edge y Safari */

::-webkit-scrollbar {
    width: 11px;
}

::-webkit-scrollbar-track {
    background: #eef3f4;
}

::-webkit-scrollbar-thumb {
    border: 3px solid #eef3f4;
    border-radius: 999px;

    background:
        linear-gradient(
            180deg,
            var(--primary),
            var(--secondary)
        );
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Firefox */

html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #eef3f4;
}

@media (max-width: 680px) {

    .hero::before {
        width: 350px;
        height: 350px;

        top: -170px;
        left: -190px;
    }

    .hero::after {
        width: 280px;
        height: 280px;

        right: -160px;
        bottom: -120px;
    }

    .servicios::before {
        background-size: 36px 36px;
    }

    .proceso::before {
        width: 250px;
        height: 250px;

        right: -170px;

        box-shadow:
            0 0 0 35px rgba(72, 183, 176, 0.022);
    }

    .porque-eleva::before {
        width: 330px;
        height: 330px;

        right: -230px;
    }
}

/* =========================================
   PULIDO GENERAL — ELEVA GROUP
========================================= */

/* Selección de texto */

::selection {
    background: rgba(72, 183, 176, 0.25);
    color: var(--dark);
}

/* Mejor desplazamiento hacia las secciones */

section {
    scroll-margin-top: 120px;
}

/* Texto más limpio y agradable */

body {
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Imágenes protegidas contra deformaciones */

img {
    display: block;
    max-width: 100%;
}

/* Enlaces y botones más agradables al tocar */

a,
button {
    -webkit-tap-highlight-color: transparent;
}

/* Cursor correcto */

button,
select,
.btn-header,
.btn-principal,
.btn-secundario,
.footer-cta__button,
.contact-submit {
    cursor: pointer;
}

.hero h1,
.titulo-seccion h2,
.porque-texto h2,
.contact-heading h2,
.footer-cta h2 {
    text-wrap: balance;
}

.hero p,
.titulo-seccion p,
.porque-texto p,
.contact-heading p,
.footer-cta p {
    text-wrap: pretty;
}

.hero {
    min-height: calc(100vh - 140px);
}

.hero-texto {
    position: relative;
    z-index: 2;
}

.hero h1 {
    letter-spacing: -0.045em;
}

.hero-imagen img {
    filter:
        drop-shadow(0 30px 45px rgba(15, 23, 42, 0.12));

    transition:
        transform 0.5s ease,
        filter 0.5s ease;
}

.hero-imagen:hover img {
    transform: translateY(-7px) scale(1.015);

    filter:
        drop-shadow(0 38px 55px rgba(15, 23, 42, 0.16));
}

.hero-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;

    color: #64748b;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.6;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(72, 183, 176, 0.28);
    outline-offset: 4px;
}

.servicios,
.estadisticas,
.proceso,
.porque-eleva,
.contact {
    padding-top: 120px;
    padding-bottom: 120px;
}

.titulo-seccion {
    margin-bottom: 64px;
}

.titulo-seccion span,
.porque-texto > span,
.section-tag {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer a,
.contact-social-links a {
    transition:
        color 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

@media (max-width: 992px) {

    .hero {
        min-height: auto;
        margin-top: 55px;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 7vw, 4rem);
    }

    .titulo-seccion h2,
    .porque-texto h2 {
        font-size: clamp(2.2rem, 6vw, 3.2rem);
    }

    .servicios,
    .estadisticas,
    .proceso,
    .porque-eleva,
    .contact {
        padding-top: 95px;
        padding-bottom: 95px;
    }
}

@media (max-width: 680px) {

    section {
        scroll-margin-top: 90px;
    }

    .hero {
        margin: 45px auto 60px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero h1 {
        font-size: clamp(2.45rem, 12vw, 3.2rem);
        line-height: 1.05;
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .hero-info {
        gap: 8px 14px;
        font-size: 0.82rem;
    }

    .titulo-seccion {
        margin-bottom: 45px;
    }

    .titulo-seccion h2,
    .porque-texto h2 {
        font-size: clamp(2rem, 9vw, 2.65rem);
        line-height: 1.13;
    }

    .titulo-seccion p,
    .porque-texto p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .servicios,
    .estadisticas,
    .proceso,
    .porque-eleva,
    .contact {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .hero-imagen:hover img {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/*=========================
    REVEAL ANIMATION
==========================*/

/* =========================
   REVEAL ON SCROLL
========================= */

/* Seguridad: evita contenido oculto si JavaScript falla */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.no-js .reveal {
    opacity: 1;
    transform: none;
}

.reveal.active{

    opacity:1;

    transform:translateY(0);

}

/* =========================================
   GLOW INTERACTIVO EN TARJETAS
========================================= */

.card-servicio,
.estadistica,
.beneficio,
.contact-info,
.contact-form-wrapper {
    --mouse-x: 50%;
    --mouse-y: 50%;

    position: relative;
    isolation: isolate;
}

.card-servicio::after,
.estadistica::after,
.beneficio::after,
.contact-form-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;

    z-index: -1;
    pointer-events: none;

    border-radius: inherit;

    background: radial-gradient(
        280px circle at var(--mouse-x) var(--mouse-y),
        rgba(72, 183, 176, 0.16),
        transparent 55%
    );

    opacity: 0;
    transition: opacity 0.35s ease;
}

.card-servicio:hover::after,
.estadistica:hover::after,
.beneficio:hover::after,
.contact-form-wrapper:hover::after {
    opacity: 1;
}

/* =========================================
   BOTONES MAGNÉTICOS
========================================= */

.btn-header,
.btn-principal,
.btn-secundario,
.contact-submit,
.footer-cta__button {
    will-change: transform;
    transition:
        transform 0.25s ease,
        box-shadow 0.3s ease,
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

/* =========================================
   CURSOR SPOTLIGHT
========================================= */

.spotlight-section {
    --spotlight-x: 50%;
    --spotlight-y: 50%;

    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.spotlight-section::before {
    content: "";
    position: absolute;
    inset: 0;

    z-index: -1;
    pointer-events: none;

    background: radial-gradient(
        500px circle at var(--spotlight-x) var(--spotlight-y),
        rgba(72, 183, 176, 0.15),
        transparent 55%
    );

    opacity: 0;
    transition: opacity 0.4s ease;
}

.spotlight-section:hover::before {
    opacity: 1;
}

/* =========================================
   BARRA DE PROGRESO DEL SCROLL
========================================= */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    z-index: 9999;
    pointer-events: none;

    background: rgba(255, 255, 255, 0.04);
}

.scroll-progress__bar {
    width: 0%;
    height: 100%;

    background: linear-gradient(
        90deg,
        #48b7b0,
        #65d8d0,
        #48b7b0
    );

    box-shadow:
        0 0 8px rgba(72, 183, 176, 0.7),
        0 0 18px rgba(72, 183, 176, 0.35);

    transition: width 0.08s linear;
}

/* =========================================
   ACCESIBILIDAD: MOVIMIENTO REDUCIDO
========================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .scroll-progress__bar {
        transition: none;
    }
}

/* =========================================
   ACCESIBILIDAD: MOVIMIENTO REDUCIDO
========================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .scroll-progress__bar {
        transition: none;
    }
}

/* =========================================
   CORRECCIÓN RESPONSIVE FINAL
   HEADER, SERVICIOS E IMPACTO
========================================= */

@media (max-width: 768px) {

    /* HEADER */
    .header {
        position: sticky;
        top: 10px;

        width: calc(100% - 24px);
        padding: 14px 16px;

        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;

        border-radius: 20px;
    }

    .header.scrolled {
        padding: 12px 16px;
    }

    .header .logo {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .header .logo img,
    .header.scrolled .logo img {
        width: 120px;
    }

    .header nav {
        width: 100%;

        display: flex;
        justify-content: flex-start;
        gap: 24px;

        overflow-x: auto;
        padding: 5px 4px 9px;

        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .header nav::-webkit-scrollbar {
        display: none;
    }

    .header nav a {
        flex: 0 0 auto;
        font-size: 0.92rem;
        white-space: nowrap;
    }

    .btn-header {
        display: none;
    }

    /* HERO */
    .hero {
        width: 100%;
        flex-direction: column;
        gap: 35px;
    }

    .hero-texto {
        width: 100%;
    }

    .hero-imagen {
        width: 100%;
    }

    .hero-imagen img {
        width: 100%;
        max-width: 480px;
    }

    /* SERVICIOS */
    .contenedor-servicios {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-servicio {
        width: 100%;
        padding: 30px 24px;
        border-radius: 21px;
    }

    /* NUESTRO IMPACTO */
    .contenedor-estadisticas {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .estadistica {
        padding: 28px 12px;
        background: #ffffff;
        border-radius: 20px;
    }

    .estadistica h3 {
        font-size: 2.4rem;
    }

    .estadistica p {
        font-size: 0.88rem;
        line-height: 1.45;
    }
}

@media (max-width: 430px) {

    .header nav {
        gap: 21px;
    }

    .header nav a {
        font-size: 0.88rem;
    }

    .hero h1 {
        font-size: clamp(2.25rem, 11.5vw, 2.8rem);
    }

    .hero-botones {
        flex-direction: column;
        gap: 12px;
    }

    .hero-botones .btn-principal,
    .hero-botones .btn-secundario {
        width: 100%;
        flex: none;
    }

    .contenedor-estadisticas {
        grid-template-columns: 1fr;
    }

    .estadistica {
        padding: 30px 20px;
    }

    .estadistica h3 {
        font-size: 2.8rem;
    }
}