/* =============================================
   GRUPO FIC — Soluciones Industriales
   Custom stylesheet
   ============================================= */

/* ---------- Variables ---------- */
:root {
  --fic-blue:       #1565c0;
  --fic-blue-light: #1e88e5;
  --fic-navy:       #0a0f1e;
  --fic-dark:       #070c18;
  --fic-white:      #ffffff;
  --fic-gray:       #b0bec5;

  --font-main: 'Barlow', sans-serif;
  --font-cond: 'Barlow Condensed', sans-serif;

  --nav-height: 80px;
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--fic-dark);
  color: var(--fic-white);
  overflow-x: hidden;
}


/* =============================================
   NAVBAR
   ============================================= */
#mainNav {
  height: var(--nav-height);
  transition: background 0.35s ease, box-shadow 0.35s ease;
  overflow: visible;
}

/* Estado inicial: transparente */
.nav-transparent {
  background: transparent;
  box-shadow: none;
}

/* Estado al hacer scroll: sólido */
.nav-scrolled {
  background: rgba(7, 12, 24, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

/* Logo */
.nav-logo {
  height: 150px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 991.98px) {
  #mainNav {
    height: 116px;
  }

  .nav-logo {
    height: 100px;
  }
}

/* Links del nav */
.nav-link-custom {
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85) !important;
  padding: 0.5rem 0.75rem !important;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--fic-blue-light);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--fic-white) !important;
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
  transform: scaleX(1);
}

/* Dropdown */
.dropdown-custom {
  background: rgba(7, 12, 24, 0.97);
  border: 1px solid rgba(21, 101, 192, 0.3);
  border-top: 2px solid var(--fic-blue);
  border-radius: 0 0 6px 6px;
  padding: 0.5rem 0;
}

.dropdown-custom .dropdown-item {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.55rem 1.25rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-custom .dropdown-item:hover {
  background: rgba(21, 101, 192, 0.2);
  color: var(--fic-white);
}

/* Botón teléfono CTA */
.btn-cta-phone {
  background: var(--fic-blue);
  color: var(--fic-white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  border: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-cta-phone:hover {
  background: var(--fic-blue-light);
  color: var(--fic-white);
  transform: translateY(-1px);
}


/* =============================================
   HERO
   ============================================= */
.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* Imagen de fondo del hero (viene del HTML) */
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Overlay oscuro con gradiente */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(7, 12, 24, 0.92) 0%,
    rgba(10, 15, 30, 0.80) 55%,
    rgba(5, 10, 20, 0.55) 100%
  );
  z-index: 1;
}

/* Contenido del hero */
.hero-content {
  padding-top: var(--nav-height);
}

/* Supertítulo */
.hero-supertitle {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fic-blue-light);
  margin-bottom: 1.2rem;
}

.supertitle-line {
  display: inline-block;
  width: 48px;
  height: 2px;
  background: var(--fic-blue-light);
  flex-shrink: 0;
}

/* Headline principal */
.hero-headline {
  font-family: var(--font-cond);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.headline-white {
  color: var(--fic-white);
}

.headline-blue {
  color: var(--fic-blue-light);
}

/* Subtítulo */
.hero-subtitle {
  font-family: var(--font-main);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

/* Tags de servicios */
.hero-tags {
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fic-gray);
  margin-bottom: 0.5rem;
}

.hero-tags .tag-dot {
  color: var(--fic-blue-light);
  margin: 0 6px;
}

/* Botones del hero */
.btn-hero-primary {
  background: var(--fic-blue);
  color: var(--fic-white);
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.75rem;
  border-radius: 4px;
  border: 2px solid var(--fic-blue);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-hero-primary:hover {
  background: var(--fic-blue-light);
  border-color: var(--fic-blue-light);
  color: var(--fic-white);
  transform: translateY(-2px);
}

.btn-hero-outline {
  background: transparent;
  color: var(--fic-white);
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1.75rem;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--fic-white);
  transform: translateY(-2px);
}

/* Marca / logotipo grande lado derecho */
.hero-brand-mark {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: var(--nav-height);
  opacity: 0.92;
}

.hero-brand-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(21, 101, 192, 0.35));
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-dot {
  width: 8px;
  height: 8px;
  background: var(--fic-blue-light);
  border-radius: 50%;
  animation: scrollBounce 1.8s ease-in-out infinite;
  position: relative;
}

