/* ==========================================================================
   INDUSTRIAS GESA – Layout
   Header/Navbar, Hero, Somos y secciones generales
   ========================================================================== */

/* ========================================
   HEADER / NAVBAR
   El header es transparente. Dentro lleva un cintillo azul
   (header__nav-pill) que ocupa la columna derecha (~60%) con
   bordes redondeados desiguales: grandes en el lado derecho,
   pequeños en el izquierdo.
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  padding-block: var(--navbar-top-gap);
  /* Transparente por defecto */
}

/* Con scroll: sutil sombra para anclarse al contenido */
.header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
}

.header.is-scrolled .header__logo img {
  filter: none;
}

/* ---- Inner: flex 2 columnas 40 / 60 ---- */
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  min-height: var(--navbar-height);
}

/* ---- Columna izquierda: logo ---- */
.header__logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  z-index: calc(var(--z-fixed) + 1);
}

.header__logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  /* Drop shadow para legibilidad sobre imagen hero */
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25));
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.header__logo:hover img {
  transform: scale(1.03);
}

/* ---- Toggle (hamburger) – solo móvil ---- */
.header__toggle {
  position: relative;
  z-index: calc(var(--z-fixed) + 2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  background-color: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.header__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition:
    transform var(--transition-fast),
    opacity  var(--transition-fast);
}

.header__toggle[aria-expanded="true"] .header__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__toggle[aria-expanded="true"] .header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.header__toggle[aria-expanded="true"] .header__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Nav – mobile overlay ---- */
.header__nav {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-fixed) + 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(26, 39, 68, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity     var(--transition-normal),
    visibility  var(--transition-normal);
}

.header__nav.is-open {
  opacity: 1;
  visibility: visible;
}

.header__nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}

.header__nav-link {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-fast);
}

.header__nav-link:hover,
.header__nav-link[aria-current="page"] {
  color: #ffffff;
}

.header__nav-link:hover::after,
.header__nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ---- Desktop: nav vuelve a ser el cintillo pill ---- */
@media (min-width: 1024px) {

  .header__toggle {
    display: none;
  }

  .header__nav {
    position: static;
    inset: auto;
    opacity: 1;
    visibility: visible;
    background-color: var(--color-primary);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    /* Bordes desiguales: TL=45px TR=20px BR=20px BL=45px */
    border-radius: 45px 20px 45px 20px;
    padding: 0;
    min-height: 75px;
    flex-direction: row;
    flex: 1;
    align-items: center;
    justify-content: center;
    max-width: 62%;
    margin-left: auto;
    box-shadow: var(--shadow-md);
  }

  .header__nav-list {
    flex-direction: row;
    gap: var(--space-xl);
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-inline: var(--space-2xl);
  }

  .header__nav-link {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.90);
    letter-spacing: 0;
  }

  .header__nav-link:hover,
  .header__nav-link[aria-current="page"] {
    color: #ffffff;
  }
}

/* ========================================
   HERO SECTION
   2 columnas: 60% imagen | 40% texto
   Fondo cubre todo el bloque, la columna de
   imagen muestra la foto con blob decorativo.
   ======================================== */

.hero {
  position: relative;
  min-height: 600px;
  max-height: 800px;
  height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Imagen de fondo movida a CSS background – este elemento ya no se usa */
.hero__bg-wrap {
  display: none;
}

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Grid ocupa el 100% del hero sin márgenes */
.hero__grid {
  position: relative;
  z-index: var(--z-base);
  display: flex;
  width: 100%;
  height: 100%;
  align-items: stretch;
}

/* Columna izquierda: imagen cubre toda la columna desde el borde,
   object-position: right bottom para no perder el contenido principal */
.hero__image-col {
  flex: 0 0 60%;
  position: relative;
  overflow: hidden;
}

.hero__image-col img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right bottom;
}



/* Columna derecha: texto centrado verticalmente */
.hero__content-col {
  flex: 0 0 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  padding: var(--space-2xl) var(--space-2xl) var(--space-2xl) var(--space-xl);
}

.hero__content {
  max-width: 420px;
  width: 100%;
  text-align: right;
}

.hero__label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.hero__title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--font-bold);
  color: var(--color-primary);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-lg);
}

