
:root {
    --font-primary: 'New Highway', sans-serif;
    --font-secondary: 'SangBleu Kingdom', serif;

    --hero-ratio: 570;
    --nav-ratio: 152;
}


/* ------------------ GENERALES ------------------ */

html {
  font-size: 16px; /* prueba 15 o 14.5 */
  scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100%;
}


body {
    margin: 0;
    background-color: #000;
    color: #fff;
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
}

h1 {
    margin: 0;
    font-weight: 700;
    font-size: 3.8rem;
    letter-spacing: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}


/* ------------------ NAV ------------------ */
.nav {
    width: 100%;
    background-color: #fff;
}

.nav-frame {
    width: 1280px;
    height: 150px;
    margin: 0 auto;
    position: relative;
}
/* ----LOGO --- */
.nav-logo {
    position: absolute;
    left: 107px;
    top: 49px;

    width: 284px;
    height: 59px;
}

.nav-logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- BOTONES --- */
.nav {
    width: 100%;
    background-color: #fff;
}

.nav-frame {
    width: 1280px;
    height: 150px;
    margin: 0 auto;
    position: relative;
}

/* ----LOGO --- */
.nav-logo {
    position: absolute;
    left: 107px;
    top: 49px;
    width: 284px;
    height: 59px;
}

.nav-logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- BOTONES --- */
.nav-btn {
    position: absolute;
    top: 44px;
    width: 90px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: "New Highway", sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;

    border: 2px solid #000;
    border-radius: 12px;

    background: transparent;
    color: #000;
    cursor: pointer;
    
    transition: all 0.25s ease;
    overflow: hidden; 
}

.btn-servicios { left: 692px; }
.btn-clientes  { left: 822px; }
.btn-nosotros  { left: 952px; }
.btn-contacto  { left: 1082px; }

/* Estado activo */
.nav-btn.active {
    background: #000;
    color: #fff;
}


.nav-btn:not(.active):hover,
.nav-btn:not(.active):focus {
    box-shadow: inset 5rem 0 0 0 #000;
    color: #fff;
}


.nav-btn.active:hover,
.nav-btn.active:focus {
    box-shadow: inset 5rem 0 0 0 #fff;
    color: #000;
}

/* ------------------ HERO ------------------ */
.hero {
    display: flex;
    justify-content: center;
}

.hero-frame {
    width: 1280px;
    height: 570px;

    position: relative;

    background-image: url("../images/hero-fondo.png");
    background-size: cover;
    background-position: center;
}
.hero-eco {
    position: absolute;
    top: calc(208px - 150px);
    left: 147px;

    font-family: 'New Highway', sans-serif;
    font-weight: 700;
    font-size: 4rem;
    line-height: 1;

    color: #fff;
}
.hero-de {
    position: absolute;
    top: 58px;
    left: 761px;

    font-family: 'New Highway', sans-serif;
    font-weight: 700;
    font-size: 64px;
    line-height: 1;
}
.hero-vanguardia {
    position: absolute;
    left: 602px;
    top: calc(463px - 150px);

    font-family: 'New Highway', sans-serif;
    font-weight: 700;
    font-size: 64px;
    line-height: 1.15;
}
.hero-logo {
    position: absolute;
    left: 175px;
    top: calc(292px - 150px);

    width: 148px;
    text-align: center;
}
.hero-logo img {
    width: 148px;
    height: 135px;
    display: block;
    margin: 0 auto;
}
.hero-logo span {
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-top: 6px;
}



.logo-small {
    font-size: 0.8rem;
    margin-top: 5px;
    letter-spacing: 1px;
}

/* Animaciones de entrada */
.hero-eco,
.hero-de,
.hero-vanguardia {
    opacity: 0;
    transition: all 0.8s ease;
}

/* Desde la izquierda */
.hero-eco {
    transform: translateX(-100px);
}

/* Desde la derecha */
.hero-de,
.hero-vanguardia {
    transform: translateX(100px);
}


.hero-eco.is-visible,
.hero-de.is-visible,
.hero-vanguardia.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Responsivo */
@media (max-width: 900px) {
    h1 {
        font-size: 2.5rem;
    }

    .logo {
        font-size: 1.8rem;
    }

    .hero {
        padding: 0 20px;
    }
}

/* ------------------ SERVICIOS ------------------ */

.servicios {
  background: #fff;
  color: #000;
  display: flex;
  justify-content: center;
  padding-top: 50px;
  padding-bottom: 50px;
}

.servicios-frame {
  display: grid;
  grid-template-columns: repeat(2, 336px); 
  grid-template-rows: repeat(2, auto);
  gap: 32px 96px;
  justify-content: center;
 
}

