/* =============================================================================
 * ECORECICLA — Landing Page Stylesheet (Rediseño)
 * =============================================================================
 * PROYECTO: Landing Page de Industrias Ambientales 3R SAC
 *            (Empresa de reciclaje y gestión de residuos sólidos)
 * TIPO: CSS3 puro, SIN frameworks (Tailwind, Bootstrap, etc.)
 * ARCHIVO PRINCIPAL: Estilos de toda la landing page\n
 * -----------------------------------------------------------------------------
 * CONTENIDO (ÍNDICE DE SECCIONES):\n
 * -----------------------------------------------------------------------------
 * 1. VARIABLES CSS (Custom Properties)\n
 *    - Paleta de colores verdes (reciclaje)\n
 *    - Escala de grises neutros\n
 *    - Tipografía base (Segoe UI / Roboto)\n
 *    - Sombras, radios, transiciones\n
 *
 * 2. RESET / NORMALIZE\n
 *    - Box-sizing: border-box\n
 *    - Margins/paddings a cero\n
 *    - Scroll suave (smooth)\n
 *
 * 3. TIPOGRAFÍA\n
 *    - Estilos para h1-h4\n
 *    - Colores y pesos base\n
 *
 * 4. HEADER\n
 *    - Barra superior: logo + info contacto\n
 *    - Barra inferior: navegación + CTA\n
 *    - Estados: normal y .header--scrolled (con sombra)\n
 *    - Menú hamburguesa para móviles\n
 *
 * 5. HERO\n
 *    - Banner principal a pantalla completa (80vh)\n
 *    - Imagen de fondo con overlay oscuro\n
 *    - Flecha animada para scroll\n
 *
 * 6. MATERIALES (Grid de tarjetas)\n
 *    - Lista de residuos que aceptan\n
 *    - Tarjetas con icono, título, descripción\n
 *    - Badges, links de descarga (PDF)\n
 *
 * 7. CTA BANNER\n
 *    - Llamada a la acción con fondo de imagen\n
 *    - Botones para contactar\n
 *
 * 8. ABOUT / QUIÉNES SOMOS\n
 *    - Sección "Sobre nosotros"\n
 *    - Layout 2 columnas: imagen + texto\n
 *    - Badge circular "+25 años"\n
 *
 * 9. PROCESO\n
 *    - Pasos del proceso de reciclaje\n
 *    - Iconos circulares con conectores\n
 *    - Layout: vertical en móvil, horizontal en desktop\n
 *
 * 10. GALERÍA\n
 *    - Grid de fotos de trabajos realizados\n
 *    - Imágenes cargadas dinámicamente desde API\n
 *    - Hover con zoom suave\n
 *    - Estados: loading, vacío, contenido\n
 *
 * 11. CONTACTO\n
 *    - Formulario de contacto\n
 *    - Campos: nombre, email, teléfono, asunto, mensaje\n
 *    - Fondo con imagen y overlay\n
 *
 * 12. FOOTER\n
 *    - Links, info de contacto\n
 *    - Copyright\n
 *
 * 13. WHATSAPP FAB\n
 *    - Botón flotante verde fijo\n
 *    - Mini diálogo tipo chat de WhatsApp\n
 *    - Header verde oscuro estilo WhatsApp\n
 *    - Botón CTA directo\n
 *
 * 14. MODAL DE ELECCIÓN DE ENVÍO\n
 *    - Modal para elegir: WhatsApp o Gmail\n
 *    - Botones con colores distintivos\n
 *    - Animación de entrada\n
 *
 * 15. ANIMACIONES AL SCROLL\n
 *    - Clases .animate-on-scroll\n
 *    - Modificadores: --fade-up, --zoom-in, etc.\n
 *    - Estados: visible (con .is-visible)\n
 *    - Delays escalonados (100ms - 600ms)\n
 *    - Soporte prefers-reduced-motion\n
 *
 * 16. RESPONSIVE (Mobile First)\n
 *    - 576px: Teléfonos grandes\n
 *    - 768px: Tablets\n
 *    - 992px: Desktop\n
 *    - 1200px: Desktop grande\n
 * -----------------------------------------------------------------------------
 * VARIABLES CSS DISPONIBLES:\n
 * -----------------------------------------------------------------------------
 * --green, --green-dark, --green-darker, --green-light, --green-pale\n
 * --white, --off-white, --gray-100/200/400/600/800, --dark, --black\n
 * --accent (amarillo/naranja)\n
 * --font, --shadow-sm/md/lg, --radius, --radius-lg, --transition\n
 * --max-width: 1200px\n
 * ============================================================================= */