.hero__title strong {
  color: var(--color-primary);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-2xl);
  max-width: 40ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  justify-content: flex-end;
}

/* ---- Hero responsive: apila en tablet/mobile ---- */
@media (max-width: 1023px) {
  .hero {
    flex-direction: column;
    height: auto;
    min-height: auto;
    max-height: none;
  }

  .hero__grid {
    flex-direction: column;
    height: auto;
    min-height: auto;
  }

  .hero__image-col {
    flex: 0 0 auto;
    height: 55vw;
    min-height: 260px;
    max-height: 420px;
  }

  .hero__blob {
    width: 180px;
    height: 180px;
    right: -20px;
    top: 50%;
  }

  .hero__content-col {
    flex: 0 0 100%;
    width: 100%;
    padding: var(--space-2xl) var(--space-xl);
    justify-content: center;
  }

  .hero__content {
    max-width: 100%;
    text-align: center;
  }

  .hero__subtitle {
    max-width: 100%;
  }

  .hero__cta {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .hero {
    background-attachment: scroll;
  }

  .hero__image-col {
    display: block; /* imagen siempre visible */
    height: 60vw;
    min-height: 220px;
    max-height: 380px;
  }

  .hero__content-col {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-3xl);
    background-color: transparent; /* deja ver el fondo parallax */
  }
}

/* ========================================
   SECCIÓN SOMOS – Industrias GESA
   2 columnas: imagen circular izquierda | texto derecha
   Fondo metálico/plateado con patrón diagonal
   ======================================== */

.somos {
  position: relative;
  padding-block: var(--space-4xl);
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.somos__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
  align-items: center;
}

@media (min-width: 768px) {
  .somos__inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-4xl);
  }
}

/* Columna imagen */
.somos__image-col {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.somos__img-wrap {
  position: relative;
  width: clamp(240px, 28vw, 360px);
  height: clamp(240px, 28vw, 360px);
}

/* Anillo decorativo ámbar exterior */
.somos__img-wrap::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 6px solid var(--color-accent);
  z-index: 0;
}

.somos__img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-xl);
}

/* Columna texto */
.somos__text-col {
  flex: 1;
  max-width: 640px;
}

.somos__title {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: var(--font-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.somos__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.somos__body p {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: var(--leading-relaxed);
  max-width: 65ch;
}

.somos__body p strong {
  color: var(--color-text-dark);
  font-weight: var(--font-semibold);
}

/* ========================================
   SECCIÓN VALORES
   ======================================== */

.valores {
  background-color: #E4E4E2;
  padding-block: var(--space-4xl);
}

.valores__title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: var(--font-bold);
  color: var(--color-primary);
}

.valores__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .valores__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.valor-card {
  background-color: #E5AD41;
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

.valor-card__img-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.valor-card__img-wrap img {
  width: clamp(100px, 12vw, 160px);
  height: auto;
  object-fit: contain;
}

.valor-card__label {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0;
  max-width: 100%;
}

/* ========================================
   SECCIÓN PRODUCTOS Y SERVICIOS
   ======================================== */

.productos {
  background-color: #E4E4E2;
  padding-block: var(--space-4xl);
}

.productos__title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: var(--font-bold);
  color: var(--color-primary);
}

.productos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 768px) {
  .productos__grid {
    grid-template-columns: 60fr 40fr;
    gap: var(--space-3xl);
  }
}

.productos__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  list-style: none;
  padding: 0;
}

.productos__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--color-text-dark);
  line-height: var(--leading-normal);
}

.productos__list li::before {
  content: '·';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.4em;
  line-height: 1;
  color: var(--color-text-dark);
}

.productos__img-col {
  display: flex;
  justify-content: center;
}

.productos__img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

/* ========================================
   SECCIÓN NUESTROS CLIENTES
   ======================================== */

.clientes {
  position: relative;
  padding-block: var(--space-4xl);
  overflow: hidden;
}

.clientes__bg-wrap {
  position: absolute;
  inset: 0;
  z-index: var(--z-below);
}

.clientes__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.clientes::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(240, 242, 245, 0.88);
  z-index: 0;
  pointer-events: none;
}

.clientes__inner {
  position: relative;
  z-index: 1;
}

.clientes__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  margin-bottom: var(--space-3xl);
}