.service-card {
  border: 1px solid #000;
  border-radius: 8px;
  background: #fff;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-icon {
  width: 100px;
  height: auto;
  margin-bottom: 24px;
}

.service-icon.small {
  width: 36px;
}

.service-card p {
  font-family: 'SangBleu Kingdom', serif;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

/* Animaciones para las tarjetas de servicios */
.service-card {
  border: 1px solid #000;
  border-radius: 8px;
  background: #fff;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  
  /* Estado inicial */
  opacity: 0;
  transition: all 0.8s ease;
}

/* Tarjetas impares (1 y 3) desde la izquierda */
.card-1,
.card-3 {
  transform: translateX(-50px);
}

/* Tarjetas pares (2 y 4) desde la derecha */
.card-2,
.card-4 {
  transform: translateX(50px);
}

/* Estado visible */
.service-card.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ------------------ CLIENTES ------------------ */


.clientes {
    background: #fff;
    color: #000;
    display: flex;
    justify-content: center;
    padding: 50px 20px 60px;
}

/* Contenedor fluido */
.clientes .container {
    max-width: 1280px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

/* ------ TÍTULO ---- */
.clientes h2 {
    font-family: "New Highway", sans-serif;
    font-weight: 700;
    font-size: 36px;
    text-align: center;
    margin: 0;
}

/* ---- SLIDER ----- */
.clientes-slider {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Ventana */
.logos-wrapper {
    overflow: hidden;
    width: 500px; /* 4 logos */
}

/* Pista */
.logos-track {
    display: flex;
    gap: 38px;
    will-change: transform;
}

/* Logos */
.logos-track img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.logos-track img:hover {
    opacity: 1;
}

.arrow {
    background: none;
    border: none;
}

.arrow img {
    filter: none;
    opacity: 0.8;
}

.arrow img:hover {
    opacity: 1;
}


/* Responsive */
@media (max-width: 768px) {
    .logos-wrapper {
        width: 240px; /* 2 logos */
    }
}


/* ---------- NOTA LEGAL ---------- */
.clientes-nota {
    max-width: 900px;
    font-family: "SangBleu Kingdom", serif;
    font-weight: 300;
    font-size: 10px;
    text-align: center;
    color: #000;
    opacity: 0.7;
    margin: 0;
}

/* ---------- ALIANZAS ---------- */
.alianzas {
    background: #fff;
}

.alianzas h2 {
    font-family: "New Highway", sans-serif;
    font-weight: 700;
    font-size: 36px;
    text-align: center;
}

.alianzas .logos-track img {
    max-width: 110px;
}

/* ------------------ NOSOTROS ------------------ */

.nosotros {
    background-color: #000;
    color: #fff;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 100px 20px;
    box-sizing: border-box;
}

.nosotros .container {
    max-width: 1280px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
}

/* HEADER */
.nosotros-header img {
    width: 294px;
    max-width: 100%;
    height: auto;
}

/* CONTENIDO */
.nosotros-content {
    display: flex;
    gap: 60px;
    width: 100%;
    justify-content: center;
}

/* COLUMNAS */
.nosotros-left,
.nosotros-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    max-width: 490px;
    width: 100%;
}

/* IMÁGENES */
.nosotros-img.grande {
    width: 100%;
    max-width: 490px;
    height: 290px;
    border-radius: 8px;
    object-fit: cover;
}

.nosotros-img.pequeña {
    width: 100%;
    max-width: 457px;
    height: 203px;
    border-radius: 8px;
    object-fit: cover;
}

/* TEXTO */
.nosotros-text {
    max-width: 360px;
    font-family: "SangBleu Kingdom", serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 0.015em;
    text-align: center;
    margin: 0;
    color: #fff;
}


@media (max-width: 900px) {
    .nosotros-content {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }

    .nosotros-img.grande {
        height: 220px;
    }

    .nosotros-img.pequeña {
        height: 180px;
    }

    .nosotros-text {
        font-size: 14px;
    }
}


@media (max-width: 768px) {
    .nosotros {
        padding: 60px 16px;
    }

    .nosotros .container {
        max-width: 100%;
    }

    .nosotros-content {
        gap: 30px;
    }

    .nosotros-img.grande,
    .nosotros-img.pequeña {
        max-width: 100%;
    }

    .nosotros-text {
        max-width: 100%;
        font-size: 13px;
    }
}
/* Animaciones para la sección nosotros */
.slide-in-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left.delay,
.slide-in-right.delay {
    transition-delay: 0.3s;
}

.slide-in-left.visible,
.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}


/* ------------------ CONTACTO ------------------ */

.contact-section {
    background: #000;
    display: flex;
    justify-content: center;
    background-image: url("../images/contacto-fondo.jpg");
    background-repeat: no-repeat;
    background-size: 3091px 2318px;
    background-position: -450px -458px;
}

.contact-frame {
    width: 1280px;
    min-height: 720px;
    position: relative;
    padding-bottom: 80px;
}

.contact-container {
    position: absolute;
    top: 108px;
    left: 50%;
    transform: translateX(-50%);

    display: grid;
    grid-template-columns: 334px 334px;
    gap: 102px;
}

.contact-card {
    background: #fff;
    color: #000;
    padding: 32px 28px;
    border-radius: 18px;
    font-family: var(--font-primary);
    font-weight: 400;
}

.info-card h2 { /* Contacto*/
    font-size: 36px;
    margin-top:-6px; 
    margin-bottom: 24px;
    font-weight: 700;
}

.info-card h3 {
    margin-top: 32px;
    font-size: 24px;
    margin-bottom: 8px;
    
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.contact-item img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.info-card p,
.contact-item span {
    font-size: 14px;
    font-weight: 400;
    color: #333;
}


.privacy-link {
    display: inline-block;
    margin-top: 24px;
    font-size: 12px;
    color: #000;
    font-weight: 700;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

label {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    gap: 6px;
}

input,
textarea {
    font-family: inherit;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 12px;
    resize: none;
}

textarea {
    min-height: 96px;
}

/* Efecto pulso para el botón de enviar */
button {
    margin-top: 12px;
    padding: 10px;
    background: #2e2e2e;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s ease;
    position: relative;
    isolation: isolate; 
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: rgba(46, 46, 46, 0.7);
    animation: pulse 1s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

button:hover {
    background: #000;
}

button:hover::before {
    animation-play-state: paused;
    opacity: 0;
}

button:disabled::before {
    animation: none;
    opacity: 0;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}


/* ------------------ FOOTER ------------------ */

.footer {
    background: #000;
    color: #fff;
    display: flex;
    justify-content: center;
}

.footer-frame {
    position: relative;
    width: 1280px;
    height: 230px;
}

.footer-logo {
    position: absolute;
    left: 192px;
    top: 69px;
}

.footer-logo img {
    width: 101px;
    height: 92px;
    display: block;
}

.footer-text {
    position: absolute;
    left: 520px;
    top: 50px;
    width: 165px;
    
    width: 270px; 
    font-family: "SangBleu Kingdom", serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 1.4;
    text-align: left;
    opacity: 0.85;
}

.footer-social {
    position: absolute;
    top: 69px;
    left: 935px;
    display: flex;
    gap: 35px;
}

.footer-social img {
    width: 20px;
    height: 20px;
    display: block;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.footer-social img:hover {
    opacity: 1;
}

.footer-legal {
    position: absolute;
    left: 460px;
    top: 180px;
    font-family: "SangBleu Kingdom", serif;
    font-weight: 300;
    font-size: 10px;
    line-height: 1;
    opacity: .8;
}

/* ------------------ NAV RESPONSIVE ------------------ */

@media (max-width: 1024px) {

  .nav-frame {
    width: 100%;
    height: auto;
    padding: 20px;
    position: static;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
  }

  .nav-logo {
    position: static;
    width: 180px;
    height: auto;
    margin-bottom: 12px;
  }

  .nav-btn {
    position: static;
    width: 100%;
    max-width: 260px;
    height: 44px;
    font-size: 14px;
  }

  /* Botones NO activos - hover */
  .nav-btn:not(.active):hover,
  .nav-btn:not(.active):focus {
      box-shadow: inset 300px 0 0 0 #000;
  }
  
  /* Botón activo - hover invertido */
  .nav-btn.active:hover,
  .nav-btn.active:focus {
      box-shadow: inset 300px 0 0 0 #fff;
  }
}

@media (max-width: 768px) {

  .nav-frame {
    width: 100%;
    height: auto;
    padding: 20px;
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
  }

  /* LOGO */
  .nav-logo {
    position: static;
    width: 200px;
    height: auto;
    margin-bottom: 20px;
  }

  /* BOTONES */
  .nav-btn {
    position: static;
    width: 100%;
    max-width: 280px;
    height: 44px;
    margin-bottom: 12px;
    font-size: 14px;
  }

  /* Botones NO activos - hover */
  .nav-btn:not(.active):hover,
  .nav-btn:not(.active):focus {
      box-shadow: inset 300px 0 0 0 #000;
  }
  
  /* Botón activo - hover invertido */
  .nav-btn.active:hover,
  .nav-btn.active:focus {
      box-shadow: inset 300px 0 0 0 #fff;
  }
}
/* ------------------ HERO RESPONSIVE ------------------ */

@media (max-width: 768px) {

  /* CONTENEDOR PRINCIPAL */
  .hero-frame {
    width: 100%;
    height: auto;
    padding: 80px 20px;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* RESET DE POSICIONAMIENTO */
  .hero-eco,
  .hero-de,
  .hero-vanguardia,
  .hero-logo {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    margin: 0;
  }

  /* LOGO */
  .hero-logo {
    margin-bottom: 24px;
  }

  .hero-logo img {
    width: 96px;
    height: auto;
  }

  /* TEXTOS */
  .hero-eco {
    font-size: 2.2rem;
    margin-bottom: 12px;
  }

  .hero-de {
    font-size: 1.6rem;
    margin-bottom: 12px;
  }

  .hero-vanguardia {
    font-size: 1.6rem;
    line-height: 1.2;
  }

}

@media (max-width: 1024px) {

  .hero-frame {
    width: 100%;
    min-height: auto;
    padding: 120px 40px 80px;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    background-position: center;
  }

  .hero-eco,
  .hero-de,
  .hero-vanguardia,
  .hero-logo {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    margin: 0;
  }

  .hero-logo {
    margin-bottom: 32px;
  }

  .hero-logo img {
    width: 110px;
  }

  .hero-eco {
    font-size: 2.6rem;
    margin-bottom: 14px;
  }

  .hero-de {
    font-size: 1.9rem;
    margin-bottom: 14px;
  }

  .hero-vanguardia {
    font-size: 1.9rem;
    line-height: 1.25;
  }
}


/* ------------------ SERVICIOS RESPONSIVE ------------------ */

/* Tablet */
@media (max-width: 900px) {
  .servicios-frame {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .servicios-frame {
    grid-template-columns: 1fr;
    padding: 60px 20px;
  }
}

/* ------------------ CLIENTES RESPONSIVE ------------------ */


@media (max-width: 768px) {

    .clientes {
        padding: 60px 16px 50px;
    }

    .clientes h2 {
        font-size: 28px;
    }

    /* Slider se vuelve columna */
    .clientes-slider {
        flex-direction: column;
        gap: 24px;
        width: 100%;
    }

    .arrow img {
        width: 24px;
        height: 24px;
    }

    .logos {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        width: 100%;
        max-width: 360px;
    }

    .logos img {
        width: 72px;
        height: 72px;
    }

    .clientes-nota {
        font-size: 9px;
        padding: 0 10px;
    }
}

/* ------------------ CONTACTO RESPONSIVE ------------------ */

@media (max-width: 768px) {

    .contact-section {
        padding: 60px 16px;
        background-size: cover;
        background-position: center;
        overflow-x: hidden;
    }

    .contact-frame {
        width: 100%;
        max-width: 100%;
        height: auto;
        position: static;
    }

    .contact-container {
        width: 100%;
        max-width: 100%;
        position: static;
        transform: none;

        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .contact-card {
        width: 100%;
        max-width: 360px;
        box-sizing: border-box;
        margin: 0 auto;
        padding: 24px 20px;
    }

    .info-card h2 {
        font-size: 28px;
        text-align: center;
    }

    .info-card h3 {
        font-size: 20px;
    }

    .contact-item {
        font-size: 13px;
    }

    input,
    textarea {
        font-size: 13px;
    }

    button {
        font-size: 13px;
        padding: 12px;
    }

    .privacy-link {
        text-align: center;
        display: block;
    }
}

/* ------------------ FOOTER RESPONSIVE ------------------ */
@media (max-width: 768px) {

    .footer {
        padding: 40px 20px;
    }

    .footer-frame {
        width: 100%;
        height: auto;
        position: static;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }

    .footer-logo,
    .footer-text,
    .footer-social,
    .footer-legal {
        position: static;
    }

    .footer-logo img {
        width: 90px;
        height: auto;
    }

    .footer-text {
        width: 100%;
        max-width: 320px;
        font-size: 12px;
        line-height: 1.5;
    }

    .footer-social {
        display: flex;
        gap: 25px;
    }

    .footer-legal {
        font-size: 10px;
        opacity: 0.7;
    }
}

css/* ========== SCROLLBAR PERSONALIZADA ========== */

/* Para navegadores basados en Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 12px; /* Ancho de la scrollbar */
}

::-webkit-scrollbar-track {
  background: #ffffff; /* Fondo blanco */
}

::-webkit-scrollbar-thumb {
  background: #000000; /* Barra negra */
  border-radius: 0px; 
}

::-webkit-scrollbar-thumb:hover {
  background: #333333; 
}

/* Para Firefox */
* {
  scrollbar-width: thin; 
  scrollbar-color: #000000 #ffffff; 
}