/* =============================================
   CSS VARIABLES — Paleta Norman Jalil
============================================= */
:root {
  --azul:       #1ab5e8;
  --azul-dark:  #0e9fd3;
  --azul-bg:    #e8f7fd;
  --azul-hero:  #0b3d5e;
  --gris-texto: #444444;
  --gris-claro: #f5f5f5;
  --blanco:     #ffffff;
  --font-main:  'DM Sans', sans-serif;
  --font-title: 'DM Sans', sans-serif;
  --radius:     6px;
  --sombra:     0 4px 20px rgba(0,0,0,0.08);
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  color: var(--gris-texto);
  font-size: 15px;
  line-height: 1.7;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* =============================================
   NAVBAR
============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--blanco);
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.navbar-logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 18px;
  color: var(--azul);
  line-height: 1.1;
}
.navbar-logo span {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: #888;
  letter-spacing: 0.05em;
}
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--gris-texto);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--azul); background: var(--azul-bg); }
.nav-links .dropdown { position: relative; }
.nav-links .dropdown > a::after { content: " ▾"; font-size: 10px; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; /* SOLUCIÓN 1: Pegamos el menú al botón para eliminar la zona muerta */
  left: 0;
  list-style: none; /* SOLUCIÓN 2: Eliminamos los puntitos rebeldes */
  padding: 0;       /* SOLUCIÓN 3: Quitamos la sangría/espacio extra de los puntitos */
  margin: 0;
  background: var(--blanco);
  border: 1px solid #e5e5e5;
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  min-width: 240px;
  z-index: 100;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  border-radius: 0;
}
.dropdown-menu a:hover { background: var(--azul-bg); color: var(--azul); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gris-texto);
  border-radius: 2px;
  transition: 0.3s;
}
.nav-social { display: flex; gap: 8px; }
.nav-social a {
  font-size: 13px;
  color: #888;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.2s;
}
.nav-social a:hover { color: var(--azul); }

/* =============================================
   HERO
============================================= */
.hero {
  background: linear-gradient(135deg, var(--azul-hero) 0%, #1ab5e8 100%);
  color: var(--blanco);
  padding: 70px 24px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: center;
}
.hero-text h1 {
  font-family: var(--font-title);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
}
.hero-text p {
  font-size: 17px;
  opacity: 0.88;
  margin-bottom: 32px;
}
.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.hero-photo img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  border: 2px dashed rgba(255,255,255,0.3);
  gap: 8px;
}

