/* 1. Importación desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&display=swap');

/* =================================================
   VARIABLES GLOBALES
   Aquí definimos los colores corporativos
   para reutilizarlos en todo el sitio
================================================= */
:root {
  --azul-principal: #131FA9;     /* Azul corporativo INDUMEQ */
  --azul-claro: #e9efff;         /* Fondo claro para secciones */
  --gris-claro: #f2f2f2;         /* Fondo gris */
  --negro: #111;                 /* Negro para footer */
  --blanco: #ffffff;             /* Blanco base */
  --texto: #222;                 /* Color de texto general */
  --radius-sm: 0.6rem;
  --radius-md: 1.2rem;
  --radius-lg: 2rem;

  --shadow-soft: 0 0.8rem 2rem rgba(0,0,0,0.08);
  --shadow-strong: 0 2rem 4rem rgba(0,0,0,0.15);
}

/* =================================================
   RESET GENERAL
   Eliminamos estilos por defecto del navegador
================================================= */
*,
*::before,
*::after {
  margin: 0;                     /* Elimina márgenes */
  padding: 0;                    /* Elimina rellenos */
  box-sizing: border-box;        /* Evita errores de tamaño */
  margin: 0;
  padding: 0;
}
body {
  font-family: "Poppins", system-ui, sans-serif;
}


html {
  font-size: 100%;
  scroll-behavior: smooth;
}
/* =================================================
   ESTILOS GENERALES DEL BODY
================================================= */
body {
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--texto);           /* Color de texto */
  line-height: 1.6;              /* Espaciado entre líneas */
  background: var(--blanco);     /* Fondo blanco */
  line-height: 1.6;
  overflow-x: hidden; /* No scroll horizontal */
}

/* =================================================
   HEADER
================================================= */
.header {
  background: var(--blanco);     /* Fondo blanco */
  box-shadow: 0 2px 10px rgba(16, 28, 252, 0.05); /* Sombra ligera */
  position: sticky;              /* Header fijo al hacer scroll */
  top: 0;
  z-index: 1000;                 /* Siempre encima */
  transition: all 0.35s ease;
}

/* Contenedor del header */
.header-container {
  display: flex;                 /* Alinea elementos en fila */
  align-items: center;           /* Centra verticalmente */
  justify-content: space-between;/* Logo izquierda, menú derecha */
  padding: 1rem 4rem;
}

/* Logo */
.header-logo img {
  height: 5.5rem;                  /* Tamaño del logo */
}

/* Estado al hacer scroll */
.header.scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 0.8rem 2rem rgba(0,0,0,0.12);
}

/* Logo se hace más pequeño */
.header.scrolled .header-logo img {
  height: 4.8rem;
  transition: height 0.3s ease;
}

/* =================================================
   NAVEGACIÓN
================================================= */
.nav-list {
  display: flex;                 /* Menú horizontal */
  list-style: none;              /* Quita viñetas */
  gap: 1.5rem;                     /* Espacio entre enlaces */
  margin-bottom: auto;
}

/* Enlaces del menú */
.nav-link {

  text-decoration: none;         /* Quita subrayado */
  color: #333;                   /* Color del texto */
  font-weight: 500;              /* Grosor medio */
  transition: color 0.3s ease;   /* Animación suave */
  padding: 1rem 1.4rem;
  border-radius: 0.6rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover (NO activo) */
.nav-link:hover {
  background-color: rgba(19, 31, 169, 0.12);
  color: var(--azul-principal);
}
/* Activo */
.nav-link.active {
  background-color: var(--azul-principal);
  color: #ffffff;
}
/* Línea inferior animada SOLO para activo */
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 10%;
  bottom: -0.6rem;
  width: 80%;
  height: 0.3rem;
  background-color: var(--azul-principal);
  border-radius: 0.2rem;
}
/* Estilos para el botón Hamburguesa */
.nav-toggle {
    display: none; /* Oculto en escritorio */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--azul-principal, #131fa9);
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* MEDIA QUERY PARA MÓVILES (Menos de 768px) */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem 2rem; /* Reducimos padding lateral */
    }

    .nav-toggle {
        display: flex; /* Mostramos el botón */
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%; /* Oculto fuera de la pantalla */
        flex-direction: column;
        background-color: white;
        width: 70%; /* Ancho del menú lateral */
        height: 100vh;
        padding: 8rem 2rem;
        gap: 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s ease;
    }

    /* Clase que activaremos con JS */
    .nav-list.nav-list-visible {
        right: 0;
    }

    .nav-link {
        display: block;
        font-size: 1.2rem;
    }
}
/* =================================================
   HERO (IMAGEN PRINCIPAL)
================================================= */
.hero {
  position: relative;            /* Para usar overlay */
  min-height: min(85vh, 50rem);                  /* Altura casi pantalla completa */
  overflow: hidden;              /* Evita desbordes */
}