.scroll-dot::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--fic-blue-light));
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(8px); opacity: 0.4; }
}


/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991.98px) {
  #navMenu {
    background: rgba(7, 12, 24, 0.97);
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: 6px;
  }

  .btn-cta-phone {
    margin-top: 0.75rem;
  }

  .hero-content {
    text-align: center;
  }

  .hero-supertitle {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .btn-hero-primary,
  .btn-hero-outline {
    width: 100%;
    justify-content: center;
  }
}


/* =============================================
   QUIÉNES SOMOS
   ============================================= */

/* Utilidad de color azul FIC para texto */
.text-fic-blue {
  color: var(--fic-blue-light);
}

/* --- Columna izquierda (oscura con imagen) --- */
.qs-col-img {
  position: relative;
  background-color: var(--fic-navy);
  min-height: 480px;
  overflow: hidden;
}

/* Patrón de puntos decorativo */
.qs-dots-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(30, 136, 229, 0.25) 1px, transparent 1px);
  background-size: 22px 22px;
  z-index: 0;
}

/* Wrap de imagen */
.qs-img-wrap {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem 3rem 3rem;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Imagen principal */
.qs-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* Badge "+40 años" */
.qs-badge {
  position: absolute;
  bottom: 3.5rem;
  right: 0;
  background: var(--fic-blue);
  border-radius: 6px 0 0 6px;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.qs-badge-number {
  font-family: var(--font-cond);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--fic-white);
  line-height: 1;
}

.qs-badge-text {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.03em;
  margin-top: 4px;
}

/* --- Columna derecha (clara) --- */
.qs-col-content {
  background-color: #f5f7fb;
  display: flex;
  align-items: center;
}

.qs-content-inner {
  padding: 4rem 3rem 4rem 3.5rem;
}

/* Supertítulo */
.qs-supertitle {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fic-blue-light);
  margin-bottom: 1rem;
}

.qs-supertitle-line {
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--fic-blue-light);
  flex-shrink: 0;
}

/* Título */
.qs-headline {
  font-family: var(--font-cond);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--fic-navy);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

/* Párrafo */
.qs-body {
  font-family: var(--font-main);
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

/* Cards Misión / Visión */
.qs-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--fic-white);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.qs-card-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: var(--fic-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fic-blue-light);
  font-size: 1.2rem;
}

.qs-card-title {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fic-navy);
  margin-bottom: 0.35rem;
}

.qs-card-text {
  font-family: var(--font-main);
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.65;
  margin-bottom: 0;
}

/* --- Responsive Quiénes somos --- */
@media (max-width: 991.98px) {
  .qs-col-img {
    min-height: 380px;
  }

  .qs-img-wrap {
    padding: 2rem 1.5rem;
  }

  .qs-badge {
    bottom: 2rem;
    right: 0;
    min-width: 130px;
  }

  .qs-badge-number {
    font-size: 2.2rem;
  }

  .qs-content-inner {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .qs-badge {
    min-width: 110px;
    padding: 0.75rem 1rem;
  }

  .qs-badge-number {
    font-size: 1.8rem;
  }

  .qs-badge-text {
    font-size: 0.9rem;
  }
}


/* =============================================
   SECTORES
   ============================================= */
.sectores-section {
  background-color: #f0f4f8;
  padding: 5rem 0;
}

/* Encabezado centrado */
.sectores-header {
  margin-bottom: 0.5rem;
}

.sectores-supertitle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fic-blue-light);
  margin-bottom: 0.75rem;
}