/* ================================================================
   1. VARIABLES
   ================================================================ */
:root {
  --green: #4CAF50;
  --green-dark: #388E3C;
  --green-darker: #2E7D32;
  --green-light: #66BB6A;
  --green-pale: #E8F5E9;

  --white: #FFFFFF;
  --off-white: #F5F5F5;
  --gray-100: #FAFAFA;
  --gray-200: #EEEEEE;
  --gray-400: #BDBDBD;
  --gray-600: #757575;
  --gray-800: #424242;
  --dark: #1A1A2E;
  --black: #111111;

  --accent: #FFC107;

  --font: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);

  --radius: 8px;
  --radius-lg: 12px;

  --transition: 250ms ease;
  --max-width: 1200px;
}


/* ================================================================
   2. RESET
   ================================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

textarea {
  resize: vertical;
}


/* ================================================================
   3. TIPOGRAFÍA
   ================================================================ */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

/* ================================================================
   3.5. ACCESIBILIDAD — Focus visible y Formularios
   ================================================================ */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.contact__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
  text-align: left;
}


/* ================================================================
/* ================================================================
   4. HEADER — Dos filas: logo+contacto / nav+CTA
   ================================================================ */
.header {
  background-color: var(--green-darker);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

/* --- Fila superior: Logo + Contacto --- */
.header__top {
  background-color: transparent;
}

.header__top-inner {
  background-color: var(--green);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: clamp(1rem, 3.5vw, 1.6rem);
  white-space: nowrap;
  min-width: 0;
}

.header__logo-icon {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  background: var(--white);
  padding: 5px;
  border-radius: 8px;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header__logo-text {
  font-weight: 400;
  letter-spacing: 0.5px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header__logo-text strong {
  font-weight: 700;
}

/* Contacto con íconos circulares y etiquetas */
.header__contact {
  display: none;
  align-items: center;
  gap: 32px;
}

.header__contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  transition: opacity var(--transition);
}

.header__contact-item:hover {
  opacity: 0.85;
}

.header__contact-circle {
  width: 44px;
  height: 44px;
  background: var(--accent);
  /* Naranja/Amarillo */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.header__contact-detail {
  display: flex;
  flex-direction: column;
}

.header__contact-label {
  font-size: 0.75rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 4px;
}

.header__contact-value {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.2;
}

/* --- Fila inferior: Nav + CTA --- */
.header__bottom {
  background-color: transparent;
  overflow: visible;
  position: relative;
}

.header__bottom-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 0;
  overflow: visible;
}

/* CTA del header */
.header__cta-group {
  display: none;
}

/* Utility: ocultar <br> en móvil */
.br-desktop {
  display: none;
}

.header__cta {
  display: inline-flex;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}

/* Variante Resaltada (Highlight) */
.header__cta--highlight {
  background: var(--accent);
  /* Naranja/Amarillo */
  color: var(--dark);
  animation: pulse-cta 2s infinite;
}

.header__cta--highlight:hover {
  background: #FFD54F;
  /* Tono más claro */
  color: var(--dark);
  transform: translateY(-2px) scale(1.02);
}

@keyframes pulse-cta {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.6);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
  }
}

.header__cta:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Hamburguesa */
.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  z-index: 10;
}

.nav__toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle--active .nav__toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle--active .nav__toggle-line:nth-child(2) {
  opacity: 0;
}

.nav__toggle--active .nav__toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Navegación */
.nav__menu {
  display: none;
  flex-direction: column;
  gap: 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--green-dark);
  padding: 8px 0;
  box-shadow: var(--shadow-md);
  z-index: 999;
}

.nav__menu--open {
  display: flex;
}

/* CTA dentro del menú hamburguesa (visible solo en mobile) */
.nav__menu-cta-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 24px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 4px;
}

.nav__menu-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  text-align: center;
  transition: background var(--transition), transform var(--transition);
  background: rgba(255, 255, 255, 0.12);
}

.nav__menu-cta:hover {
  background: rgba(255, 255, 255, 0.22);
}

.nav__menu-cta--highlight {
  background: var(--accent);
  color: var(--dark);
  font-weight: 700;
}

.nav__menu-cta--highlight:hover {
  background: #FFD54F;
}

.nav__link {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 12px 24px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background var(--transition);
}

.nav__link:hover,
.nav__link--active {
  background: rgba(255, 255, 255, 0.1);
}