/* =============================================
   PAGE HERO (páginas internas)
============================================= */
.page-hero {
  background: linear-gradient(135deg, var(--azul-hero) 0%, #1ab5e8 100%);
  color: var(--blanco);
  padding: 56px 24px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.page-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-hero .breadcrumb {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 12px;
}
.page-hero .breadcrumb a { color: inherit; }
.page-hero .breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 {
  font-family: var(--font-title);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 16px;
  opacity: 0.88;
  max-width: 600px;
}

/* =============================================
   SECCIÓN GENÉRICA
============================================= */
section { padding: 72px 24px; }
.container { max-width: 1100px; margin: 0 auto; }
.section-title {
  font-family: var(--font-title);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--azul);
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-text {
  font-size: 15px;
  color: var(--gris-texto);
  max-width: 680px;
  margin-bottom: 28px;
  line-height: 1.75;
}

/* =============================================
   BTN
============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--azul);
  color: var(--blanco);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn:hover { background: var(--azul-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--azul);
  border: 2px solid var(--azul);
}
.btn-outline:hover { background: var(--azul); color: var(--blanco); }
.btn-white {
  background: var(--blanco);
  color: var(--azul);
}
.btn-white:hover { background: var(--azul-bg); }

/* =============================================
   ESPECIALIDADES HOME — filas alternadas
============================================= */
.especialidad { padding: 72px 24px; }
.especialidad:nth-child(even) { background: var(--azul); }
.especialidad:nth-child(even) .section-title { color: var(--blanco); }
.especialidad:nth-child(even) .section-text { color: rgba(255,255,255,0.9); }
.especialidad:nth-child(even) .btn { background: var(--blanco); color: var(--azul); }
.especialidad:nth-child(even) .btn:hover { background: var(--azul-bg); }
.esp-row {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.esp-row.reverse { direction: rtl; }
.esp-row.reverse > * { direction: ltr; }
.esp-img {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #cde8f7;
}
.esp-img img { width: 100%; height: 100%; object-fit: cover; }

/* =============================================
   IMG PLACEHOLDER
============================================= */
.img-placeholder {
  width: 100%; height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 12px;
  gap: 8px;
  background: #e8f4fb;
}
.img-placeholder-dark {
  background: #1aa8d8;
  color: rgba(255,255,255,0.5);
}

/* =============================================
   GITOS
============================================= */
.gitos-section { background: var(--gris-claro); padding: 72px 24px; }
.gitos-inner { max-width: 1100px; margin: 0 auto; }
.gitos-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.gitos-logo { display: flex; flex-direction: column; align-items: center; text-align: center; }
.gitos-logo-badge {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 3px solid var(--azul);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 22px;
  color: var(--azul);
  background: var(--blanco);
  margin-bottom: 8px;
}
.gitos-logo small { font-size: 11px; color: #888; max-width: 130px; line-height: 1.3; }
.gitos-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.gitos-card {
  background: var(--blanco);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--sombra);
  text-align: center;
}
.gitos-card-img { aspect-ratio: 4/3; background: #e8f4fb; overflow: hidden; }
.gitos-card-img img { width: 100%; height: 100%; object-fit: cover; }
.gitos-card-label {
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gris-texto);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =============================================
   CONTENT PAGE (páginas internas)
============================================= */
.content-section { padding: 64px 24px; }
.content-inner { max-width: 1100px; margin: 0 auto; }
.content-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: flex-start;
}
.content-grid.reverse { grid-template-columns: 420px 1fr; }
.content-img {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.content-img img { width: 100%; height: 100%; object-fit: cover; }
.content-body h2 {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 800;
  color: var(--azul);
  margin-bottom: 16px;
}
.content-body h3 {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: var(--azul-hero);
  margin-top: 32px;
  margin-bottom: 12px;
}
.content-body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--gris-texto);
  margin-bottom: 16px;
}
.content-body ul {
  list-style: none;
  margin-bottom: 16px;
}
.content-body ul li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 15px;
  color: var(--gris-texto);
  border-bottom: 1px solid #f0f0f0;
}
.content-body ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--azul);
  font-weight: 700;
}

/* Info card lateral */
.info-card {
  background: var(--azul-bg);
  border-left: 4px solid var(--azul);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 32px;
}
.info-card h4 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15px;
  color: var(--azul-hero);
  margin-bottom: 12px;
}
.info-card p, .info-card li {
  font-size: 14px;
  color: var(--gris-texto);
}

/* Sidebar sticky */
.sidebar {
  position: sticky;
  top: 80px;
}
.sidebar-card {
  background: var(--blanco);
  border-radius: 10px;
  box-shadow: var(--sombra);
  overflow: hidden;
  margin-bottom: 24px;
}
.sidebar-card-header {
  background: var(--azul);
  color: var(--blanco);
  padding: 16px 20px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15px;
}
.sidebar-card-body { padding: 20px; }
.sidebar-card-body p { font-size: 14px; color: #666; margin-bottom: 12px; }
.sidebar-card-body .btn { width: 100%; justify-content: center; }
.esp-nav { list-style: none; }
.esp-nav li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--gris-texto);
  border-radius: var(--radius);
  transition: all 0.2s;
}
.esp-nav li a:hover, .esp-nav li a.active {
  background: var(--azul-bg);
  color: var(--azul);
  font-weight: 600;
}
.esp-nav li a::before { content: '›'; color: var(--azul); font-weight: 700; }

/* =============================================
   CTA BANNER
============================================= */
.cta-banner {
  background: linear-gradient(135deg, var(--azul-hero), var(--azul));
  color: var(--blanco);
  padding: 64px 24px;
  text-align: center;
}
.cta-banner h2 {
  font-family: var(--font-title);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  margin-bottom: 24px;
}