.sectores-supertitle-line {
  display: block;
  width: 36px;
  height: 2px;
  background: var(--fic-blue-light);
}

.sectores-headline {
  font-family: var(--font-cond);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: var(--fic-navy);
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.sectores-subheadline {
  font-family: var(--font-main);
  font-size: 1rem;
  color: #4a5568;
  margin-bottom: 0;
}

/* --- Tarjeta de sector --- */
.sector-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Zona de imagen */
.sector-card-img-wrap {
  position: relative;
  flex-shrink: 0;
}

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

/* Degradado en la parte inferior de la imagen */
.sector-card-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to bottom, transparent 0%, var(--fic-navy) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Icono circular superpuesto en el borde imagen/cuerpo */
.sector-icon-circle {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--fic-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fic-blue);
  font-size: 1.3rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  z-index: 2;
  border: 2px solid rgba(21, 101, 192, 0.15);
}

/* Zona de texto oscura */
.sector-card-body {
  background: var(--fic-navy);
  padding: 2.5rem 1.25rem 1.5rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Línea decorativa azul */
.sector-line {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--fic-blue-light);
  margin-bottom: 0.75rem;
}

.sector-title {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fic-white);
  margin-bottom: 0.5rem;
}

.sector-desc {
  font-family: var(--font-main);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Responsive sectores */
@media (max-width: 575.98px) {
  .sectores-section {
    padding: 3.5rem 0;
  }
}


/* =============================================
   SERVICIOS
   ============================================= */
.servicios-section {
  background-color: #eef4fd;
  padding: 5rem 0;
}

/* Encabezado */
.servicios-header {
  margin-bottom: 0.5rem;
}

.servicios-supertitle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fic-blue-light);
  margin-bottom: 0.75rem;
}

.servicios-supertitle-line {
  display: block;
  width: 36px;
  height: 2px;
  background: var(--fic-blue-light);
}

.servicios-headline {
  font-family: var(--font-cond);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--fic-navy);
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.servicios-subheadline {
  font-family: var(--font-main);
  font-size: 1rem;
  color: #4a5568;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.65;
}

/* --- Tarjeta de servicio --- */
.servicio-card {
  background: var(--fic-white);
  border-radius: 10px;
  overflow: visible;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.servicio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(21, 101, 192, 0.15);
}

/* Zona de imagen */
.servicio-img-wrap {
  position: relative;
}

.servicio-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 10px 10px 0 0;
}

/* Icono cuadrado superpuesto en esquina inferior-izquierda */
.servicio-icon-wrap {
  position: absolute;
  bottom: -24px;
  left: 1.25rem;
  z-index: 2;
}

.servicio-icon-img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  display: block;
  box-shadow: 0 4px 14px rgba(21, 101, 192, 0.3);
}

/* Cuerpo de la tarjeta */
.servicio-body {
  padding: 2.75rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.servicio-title {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fic-navy);
  margin-bottom: 0.6rem;
}

.servicio-desc {
  font-family: var(--font-main);
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

/* Botón "Más información" */
.servicio-btn {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fic-navy);
  background: var(--fic-white);
  border: 1.5px solid #d1dbe8;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  width: 100%;
  justify-content: space-between;
}

.servicio-btn:hover {
  background: var(--fic-blue);
  color: var(--fic-white);
  border-color: var(--fic-blue);
}

/* Responsive servicios */
@media (max-width: 991.98px) {
  .servicios-section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 575.98px) {
  .servicio-img {
    height: 180px;
  }
}


/* =============================================
   CLIENTES
   ============================================= */
.clientes-section {
  position: relative;
  background-color: var(--fic-navy);
  padding: 5rem 0;
  overflow: hidden;
}

/* Patrón de puntos (igual que en Quiénes Somos) */
.clientes-dots-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(30, 136, 229, 0.18) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 0;
  pointer-events: none;
}

/* Encabezado */
.clientes-header {
  position: relative;
  z-index: 1;
  margin-bottom: 3rem;
}