/* ================================================================
   5. HERO — Banner principal
   ================================================================ */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  background: url('../img/fondo.jpg') center/cover no-repeat;
  background-color: var(--dark);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.55) 100%);
}

.hero__container {
  position: relative;
  z-index: 2;
  padding: 8vh 24px 40px;
  max-width: var(--max-width);
}

.hero__title {
  font-size: clamp(1.3rem, 3.5vw, 3.1rem);
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero__scroll-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.hero__arrow-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: transform var(--transition), background var(--transition);
  animation: bounceArrow 2s ease infinite;
}

.hero__arrow-circle:hover {
  background: var(--green-dark);
  transform: scale(1.1);
}

@keyframes bounceArrow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}


/* ================================================================
   6. MATERIALES — Grid de tarjetas
   ================================================================ */
.materials {
  padding: 80px 24px;
  background: var(--white);
}

.materials__container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.materials__header {
  text-align: center;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.materials__icon-wrapper {
  width: 28px;
  height: 28px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--green);
}

.materials__header-icon {
  width: 16px;
  height: 16px;
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.materials__subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 8px;
}

.materials__title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--dark);
  text-transform: uppercase;
}

.materials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Asegurar tarjetas de misma altura en grid */
.material-card {
  display: flex;
  flex-direction: column;
}

/* Tarjeta de material */
.material-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 56px 24px 32px;
  /* Espacio extra arriba para la etiqueta top-left */
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
  flex: 1;
}

.material-card__badge {
  position: absolute;
  top: 20px;
  left: 24px;
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.90rem;
  font-weight: 500;
  color: rgba(90, 90, 90, 0.75);
  /* Un gris más transparente y elegante */
  text-align: left;
}

.material-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.material-card__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.material-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.material-card__text {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.material-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  transition: color var(--transition);
}

.material-card__link:hover {
  color: var(--green-darker);
}

/* Modificadores para acciones múltiples en tarjetas (Ej: PDF) */
.material-card__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.material-card__link--download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: var(--green-pale);
  color: var(--green-darker);
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid var(--green-light);
  transition: background var(--transition), transform var(--transition);
}

.material-card__link--download:hover {
  background-color: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}


/* ================================================================
   7. CTA BANNER — Llamada a la Acción
   ================================================================ */
.cta-banner {
  position: relative;
  padding: 60px 24px;
  background: url('../img/cta-banner-bg.jpg?v=2') center/cover no-repeat;
  background-color: var(--dark);
}

.cta-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.cta-banner__container {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.cta-banner__title {
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.4;
}

.cta-banner__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
}

.cta-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-size: clamp(0.82rem, 2.5vw, 0.95rem);
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.cta-banner__btn:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}


/* ================================================================
   8. ABOUT — Quiénes Somos
   ================================================================ */
.about {
  padding: 80px 24px;
  background: var(--off-white);
}

.about__container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

/* Imágenes */
.about__images {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.about__image-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__img {
  width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: cover;
}

/* Badge +25 años */
.about__badge {
  position: absolute;
  bottom: -20px;
  left: -10px;
  width: 90px;
  height: 90px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow-md);
  border: 3px solid var(--white);
}

.about__badge-plus {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.about__badge-number {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.about__badge-text {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Contenido texto */
.about__content {
  max-width: 500px;
}

.about__title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
}

.about__text {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about__cta {
  display: inline-block;
  margin-top: 8px;
  background: var(--green);
  color: var(--white);
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition), transform var(--transition);
}

.about__cta:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}


/* ================================================================
   9. PROCESO — Pasos de reciclaje
   ================================================================ */
.process {
  padding: 80px 24px;
  background: var(--green-pale);
}

.process__container {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.process__title {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  text-transform: uppercase;
  margin-bottom: 48px;
}

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

.process__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.process__step-icon {
  width: 80px;
  height: 80px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), background var(--transition);
}

.process__step-icon:hover {
  transform: scale(1.1);
  background: var(--green-dark);
}

.process__step-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.process__connector {
  width: 2px;
  height: 30px;
  background: var(--green-light);
}


/* ================================================================
   10. GALERÍA — Grid de fotos
   ================================================================ */
.gallery {
  padding: 80px 24px;
  background: var(--white);
}

.gallery__container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 32px;
}

.gallery__title {
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  font-weight: 800;
  color: var(--dark);
  text-transform: uppercase;
}

