/* =========================
   BASE Y VARIABLES
========================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-50: #eff6ff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* =========================
   GLOBAL
========================= */
html, body {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.body {
  background: var(--gray-50);
  font-family: 'Poppins', sans-serif;
  color: var(--gray-900);
  margin: 0;
}

.container {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding: 5rem 1.5rem;
}

.section-white {
  background: var(--white);
}

.section-gray {
  background: #f3f4f6;
}

/* =========================
   HEADER
========================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 60;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.header-top {
  position: relative;
  text-align: center;
  padding: 0.8rem 1rem;
}

.logo-box picture img {
  height: 60px;         /* 🔧 Tamaño fijo del logo */
  width: auto;          /* Mantiene proporción */
  display: inline-block;
  margin: 0 auto;
  vertical-align: middle;
}

.menu-mobile-btn-wrap {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.menu-mobile-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-24 {
  width: 24px;
  height: 24px;
}

/* ===== ANIMACIÓN FADE MENU MÓVIL ===== */
.mobile-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  box-shadow: var(--shadow-md);
  padding: 1rem 1.5rem;
  z-index: 70;

  /* animación */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

.mobile-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-link {
  color: var(--gray-800);
  font-weight: 500;
  text-decoration: none;
}

.mobile-link:hover {
  color: var(--primary-600);
}

/* Menú desktop */
.header-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: var(--white);
}

.navbar {
  display: flex;
  justify-content: center;
}

.menu-desktop {
  display: none;
  gap: 2rem;
  padding: 0.75rem 0;
}

.nav-link {
  color: var(--gray-800);
  font-weight: 500;
  text-decoration: none; /* importante: no subrayado */
  transition: color .2s ease;
  margin-left:40px;
  margin-right:40px;
}

.nav-link:hover {
  color: var(--primary-600);
}

@media (min-width: 1150px) {
  .menu-desktop { display: flex; }
  .menu-mobile-btn-wrap { display: none; }
  .mobile-menu { display: none !important; }
}

.navbar.scrolled {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background 0.3s, box-shadow 0.3s;
}

/* =========================
   HERO SECTION
========================= */
.hero {
  position: relative;
  padding: 5rem 1rem 3rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  background-image: url("imagenes/INTERNACION_FONDO.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(6px);
  transform: scale(1.05);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 3rem;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-title {
  font-size: clamp(2.5rem, 3vw + 1rem, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
}

.hero-span {
  color: #00c7ff;
}

.hero-subtitle {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: #ffffff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 1);
  max-width: 42rem;
}

/* =========================
   SECCIÓN DEFINICIÓN
========================= */
.definicion-section {
  padding: 5rem 1.5rem;
  text-align: center;
}

.section-header {
  margin-bottom: 2rem;
  text-align: center;
}

.section-title {
  font-size: clamp(1.75rem, 1.2vw + 1rem, 2.25rem);
  font-weight: 700;
  color: var(--gray-900);
  text-align: center;
}

.section-underline {
  width: 5rem;
  height: 4px;
  background: var(--primary-600);
  margin: 1rem auto;
}

.definicion-paragraph {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--gray-700);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 768px) {
  .definicion-section {
    padding: 3rem 1rem;
  }
  .definicion-paragraph {
    font-size: 1rem;
    line-height: 1.6;
  }
}
/* =========================
   SECCIÓN QUIÉN PUEDE REALIZAR EL TRÁMITE
========================= */
.tramite-section {
  padding: 5rem 1.5rem;
  text-align: center;
}

.tramite-section .section-header {
  margin-bottom: 2rem;
  text-align: center;
}

.tramite-section .section-title {
  font-size: clamp(1.75rem, 1.2vw + 1rem, 2.25rem);
  font-weight: 700;
  color: var(--gray-900);
  text-align: center;
}

.tramite-section .section-underline {
  width: 5rem;
  height: 4px;
  background: var(--primary-600);
  margin: 1rem auto;
}

.tramite-paragraph {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--gray-700);
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
  text-align: center;
}

@media (max-width: 768px) {
  .tramite-section {
    padding: 3rem 1rem;
  }
  .tramite-paragraph {
    font-size: 1rem;
    line-height: 1.6;
  }
}
/* =========================
   SECCIÓN DÓNDE PUEDO REALIZAR EL TRÁMITE
========================= */
.donde-section {
  padding: 5rem 1.5rem;
  text-align: center;
}

.donde-section .section-header {
  margin-bottom: 2rem;
  text-align: center;
}

.donde-section .section-title {
  font-size: clamp(1.75rem, 1.2vw + 1rem, 2.25rem);
  font-weight: 700;
  color: var(--gray-900);
  text-align: center;
}

.donde-section .section-underline {
  width: 5rem;
  height: 4px;
  background: var(--primary-600);
  margin: 1rem auto;
}

.donde-paragraph {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--gray-700);
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
  text-align: center;
}

@media (max-width: 768px) {
  .donde-section {
    padding: 3rem 1rem;
  }
  .donde-paragraph {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* =========================
   CLIENTES (CARRUSEL)
========================= */
.section-description {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: var(--gray-700);
  max-width: 800px;
  margin-inline: auto;
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: none;
  gap: 10px;
}

.logo-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;     /* 🔧 ancho fijo */
  height: 150px;    /* 🔧 alto fijo */
  margin-right: 10px;
  flex: 0 0 auto;   /* 🔧 mantiene flujo horizontal */
  padding: 10px;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Responsive carousel */
@media (max-width: 1024px) {
  .carousel-track .logo-card {
    flex: 0 0 33.33%;
    max-width: 33.33%;
  }
}

@media (max-width: 640px) {
  .carousel-track .logo-card {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Footer */
.footer {
  background:#193e8e ;
  color: #fff;
  padding: 3rem 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

.footer-logo{ margin-bottom: 1rem; }
.footer-text { color: #e5e7eb; margin-bottom: 1.5rem; }
.footer-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-link { color: #e5e7eb; text-decoration: none; transition: color .3s ease; }
.footer-link:hover { color: #ffffff; }
.footer-bottom {
  border-top: 1px solid #ffffff;
  margin-top: 2.5rem; padding-top: 1.5rem;
  text-align: center;
  color: #fff;
}

@media (min-width: 768px) { /* md */
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-col-span2 {
    grid-column: span 2;
  }
}

/* Espaciados heredados del diseño */
.mb-6 { margin-bottom: 1.5rem; }

/* Ajustes responsivos específicos */
@media (min-width: 640px) { /* sm */
  .hero-cta { gap: 1rem; }
}
@media (min-width: 768px) { /* md */
  .section { padding: 5rem 3rem; }
}


/* social icons in footer */
.social-row { display:flex; gap: .75rem; align-items:center; margin-top:.5rem; }
.footer-social {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px; height:42px;
  border-radius:9px;
  background: rgba(255,255,255,0.08);
  color: #d1d5db;
  text-decoration:none;
  transition: background .2s ease, transform .15s ease;
}
.footer-social:hover { background: rgba(255,255,255,0.14); transform: translateY(-3px); }

/* icon inside footer social (svg) */
.footer-social svg { width:20px; height:20px; display:block; }

/* Tamaño del logo en el footer */
.footer-col-span2 picture img {
  height: 60px;        /* 🔧 Fija el alto del logo */
  width: auto;         /* Mantiene la proporción */
  display: block;
  margin-bottom: 1rem;
}

/* Opcional: versión más pequeña en pantallas móviles */
@media (max-width: 480px) {
  .footer-col-span2 picture img {
    height: 50px;
  }
}