@media (max-width: 767px) {
  .clientes__header {
    grid-template-columns: 1fr;
  }

  .clientes__header-img {
    display: none;
  }
}

.clientes__header-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.clientes__header-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.clientes__title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: var(--font-bold);
  color: var(--color-primary);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-md);
}

.clientes__desc {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: var(--leading-relaxed);
}

.clientes__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl) var(--space-xl);
  align-items: center;
  justify-items: center;
}

@media (min-width: 768px) {
  .clientes__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cliente-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background-color: #f0f2f5; /* coincide con el overlay de la sección para que multiply funcione */
  border-radius: var(--radius-sm);
}

.cliente-logo img {
  max-width: 300px;
  max-height: 120px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: grayscale(20%);
  mix-blend-mode: multiply;
  transition: filter var(--transition-fast), transform var(--transition-fast);
}

.cliente-logo img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Logo solitario de fila 3: se centra en la columna 2 del grid en desktop */
@media (min-width: 768px) {
  .cliente-logo--offset {
    grid-column: 2 / span 2;
  }
}

/* ========================================
   SECCIÓN CONTACTO
   ======================================== */

.contacto {
  position: relative;
  padding-block: var(--space-4xl);
  overflow: hidden;
}

.contacto__bg-wrap {
  position: absolute;
  inset: 0;
  z-index: var(--z-below);
}

.contacto__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.contacto__outer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

/* Contenedor azul del formulario */
.contacto__card {
  width: 100%;
  max-width: 780px;
  background-color: var(--color-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-2xl);
}

.contacto__title {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: #ffffff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: var(--space-2xl);
}

/* Inputs dentro del card azul */
.contacto__form .form-group {
  margin-bottom: var(--space-md);
}

.contacto__form .form-group input,
.contacto__form .form-group textarea {
  background-color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-base);
  color: var(--color-text);
  width: 100%;
}

.contacto__form .form-group input::placeholder,
.contacto__form .form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.contacto__form .form-group input:focus,
.contacto__form .form-group textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border: none;
  box-shadow: none;
}

.contacto__form .error-message {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--text-sm);
  color: #fcd34d;
}

#form-alert {
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
  color: #fcd34d;
  text-align: center;
}

#form-alert.is-success {
  color: #86efac;
}

.contacto__form-footer {
  display: flex;
  justify-content: center;
  margin-top: var(--space-xl);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background-color: var(--color-primary);
  color: #ffffff;
  padding-block: var(--space-3xl);
}

/* Franja brochure */
.footer__brochure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

.footer__brochure-text {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: #ffffff;
  text-align: center;
  max-width: 100%;
  margin: 0;
}

/* Datos de contacto – 3 columnas */
.footer__data {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
  .footer__data {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

.footer__data-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.footer__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: #ffffff;
  margin-top: 2px;
}

.footer__address {
  font-style: normal;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.90);
  line-height: var(--leading-relaxed);
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.90);
  text-decoration: none;
  transition: color var(--transition-fast);
  line-height: var(--leading-relaxed);
  margin-top: 2px;
}

.footer__link:hover {
  color: var(--color-accent);
}

/* Redes sociales */
.footer__social {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.40);
  color: #ffffff;
  text-decoration: none;
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.footer__social-link:hover {
  border-color: var(--color-accent);
  background-color: var(--color-accent);
}

/* Divisor */
.footer__divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.20);
  margin-bottom: var(--space-xl);
}

/* Crédito */
.footer__credit {
  text-align: center;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.60);
  max-width: 100%;
  margin: 0;
}

/* ========================================
   SECCIÓN CONTACTO
   ======================================== */

.contacto {
  position: relative;
  padding-block: var(--space-4xl);
  overflow: hidden;
}

.contacto__bg-wrap {
  position: absolute;
  inset: 0;
  z-index: var(--z-below);
}

.contacto__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.contacto__outer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.contacto__card {
  width: 100%;
  max-width: 780px;
  background-color: var(--color-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-2xl);
}

.contacto__title {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: #ffffff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: var(--space-2xl);
}

.contacto__form .form-group {
  margin-bottom: var(--space-md);
}

.contacto__form .form-group input,
.contacto__form .form-group textarea {
  background-color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-base);
  color: var(--color-text);
  width: 100%;
  box-shadow: none;
}