.gallery__subtitle {
  font-size: 0.8rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gallery__cta {
  display: inline-block;
  margin-top: 4px;
  background: var(--green);
  color: var(--white);
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background var(--transition);
}

.gallery__cta:hover {
  background: var(--green-dark);
}

/* Grid de fotos */
.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

/* Estado de carga y vacío */
.gallery__loading,
.gallery__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 16px;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.gallery__empty code {
  background: var(--gray-200);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
}


/* ================================================================
   11. CONTACTO — Fondo de hojas + formulario
   ================================================================ */
.contact {
  position: relative;
  padding: 80px 24px;
  background: url('../img/contact-bg.jpg?v=2') center/cover no-repeat;
  background-color: var(--green-darker);
}

.contact__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.contact__container {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact__title {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 32px;
  line-height: 1.3;
}

.contact__form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__form-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__form-group {
  flex: 1;
}

.contact__input,
.contact__textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--gray-800);
  transition: border-color var(--transition);
}

.contact__input::placeholder,
.contact__textarea::placeholder {
  color: var(--gray-400);
}

.contact__input:focus,
.contact__textarea:focus {
  border-color: var(--green);
}

.contact__submit {
  background: var(--green);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  align-self: center;
}

.contact__submit:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.contact-info-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: left;
}

.contact-info-box__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--gray-100);
  border-radius: var(--radius);
  transition: transform var(--transition);
}

.contact-info-box__item:hover {
  transform: translateX(4px);
}

.contact-info-box__item--image {
  background: transparent;
  padding: 0;
  justify-content: center;
}

.contact-info-box__image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--radius);
  object-fit: contain;
}

.contact-info-box__icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.contact-info-box__content {
  flex: 1;
}

.contact-info-box__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.contact-info-box__value {
  font-size: 1rem;
  color: var(--gray-800);
  line-height: 1.5;
}

.contact-info-box__value a {
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 500;
}

.contact-info-box__value a:hover {
  text-decoration: underline;
}

.contact-section {
  margin-bottom: 48px;
}

.contact-section:last-child {
  margin-bottom: 0;
}

.contact-section__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green);
  display: inline-block;
}

.contact-section__image {
  width: 100%;
  max-width: 200px;
  display: block;
  margin: 0 auto 16px auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}


/* ================================================================
   12. FOOTER
   ================================================================ */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 48px;
}

.footer__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.footer__logo {
  font-size: 1.3rem;
  color: var(--white);
  display: block;
  margin-bottom: 12px;
}

.footer__heading {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 12px;
  font-weight: 600;
}

.footer__text {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 4px;
}

.footer__link {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 4px 0;
  transition: color var(--transition), padding-left var(--transition);
}

.footer__link:hover {
  color: var(--green-light);
  padding-left: 6px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}


/* ================================================================
   13. RESPONSIVE — Media Queries (Mobile First)
   ================================================================ */


/* ================================================================
   13. WHATSAPP FAB — Botón flotante + mini diálogo
   ================================================================ */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* Botón circular principal */
.whatsapp-fab__btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fabPulse 2s ease-in-out infinite;
}

.whatsapp-fab__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

@keyframes fabPulse {

  0%,
  100% {
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  }

  50% {
    box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6);
  }
}

/* Diálogo de chat */
.whatsapp-fab__dialog {
  width: min(320px, calc(100vw - 48px));
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.95);
  transition: opacity 300ms ease, transform 300ms ease, visibility 300ms ease;
  pointer-events: none;
}

.whatsapp-fab__dialog--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Header del diálogo */
.whatsapp-fab__dialog-header {
  background: #075E54;
  color: var(--white);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.whatsapp-fab__dialog-avatar {
  font-size: 1.6rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.whatsapp-fab__dialog-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.whatsapp-fab__dialog-status {
  display: block;
  font-size: 0.75rem;
  opacity: 0.8;
}

.whatsapp-fab__dialog-close {
  margin-left: auto;
  color: var(--white);
  font-size: 1.1rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
  flex-shrink: 0;
}

.whatsapp-fab__dialog-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Cuerpo del diálogo */
.whatsapp-fab__dialog-body {
  padding: 20px 16px;
  background: #E5DDD5;
}

.whatsapp-fab__dialog-bubble {
  background: var(--white);
  padding: 12px 14px;
  border-radius: 0 8px 8px 8px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--gray-800);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  max-width: 90%;
}

/* CTA del diálogo */
.whatsapp-fab__dialog-cta {
  display: block;
  text-align: center;
  padding: 14px;
  background: #25D366;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition);
}

.whatsapp-fab__dialog-cta:hover {
  background: #1EA952;
}


/* ================================================================
   14. CONTACT CHOICE MODAL
   ================================================================ */
.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(4px);
}