/* Imagen del hero */
.hero-img {
  width: 100%;                   /* Ocupa todo el ancho */
  height: 100%;                  /* Ocupa toda la altura */
  object-fit: cover;             /* No se deforma */

    /* Animación inicial */
  transform: scale(1.1);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
/* Zoom suave de fondo */
@keyframes heroZoom {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1.5);
  }
}

/* Capa oscura encima de la imagen */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;                      /* Cubre todo */
  background: rgba(0, 0, 0, 0.792);  /* Oscurece la imagen */
  z-index: 0;
}

/* Contenedor del texto */
.hero-overlay {
  position: absolute; /* Fija la capa sobre la imagen */
  inset: 0;           /* Cubre el 100% del contenedor padre */
  display: flex;      /* Activa Flexbox para alinear el contenido */
  align-items: center;           /* Centrado vertical */
  justify-content: center;       /* Centrado horizontal */
  text-align: center;
  padding: 2rem;            /* Margen lateral para que el texto no toque el borde */
  z-index: 1;                    /* Sobre la capa oscura */
}

/* Texto principal */
.hero-title {
  color: var(--blanco);          /* Texto blanco */
  font-size: 3rem;               /* Tamaño grande */
  max-width: 70rem;              /* No se extiende demasiado */
  line-height: 1.2;               /* Ajusta el espacio vertical entre líneas; 1.2 hace que el título se vea compacto y sólido. */

  /* Estado inicial para una animación */
  opacity: 0;                    /* Hace que el elemento sea totalmente invisible al cargar la página. */
  transform: translateY(4rem);   /* Empuja el elemento 30px hacia abajo de su posición real para luego "subirlo". */
}

/* Animación del texto */
.animate-text {
  animation: textFadeUp 1.6s ease-out forwards;
  animation-delay: 0.4s;
}

/* Fade + slide */
@keyframes textFadeUp {
  to {
    opacity: 2;
    transform: translateY(0);
  }
}

/* =================================================
   BOTONES (REUTILIZABLES)
================================================= */
.btn {
  display: inline-block;
  padding: 1.2rem 2.8rem;            /* Tamaño del botón */
  border-radius: 2.5rem;           /* Bordes redondeados */
  text-decoration: none;         /* Quita subrayado */
  font-weight: 500;
  transition: all 0.3s ease;     /* Animación suave */
}

/* Botón principal */
.btn-primary {
  background: var(--azul-principal);
  color: var(--blanco);
}

/* Hover del botón principal */
.btn-primary:hover {
  background: #14238a;           /* Azul más oscuro */
}

/* Botón con borde */
.btn-outline {
  border: 0.2rem solid var(--azul-principal);
  color: var(--azul-principal);
}

/* Hover botón borde */
.btn-outline:hover {
  background: var(--azul-principal);
  color: var(--blanco);
}

/*------------------------CONTENIDO-----------------------*/

/*================= MAPA =================*/