.contacto__form .form-group input::placeholder,
.contacto__form .form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.contacto__form .form-group input:focus,
.contacto__form .form-group textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border: none;
  box-shadow: none;
}

.contacto__form .error-message {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--text-sm);
  color: #fcd34d;
}

#form-alert {
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
  color: #fcd34d;
  text-align: center;
  min-height: 1.2em;
}

#form-alert.is-success {
  color: #86efac;
}

.contacto__form-footer {
  display: flex;
  justify-content: center;
  margin-top: var(--space-xl);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background-color: var(--color-primary);
  color: #ffffff;
  padding-block: var(--space-3xl);
}

.footer__brochure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

.footer__brochure-text {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: #ffffff;
  text-align: center;
  max-width: 100%;
  margin: 0;
}

.footer__data {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
  .footer__data {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

.footer__data-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.footer__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: #ffffff;
  margin-top: 2px;
}

.footer__address {
  font-style: normal;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.90);
  line-height: var(--leading-relaxed);
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.90);
  text-decoration: none;
  transition: color var(--transition-fast);
  line-height: var(--leading-relaxed);
  margin-top: 2px;
}

.footer__link:hover {
  color: var(--color-accent);
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.40);
  color: #ffffff;
  text-decoration: none;
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.footer__social-link:hover {
  border-color: var(--color-accent);
  background-color: var(--color-accent);
}

.footer__divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.20);
  margin-bottom: var(--space-xl);
}

.footer__credit {
  text-align: center;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.60);
  max-width: 100%;
  margin: 0;
}

/* ========================================
   SEPARADOR
   Imagen a ancho completo, sin márgenes ni padding
   ======================================== */

.separador {
  display: block;
  width: 100%;
  line-height: 0;
  font-size: 0;
  background-color: #E4E4E2;
}

.separador img {
  display: block;
  width: 100%;
  height: 20px;
  object-fit: cover;
}

/* ========================================
   SCROLL-REVEAL – clase base para animaciones
   (activada vía JS al entrar en viewport)
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity  0.6s ease,
    transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal--left {
  transform: translateX(-32px);
}

.reveal--right {
  transform: translateX(32px);
}

.reveal--left.is-visible,
.reveal--right.is-visible {
  transform: none;
}

/* Delays de animación para stagger */
.reveal--delay-1 { transition-delay: 0.10s; }
.reveal--delay-2 { transition-delay: 0.20s; }
.reveal--delay-3 { transition-delay: 0.30s; }
.reveal--delay-4 { transition-delay: 0.45s; }

/* Ocultar animaciones si se prefiere movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ========================================
   SECCIÓN FILOSOFÍA EMPRESARIAL
   ======================================== */

.filosofia {
  position: relative;
  padding-block: var(--space-4xl);
  overflow: hidden;
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Imagen de fondo movida a CSS background */
.filosofia__bg-wrap {
  display: none;
}

.filosofia__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Capa de veladura clara sobre la imagen */
.filosofia::after {
  display: none;
}

.filosofia__inner {
  position: relative;
  z-index: 1;
}

/* Título de sección */
.filosofia__header {
  margin-bottom: var(--space-3xl);
}

.filosofia__title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: var(--font-bold);
  color: var(--color-primary);
  line-height: var(--leading-tight);
}

/* Grid 2 columnas */
.filosofia__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 768px) {
  .filosofia__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

/* ---- Tarjeta MISIÓN / VISIÓN ---- */
.filo-card {
  position: relative;
  border: 1px solid #85A84A;
  border-radius: var(--radius-lg);
  background-color: transparent;
  min-height: 220px;
  padding: var(--space-xl) var(--space-xl) var(--space-xl) 3rem;
}

/* Label vertical (MISIÓN / VISIÓN) centrado sobre el borde izquierdo */
.filo-card__label {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateX(-50%) translateY(-50%) rotate(-90deg);
  writing-mode: horizontal-tb;
  white-space: nowrap;
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  letter-spacing: 0.10em;
  color: #85A84A;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding-inline: var(--space-sm);
  border-radius: 2px;
  user-select: none;
}

/* Contenido textual */
.filo-card__body {
  display: flex;
  align-items: center;
  height: 100%;
}

.filo-card__body p {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: var(--leading-relaxed);
  max-width: 100%;
  margin: 0;
}