/* =============================================
   CONTACTO
============================================= */
.contacto-section {
  background: linear-gradient(135deg, #0e3d5a 0%, #1ab5e8 100%);
  color: var(--blanco);
  padding: 72px 24px;
}
.contacto-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: flex-start;
}
.contacto-info h2 {
  font-family: var(--font-title);
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 32px;
}
.contacto-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contacto-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contacto-item-text { font-size: 15px; }
.contacto-item-text strong {
  display: block;
  font-size: 12px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.contacto-form {
  background: var(--blanco);
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--gris-texto);
  transition: border-color 0.2s;
  background: var(--blanco);
  outline: none;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { border-color: var(--azul); }
.form-row textarea { resize: vertical; min-height: 100px; }
.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--azul);
  color: var(--blanco);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}
.form-submit:hover { background: var(--azul-dark); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success {
  margin-top: 12px;
  font-size: 14px;
  color: var(--azul);
  display: none;
}

/* =============================================
   MAPA
============================================= */
.mapa-section { height: 340px; background: #e0e0e0; }
.mapa-section iframe { width: 100%; height: 100%; border: none; filter: grayscale(20%); }

/* =============================================
   FOOTER
============================================= */
footer {
  background: #0b2e42;
  color: rgba(255,255,255,0.75);
  padding: 32px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 18px;
  color: var(--blanco);
  line-height: 1.1;
}
.footer-logo span { font-weight: 400; font-size: 11px; color: rgba(255,255,255,0.5); display: block; }
.footer-links { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; list-style: none; }
.footer-links a { color: rgba(255,255,255,0.6); padding: 4px 8px; border-radius: 4px; transition: color 0.2s; }
.footer-links a:hover { color: var(--azul); }
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.footer-copy { font-size: 11px; opacity: 0.5; margin: 0; }
.footer-credit {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 6px;
}
.firma-alba {
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  padding: 3px 12px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: all 0.2s;
}
.firma-alba:hover {
  border-color: #d15617; /* Tu color naranja de referencia */
  color: var(--blanco);
  background: #d15617;
}

/* Y esto al final de tu CSS, adentro de tu @media (max-width: 768px) para celulares: */
@media (max-width: 768px) {
  .footer-right { align-items: center; }
}

/* =============================================
   PERFIL — timeline
============================================= */
.timeline { position: relative; padding-left: 32px; margin-top: 8px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--azul-bg);
}
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--azul);
  border: 2px solid var(--blanco);
  box-shadow: 0 0 0 2px var(--azul);
}
.timeline-item .year {
  font-size: 12px;
  font-weight: 700;
  color: var(--azul);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.timeline-item h4 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15px;
  color: var(--azul-hero);
  margin-bottom: 4px;
}
.timeline-item p { font-size: 14px; color: #666; }

/* =============================================
   RESPONSIVE
============================================= */

/* GITOS iconos */
.gitos-icons-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
  width: 100%;
}
.gitos-icon-col { text-align: center; padding: 0 16px; }
.gitos-icon-circle {
  width: 80px; height: 80px;
  background: #e8f7fd; border-radius: 50%;
  display: flex; align-items: center;
  justify-content: center; margin: 0 auto 20px;
}
.gitos-icon-col h4 { font-weight:700; font-size:15px; color:#1ab5e8; margin-bottom:10px; line-height:1.3; }
.gitos-icon-col p { font-size:13px; color:#444; line-height:1.6; }

@media (max-width: 900px) {
  .content-grid,
  .content-grid.reverse { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 768px) {
  .nav-links, .nav-social { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--blanco);
    border-bottom: 1px solid #e5e5e5;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 999;
    gap: 2px;
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 12px;
    background: var(--azul-bg);
  }
  .dropdown.open .dropdown-menu { display: block; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { display: none; }
  .esp-row { grid-template-columns: 1fr; }
  .esp-row.reverse { direction: ltr; }
  .gitos-cards { grid-template-columns: 1fr; }
  .gitos-header { flex-direction: column; }
  .contacto-inner { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