.clientes-supertitle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fic-blue-light);
  margin-bottom: 0.75rem;
}

.clientes-supertitle-line {
  display: block;
  width: 36px;
  height: 2px;
  background: var(--fic-blue-light);
}

.clientes-headline {
  font-family: var(--font-cond);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--fic-white);
  margin-bottom: 0;
  line-height: 1.15;
}

/* --- Marquee --- */
.clientes-track {
  position: relative;
  z-index: 1;
  overflow: hidden;
  /* Fade en los bordes izquierdo y derecho */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.clientes-marquee {
  display: flex;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}

.clientes-marquee:hover {
  animation-play-state: paused;
}

.clientes-set {
  display: flex;
  gap: 1.25rem;
  padding: 0 0.625rem;
}

/* Tarjeta de cliente */
.cliente-card {
  background: var(--fic-white);
  border-radius: 12px;
  width: 170px;
  height: 110px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.cliente-card img {
  max-width: 100%;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.25s ease;
}

.cliente-card:hover img {
  filter: grayscale(0%);
}

/* Animación marquee */
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsive clientes */
@media (max-width: 575.98px) {
  .clientes-section {
    padding: 3.5rem 0;
  }

  .cliente-card {
    width: 140px;
    height: 90px;
  }
}


/* =============================================
   CONTACTO
   ============================================= */
.contacto-section {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

/* Imagen de fondo (viene del HTML) */
.contacto-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Overlay blanco muy claro */
.contacto-overlay {
  position: absolute;
  inset: 0;
  background: rgba(235, 244, 255, 0.78);
  z-index: 1;
}

/* Encabezado */
.contacto-header {
  position: relative;
  z-index: 2;
  margin-bottom: 0.5rem;
}

.contacto-supertitle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fic-blue);
  margin-bottom: 0.75rem;
}

.contacto-supertitle-line {
  display: block;
  width: 36px;
  height: 2px;
  background: var(--fic-blue);
}

.contacto-headline {
  font-family: var(--font-cond);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  color: var(--fic-navy);
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.contacto-subheadline {
  font-family: var(--font-main);
  font-size: 1rem;
  color: #4a5568;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
}

/* --- Formulario --- */
.contacto-form {
  position: relative;
  z-index: 2;
}

/* Campo con icono izquierdo */
.contacto-field {
  position: relative;
}

.contacto-field-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: #90a4bc;
  font-size: 1rem;
  z-index: 2;
  pointer-events: none;
}

/* Icono del textarea: alineado arriba */
.contacto-field-icon-ta {
  top: 1.1rem;
  transform: none;
}

.contacto-input {
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid #dce6f0;
  border-radius: 10px;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--fic-navy);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.contacto-input::placeholder {
  color: #90a4bc;
}

.contacto-input:focus {
  outline: none;
  border-color: var(--fic-blue-light);
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.12);
  background: #ffffff;
}

.contacto-textarea {
  resize: none;
  padding-top: 1rem;
  min-height: 150px;
}

/* Botón enviar */
.contacto-btn-submit {
  background: var(--fic-blue);
  color: var(--fic-white);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 10px;
  padding: 1rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contacto-btn-submit:hover {
  background: var(--fic-blue-light);
  color: var(--fic-white);
  transform: translateY(-2px);
}

/* --- Cards de información --- */
.contacto-info-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid #dce6f0;
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  box-shadow: 0 2px 12px rgba(21, 101, 192, 0.07);
}

.contacto-info-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: #ddeeff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fic-blue);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contacto-info-title {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fic-navy);
  margin-bottom: 0.35rem;
}

.contacto-info-text {
  font-family: var(--font-main);
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.65;
  margin-bottom: 0;
}

.contacto-info-text a {
  color: #4a5568;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contacto-info-text a:hover {
  color: var(--fic-blue);
}