.contactanos-full {
  width: 100vw;             /* 👈 Fuerza ancho total de la pantalla */
  margin-left: calc(-50vw + 50%); /* 👈 Rompe cualquier contenedor */
  background: #e6e6e6;
}

/* Título */
.contactanos-title {
  text-align: center;
  padding: 4rem 0;
  font-size: 3rem;
  letter-spacing: 0.05rem;
}

/* Contenedor del mapa */
.mapa-full {
  width: 100%;
  height: 60rem; /*altura*/
}

/* Iframe */
.mapa-full iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/*======================================
MENSAJE E-MAIL
======================================*/
.contact-form-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* Info izquierda / Formulario derecha */
  gap: 8rem;
  padding: 8rem 10%;
  background: #ffffff;
  align-items: start;
}

/* BLOQUE IZQUIERDO - INFORMACIÓN*/
.contact-info h2 {
  font-size: 1.8rem;
  margin-bottom: 3rem;
  font-weight: 7rem;
}

.contact-info p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #222;
}

/* FORMULARIO*/
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Dos columnas */
  gap: 2rem 3rem;
}

/* Inputs generales */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1.2rem 0;
  border: none;
  border-bottom: 0.1rem solid #ccc; /* Línea inferior */
  font-size: 0.95rem;
  outline: none;
  background: transparent;
}

/* Placeholder */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #999;
}

/* Efecto focus */
.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: #1b2fa6; /* Azul corporativo */
}

/* Textarea ocupa todo el ancho */
.contact-form textarea {
  grid-column: 1 / -1;
  resize: none;
  min-height: 6rem;
}

/*CHECKBOX*/
.checkbox {
  grid-column: 1 / -1;        /* Ocupa todo el ancho del formulario */
  display: flex;              /* Activa flexbox */
  align-items: center;        /* Alinea verticalmente checkbox y texto */
  gap: 1rem;                  /* Espacio entre checkbox y texto */
  font-size: 0.85rem;
  color: #555;
}

/* Checkbox */
.checkbox input[type="checkbox"] {
  margin: 0;                  /* Quita márgenes por defecto */
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

/* Texto */
.checkbox span {
  line-height: 1.4;
}

/* BOTÓN*/
.contact-form button {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 2rem;

  padding: 1rem 3rem;
  border-radius: 30px;
  border: none;

  background: var(--azul-principal); /* Verde oscuro como la imagen */
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;

  display: flex;
  align-items: center;
  gap: 0.5rem;

  transition: background 0.3s ease, transform 0.2s ease;
}

/* Hover botón */
.contact-form button:hover {
  background: #084842;
  transform: translateY(-00.2rem);
}



/* =================================================
   FOOTER
================================================= */
.main-footer {
  background-color: #1a1a1a;
  color: white;
  padding: 6rem 10%;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
  padding-bottom: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-logo {
  max-width: 15rem;
}

.footer-slogan {
  font-size: 2rem;
  font-weight: 40rem;
  text-align: right;
  max-width: 40rem;
  font-family: "fredoka";
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #fff;
}


.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 1rem;
}

.footer-col a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: #fff;
}

/* =================================================
   RESPONSIVE GLOBAL – TODOS LOS DISPOSITIVOS
================================================= */