.contact-modal--open {
  opacity: 1;
  visibility: visible;
}

.contact-modal__content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  width: 90%;
  max-width: 400px;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.contact-modal--open .contact-modal__content {
  transform: translateY(0);
}

.contact-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: var(--gray-200);
  border-radius: 50%;
  border: none;
  font-size: 1.2rem;
  color: var(--gray-800);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.contact-modal__close:hover {
  background: var(--gray-300);
}

.contact-modal__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.contact-modal__text {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 32px;
  line-height: 1.5;
}

.contact-modal__options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-modal__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  color: var(--white);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.contact-modal__btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.contact-modal__btn--whatsapp {
  background-color: #25D366;
}

.contact-modal__btn--gmail {
  background-color: #D44638;
}


/* ================================================================
   15. ANIMACIONES AL HACER SCROLL
   ================================================================ */
/* Base para elementos que se animarán */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

/* Modificadores de animación */
.animate-on-scroll--fade-up {
  transform: translateY(40px);
}

.animate-on-scroll--fade-down {
  transform: translateY(-40px);
}

.animate-on-scroll--fade-left {
  transform: translateX(-40px);
}

.animate-on-scroll--fade-right {
  transform: translateX(40px);
}

.animate-on-scroll--zoom-in {
  transform: scale(0.9);
}

/* Estado visible (Agregado por JS) */
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Retrasos escalonados para listas o grids */
.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

.delay-400 {
  transition-delay: 400ms;
}

.delay-500 {
  transition-delay: 500ms;
}

.delay-600 {
  transition-delay: 600ms;
}

/* Reducir o deshabilitar animaciones si el usuario prefiere movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ================================================================
   15. RESPONSIVE — Media Queries (Mobile First)
   ================================================================ */

/* --- 420px: Pantallas base medianas --- */
@media (min-width: 420px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header__top-inner {
    padding: 14px 24px;
  }
}

/* --- 576px: Teléfonos grandes --- */
@media (min-width: 576px) {
  .materials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact__form-row {
    flex-direction: row;
  }

  .cta-banner__buttons {
    flex-direction: row;
    justify-content: center;
    padding: 0;
  }

  .cta-banner__btn {
    width: auto;
    max-width: none;
  }

  .br-desktop {
    display: inline;
  }

  .header__top-inner {
    padding: 16px 32px;
  }

  .footer__container {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- 768px: Tablets --- */
@media (min-width: 768px) {
  .materials__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* About: 2 columnas */
  .about__container {
    flex-direction: row;
    align-items: center;
  }

  .about__images {
    flex: 1;
  }

  .about__content {
    flex: 1;
  }

  .about__img {
    max-height: 450px;
  }

  /* Proceso: fila horizontal */
  .process__steps {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
  }

  .process__connector {
    width: 40px;
    height: 2px;
    margin-top: 40px;
  }

  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer__container {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

/* --- 992px: Desktop --- */
@media (min-width: 992px) {

  /* Header: mostrar contacto, nav horizontal y CTA */
  .header__contact {
    display: flex;
  }

  .header__bottom-inner {
    height: auto;
    padding: 16px 32px;
    overflow: visible;
  }

  .header__cta-group {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  /* Ocultar CTA duplicados del menú hamburguesa */
  .nav__menu-cta-group {
    display: none;
  }

  .nav__toggle {
    display: none;
  }

  .nav__menu {
    display: flex;
    flex-direction: row;
    position: static;
    background: transparent;
    padding: 0;
    box-shadow: none;
    gap: 16px;
  }

  .nav__link {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
  }

  .about__badge {
    width: 110px;
    height: 110px;
    bottom: -25px;
    left: -20px;
  }

  .about__badge-number {
    font-size: 2.2rem;
  }

  .about__img {
    max-height: none;
  }

  .process__step-icon {
    width: 90px;
    height: 90px;
    font-size: 2.2rem;
  }

  .process__connector {
    width: 60px;
  }
}

/* --- 1200px: Desktop grande --- */
@media (min-width: 1200px) {
  .materials {
    padding: 100px 32px;
  }

  .about {
    padding: 100px 32px;
  }

  .process {
    padding: 100px 32px;
  }

  .gallery {
    padding: 100px 32px;
  }

  .contact {
    padding: 100px 32px;
  }

  .gallery__grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }

  .process__connector {
    width: 80px;
  }

  .process__step-icon {
    width: 100px;
    height: 100px;
    font-size: 2.4rem;
  }
}