/* Responsive contacto */
@media (max-width: 991.98px) {
  .contacto-section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 575.98px) {
  .contacto-headline {
    font-size: 1.7rem;
  }
}


/* =============================================
   GALERÍA
   ============================================= */
.galeria-section {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

/* Imagen de fondo */
.galeria-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Overlay oscuro semitransparente */
.galeria-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 22, 0.82);
  z-index: 1;
}

/* Encabezado */
.galeria-header {
  margin-bottom: 2.5rem;
}

.galeria-supertitle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fic-blue-light);
  margin-bottom: 0.75rem;
}

.galeria-supertitle-line {
  display: block;
  width: 36px;
  height: 2px;
  background: var(--fic-blue-light);
}

.galeria-headline {
  font-family: var(--font-cond);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--fic-white);
  margin-bottom: 0;
  line-height: 1.1;
}

/* --- Card de galería --- */
.galeria-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 480px;
  cursor: grab;
}

.galeria-card:active {
  cursor: grabbing;
}

.galeria-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.galeria-card:hover .galeria-card-img {
  transform: scale(1.05);
}

/* Degradado oscuro en la parte inferior */
.galeria-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(5, 15, 40, 0.85) 100%
  );
  z-index: 1;
}

/* Tag azul arriba */
.galeria-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: var(--fic-blue);
  color: var(--fic-white);
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
}

/* Título abajo */
.galeria-card-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.25rem 1.5rem;
  z-index: 2;
}

.galeria-card-title {
  font-family: var(--font-main);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fic-white);
  margin-bottom: 0;
}

/* Paginación Swiper */
.galeria-pagination {
  margin-top: 1.75rem;
  position: relative !important;
  bottom: auto !important;
}

.galeria-pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
  width: 8px;
  height: 8px;
  transition: background 0.2s ease, width 0.2s ease;
  border-radius: 50px;
}

.galeria-pagination .swiper-pagination-bullet-active {
  background: var(--fic-blue-light);
  width: 24px;
}

/* Responsive galería */
@media (max-width: 991.98px) {
  .galeria-section {
    padding: 3.5rem 0 3rem;
  }

  .galeria-card {
    height: 420px;
  }
}

@media (max-width: 575.98px) {
  .galeria-card {
    height: 380px;
  }
}


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

/* --- Sección superior --- */
.footer-top {
  position: relative;
  background-color: var(--fic-dark);
  padding: 4rem 0;
  overflow: hidden;
}

/* Imagen de fondo */
.footer-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Overlay muy oscuro para que el contenido destaque */
.footer-top-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 22, 0.88);
  z-index: 1;
}

/* Icono + texto política de calidad */
.footer-calidad {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.footer-calidad-icon {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 50%;
  border: 2px solid rgba(30, 136, 229, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fic-blue-light);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.footer-calidad-title {
  font-family: var(--font-main);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fic-white);
  margin-bottom: 0.75rem;
}

.footer-calidad-text {
  font-family: var(--font-main);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
  margin-bottom: 0;
}

/* Divisor vertical */
.footer-divider-v {
  width: 1px;
  height: 160px;
  background: rgba(255, 255, 255, 0.15);
}

/* Logo grande */
.footer-logo-img {
  max-width: 340px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(21, 101, 192, 0.3));
}

/* --- Barra inferior --- */
.footer-bottom {
  background-color: #040810;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-bottom-left,
.footer-bottom-right {
  font-family: var(--font-main);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-left strong {
  color: var(--fic-blue-light);
  font-weight: 600;
}

.footer-bottom-right a {
  color: var(--fic-blue-light);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-bottom-right a:hover {
  color: var(--fic-white);
}

/* Responsive footer */
@media (max-width: 991.98px) {
  .footer-top {
    padding: 3rem 0;
    text-align: center;
  }

  .footer-calidad {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-logo-img {
    max-width: 260px;
  }
}

@media (max-width: 767.98px) {
  .footer-bottom-left {
    margin-bottom: 0.4rem;
  }
}
