/* ---------- CSS Variables ---------- */
:root {
  --blue-dark:   #1a3d6e;
  --blue-mid:    #1e6fbf;
  --blue-light:  #4ab3e8;
  --blue-pale:   #ddeef9;
  --accent:      #2196f3;
  --white:       #ffffff;
  --gray-light:  #f4f8fc;
  --gray-text:   #5a6a7a;
  --blue-qna:    #1E9DCD;
  --font:        'Nunito', sans-serif;
  --radius:      14px;
  --shadow:      0 6px 30px rgba(30, 111, 191, 0.12);
  --transition:  0.3s ease;
}
 
/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--blue-dark);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
 
.img-logo {
  width: 150px;   
  height: auto;
}
.img-logo2 {
  width: 100px;   
  height: auto;
}
 
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
 
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
 
/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #e8f0f8;
  box-shadow: 0 2px 12px rgba(30,111,191,.07);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
 
/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.1rem;
  font-weight: 800;
}
.logo-circle {
  background: var(--blue-mid);
  color: var(--white);
  padding: 6px 10px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.5px;
}
.logo-text { color: var(--blue-dark); font-weight: 700; font-size: 1.1rem; }
.logo-white .logo-text { color: var(--white); }
.logo-white .logo-circle { background: rgba(255,255,255,0.25); }
 
/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--blue-dark);
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue-mid); }
 
/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 0;
  min-width: 180px;
  z-index: 200;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-dark);
}
.dropdown-menu a:hover { background: var(--blue-pale); color: var(--blue-mid); }
 
/* Nav CTA button */
.btn-nav {
  background: var(--blue-qna);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition);
}
.btn-nav:hover { background: var(--blue-mid); transform: translateY(-1px); }

 
/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: all var(--transition);
}
 
/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  background: var(--white);
  padding: 60px 0 0;
  overflow: hidden;
}
 
.hero::before {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 0; right: 0;
  height: 120px;
  background: var(--blue-qna);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 0;
}
 
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
  padding-bottom: 80px;
}
 
/* ⛔ ELIMINADO: .hero-inner::after — era la figura azul/gris decorativa de fondo */
 
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-content h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  color: var(--blue-dark);
  margin-bottom: 16px;
  line-height: 1.15;
}
.hero-content p {
  font-size: 1.05rem;
  color: var(--gray-text);
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
 
/* Buttons */
.btn-outline {
  padding: 11px 24px;
  border: 2px solid var(--blue-dark);
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue-dark);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-block;
}
.btn-outline:hover { background: var(--blue-dark); color: var(--white); }
 
.btn-primary {
  padding: 11px 28px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  background: var(--blue-mid);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-block;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,111,191,.35); }
 
/* Hero image — alineado a la derecha */
.hero-image {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end; /* ✅ óvalo pegado a la derecha */
}
 
.hero-img-wrapper {
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(30,111,191,.25);
  aspect-ratio: 1 / 0.85;
  background: linear-gradient(135deg, var(--blue-pale) 0%, var(--blue-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
 
/* Placeholder when no real image */
.hero-img-placeholder {
  width: 100%;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--blue-mid);
  flex-direction: column;
  gap: 12px;
}
.hero-img-placeholder span {
  font-size: 0.9rem;
  color: var(--blue-mid);
  font-weight: 600;
}
 
/* =========================================
   HERO OVAL / CARRUSEL
   ========================================= */
.hero-circle-bg {
  position: relative;
  width: 520px;
  height: 420px;
  border-radius: 50%;                /* con width ≠ height genera óvalo */
  background: radial-gradient(ellipse at 60% 40%, #daeeff 0%, #b8d9f5 60%, #7ab8e8 100%);
  box-shadow: 0 8px 48px 0 rgba(80, 150, 220, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-left: auto;    /* ✅ empuja el óvalo a la derecha */
  margin-right: -30px;  /* ✅ sale levemente del contenedor hacia la derecha */
}
 
.hero-carousel {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: transparent;  /* ✅ sin fondo propio — se funde con el óvalo */
  border-radius: 0;
  box-shadow: none;
}
 
.hero-carousel .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;  /* ✅ sin capa visible entre imagen y óvalo */
}
 
.hero-carousel .slide.active {
  opacity: 1;
}
 
.hero-carousel .slide img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter: drop-shadow(0 2px 16px rgba(80, 150, 220, 0.2));
}
 
/* =========================================
   ESPECIALISTAS
   ========================================= */
.especialistas {
  padding: 80px 0 90px;
  background: var(--white);
}
.text-center { text-align: center; }
 
.especialistas h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--blue-dark);
  max-width: 700px;
  margin: 0 auto 18px;
  line-height: 1.4;
}
.especialistas h2 .accent {
  color: var(--blue-mid);
}
 
.sub {
  color: var(--gray-text);
  font-size: 0.96rem;
  max-width: 680px;
  margin: 0 auto 48px;
  line-height: 1.75;
}
 
/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
 
.card {
  background: var(--white);
  border: 1.5px solid #d8eaf8;
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: left;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(30,111,191,.18);
}
 
.card-icon {
  width: 52px; height: 52px;
  background: var(--blue-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--blue-mid);
  margin-bottom: 16px;
}
.card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 8px;
}
.card p {
  font-size: 0.88rem;
  color: var(--gray-text);
  line-height: 1.6;
}

/* =========================================
  FOOTER
   ========================================= */
.footer {
  background: var(--blue-qna);
  color: var(--white);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand p {
  font-size: 0.78rem;
  line-height: 1.6;
  margin-top: 8px;
  opacity: 0.85;
}
.footer-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,.3);
}
.footer-info p {
  font-size: 0.82rem;
  margin-bottom: 5px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-info p strong { opacity: 1; font-weight: 700; }
 
.footer-social {
  display: flex;
  gap: 10px;
  margin-left: auto;
}
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background var(--transition);
}
.footer-social a:hover { background: rgba(255,255,255,.35); }
 
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  opacity: 0.8;
}
.footer-legal a:hover { opacity: 1; text-decoration: underline; }
 
/* =========================================
   ANIMATIONS (AOS-like)
   ========================================= */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-left"]  { transform: translateX(30px); }
[data-aos].aos-animate {
  opacity: 1;
  transform: translate(0, 0);
}
[data-aos][data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos][data-aos-delay="200"] { transition-delay: 0.2s; }
 
/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-btns { justify-content: center; }
  .cards-grid { grid-template-columns: 1fr; max-width: 400px; }
  .hero-image { justify-content: center; }
  .hero-circle-bg {
    margin-left: auto;
    margin-right: auto;
  }
}
 
@media (max-width: 768px) {
  .hero-circle-bg {
    width: 320px;
    height: 260px;
  }
}
 
@media (max-width: 720px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    gap: 16px;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-social { margin-left: 0; }
  .footer-divider { display: none; }
}

.map-container {
  margin-top: 40px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.map-container iframe {
  display: block;
}

/* IMAGENES EN TARJETAS */
.card-icon{
  width:90px !important;
  height:90px !important;
  background:#dfeef7;
  border-radius:20px;
  display:flex;
  justify-content:center;
  align-items:center;
  margin-bottom:20px;
  overflow:hidden;
}

.card-icon img{
  width:60px;
  height:60px;
  object-fit:contain;
  display:block;
}