/* ============== HEADER Y FOOTER ================*/
/* ===============================
   TABLETS (≤ 1024px)
================================ */
@media (max-width: 64rem) {

  /* HEADER */
  .header-container {
    padding: 1rem 2rem;
  }

  /* HERO */
  .hero-title {
    font-size: clamp(2rem, 4vw, 2.6rem);
  }

  /* CONTACTO → 2 COLUMNAS */
  .contact {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .contact-map iframe {
    height: 22rem;
  }

  /* FOOTER */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .footer-slogan {
    text-align: center;
  }
}

/* ===============================
   MÓVILES GRANDES (≤ 768px)
================================ */
@media (max-width: 48rem) {

  /* HERO */
  .hero {
    min-height: 70vh;
  }

  .hero-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  /* CONTACTO → 1 COLUMNA */
  .contact {
    grid-template-columns: 1fr;
    padding: 6rem 6%;
  }

  .contact-center {
    align-items: flex-start;
  }

  .contact-map iframe {
    height: 20rem;
  }

  /* FOOTER */
  .footer-top {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-logo {
    margin-inline: auto;
  }
}

/* ===============================
   MÓVILES PEQUEÑOS (≤ 480px)
================================ */
@media (max-width: 30rem) {

  /* HEADER */
  .header-logo img {
    height: 3.8rem;
  }

  /* HERO */
  .hero-title {
    font-size: 1.5rem;
  }

  /* BOTONES */
  .btn {
    width: 100%;
    text-align: center;
  }

  /* CONTACTO */
  .contact-desc {
    font-size: 1rem;
  }

  .contact-item-content {
    font-size: 1rem;
  }

  /* MAPA */
  .contact-map iframe {
    height: 18rem;
  }
}

/* ===============================
   PANTALLAS GRANDES / 4K (≥ 1600px)
================================ */
@media (min-width: 100rem) {

  /* CONTENEDORES CENTRADOS */
  .header-container,
  .hero,
  .contact,
  .main-footer {
    max-width: 120rem;
    margin-inline: auto;
  }

  body {
    font-size: 110%;
  }
}

/*======================== RESPONSIVE MENU ===========================*/
/* =================================================
   RESPONSIVE – MAPA + FORMULARIO CONTACTO
================================================= */

/* ===============================
   LAPTOPS / TABLETS GRANDES (≤ 1024px)
================================ */
@media (max-width: 64rem) {

  /* ===== MAPA FULL ===== */
  .mapa-full {
    height: 45rem;
  }

  .contactanos-title {
    font-size: 2.4rem;
    padding: 3rem 0;
  }

  /* ===== FORMULARIO ===== */
  .contact-form-section {
    grid-template-columns: 1fr; /* 👈 pasa a una columna */
    gap: 4rem;
    padding: 6rem 8%;
  }

  .contact-info {
    text-align: center;
  }

  .contact-info h2 {
    font-size: 1.6rem;
  }

  .contact-info p {
    max-width: 40rem;
    margin-inline: auto;
  }
}

/* ===============================
   TABLETS / MÓVILES GRANDES (≤ 768px)
================================ */
@media (max-width: 48rem) {

  /* ===== MAPA ===== */
  .mapa-full {
    height: 35rem;
  }

  .contactanos-title {
    font-size: 2rem;
    letter-spacing: 0.03rem;
  }

  /* ===== FORMULARIO ===== */
  .contact-form-section {
    padding: 5rem 6%;
    gap: 3rem;
  }

  .contact-form {
    grid-template-columns: 1fr; /* 👈 inputs uno debajo del otro */
    gap: 2rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 1rem;
  }

  .checkbox {
    font-size: 0.9rem;
    align-items: flex-start;
  }

  .contact-form button {
    width: 100%; /* botón ancho completo */
    justify-content: center;
  }
}

/* ===============================
   MÓVILES PEQUEÑOS (≤ 480px)
================================ */
@media (max-width: 30rem) {

  /* ===== MAPA ===== */
  .mapa-full {
    height: 28rem;
  }

  .contactanos-title {
    font-size: 1.7rem;
    padding: 2.5rem 0;
  }

  /* ===== FORMULARIO ===== */
  .contact-form-section {
    padding: 4rem 5%;
  }

  .contact-info h2 {
    font-size: 1.4rem;
  }

  .contact-info p {
    font-size: 0.95rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.95rem;
  }

  .checkbox {
    gap: 0.8rem;
  }

  .contact-form button {
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
  }
}

/* ===============================
   PANTALLAS GRANDES / 4K (≥ 1600px)
================================ */
@media (min-width: 100rem) {

  .contactanos-full,
  .contact-form-section {
    max-width: 120rem;
    margin-inline: auto;
  }

  .mapa-full {
    height: 65rem;
  }
}
