/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #1a73e8;
  --blue-dark: #1558b0;
  --blue-light: #e8f0fe;
  --dark: #1a1a2e;
  --text: #555;
  --light: #f4f8ff;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(26,115,232,.10);
  --shadow-lg: 0 8px 40px rgba(26,115,232,.18);
  --tr: .28s ease;
}

html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: var(--text); background: var(--white); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 50px; font-weight: 600; font-size: .95rem; cursor: pointer; border: none; transition: var(--tr); }
.btn--primary { background: var(--blue); color: var(--white); box-shadow: 0 4px 18px rgba(26,115,232,.35); }
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn--wa { background: var(--blue); color: var(--white); padding: 10px 22px; font-size: .88rem; }
.btn--wa:hover { background: var(--blue-dark); }
.btn--full { width: 100%; justify-content: center; }

/* SECTION HELPERS */
.section-header { text-align: center; margin-bottom: 52px; }
.section-tag { display: inline-block; background: var(--blue-light); color: var(--blue); font-weight: 600; font-size: .78rem; letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 16px; border-radius: 50px; margin-bottom: 12px; }
.section-tag--light { background: rgba(255,255,255,.2); color: var(--white); }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 700; color: var(--dark); line-height: 1.25; }
.section-title--light { color: var(--white); }
.section-sub { color: var(--text); margin-top: 8px; }

/* TOP BAR */
.topbar { background: #1a1a2e; color: rgba(255,255,255,.85); font-size: .8rem; padding: 9px 0; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar__left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar__left span { display: flex; align-items: center; gap: 6px; }
.topbar__left i { color: var(--blue); }
.topbar__right { display: flex; gap: 12px; }
.topbar__right a { color: rgba(255,255,255,.7); font-size: 1rem; transition: var(--tr); }
.topbar__right a:hover { color: var(--white); }

/* HEADER */
.header {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow: visible;
}
.header__inner { display: flex; align-items: center; gap: 20px; height: 72px; }

/* LOGO */
.logo { font-size: 1.35rem; font-weight: 700; color: var(--blue); white-space: nowrap; }
.logo strong { color: var(--blue); }
.logo--light { color: var(--white); }
.logo--light strong { color: var(--white); }

/* NAV */
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.has-drop { position: relative; }
.nav__link { display: flex; align-items: center; gap: 4px; padding: 8px 13px; border-radius: 8px; font-size: .87rem; font-weight: 500; color: var(--dark); transition: var(--tr); white-space: nowrap; }
.nav__link i { font-size: .65rem; }
.nav__link:hover, .nav__link.active { color: var(--blue); background: var(--blue-light); }
.dropdown { display: none; position: absolute; top: 100%; left: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 200px; z-index: 100; border: 1px solid #e8f0fe; overflow: hidden; }
.has-drop:hover .dropdown { display: block; }
.dropdown li a { display: block; padding: 11px 18px; font-size: .87rem; color: var(--dark); transition: var(--tr); }
.dropdown li a:hover { background: var(--blue-light); color: var(--blue); }
.header__actions { display: flex; align-items: center; gap: 10px; margin-left: 16px; }
.search-btn { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #e2e8f0; background: none; cursor: pointer; color: var(--dark); font-size: .9rem; display: flex; align-items: center; justify-content: center; transition: var(--tr); }
.search-btn:hover { border-color: var(--blue); color: var(--blue); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--dark); border-radius: 3px; transition: var(--tr); }

/* HERO */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; margin-top: -20px; padding-top: 20px; z-index: 1; }
.hero__scallop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: radial-gradient(circle at 10px 0, transparent 18px, #fff 19px) -10px 0 / 20px 20px repeat-x;
  z-index: 10;
  pointer-events: none;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero__overlay { position: absolute; inset: 0; background: rgba(10,20,60,.45); }
.hero__wave-top { position: absolute; top: 0; left: 0; right: 0; line-height: 0; z-index: 1; }
.hero__wave-top svg { width: 100%; height: 55px; }
.hero__wave-bottom { position: absolute; bottom: 0; left: 0; right: 0; line-height: 0; z-index: 1; }
.hero__wave-bottom svg { width: 100%; height: 80px; }
.hero__inner { position: relative; z-index: 2; display: flex; justify-content: flex-end; padding: 80px 24px; width: 100%; max-width: 1200px; margin: 0 auto; }
.hero__card { background: rgba(255,255,255,.93); backdrop-filter: blur(12px); border-radius: 24px; padding: 48px 40px; max-width: 400px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.hero__sun { font-size: 2.8rem; margin-bottom: 8px; }
.hero__tag { display: flex; align-items: center; justify-content: center; gap: 10px; color: #7c3aed; font-weight: 600; font-size: .9rem; margin-bottom: 14px; }
.hero__tag i { font-size: .35rem; }
.hero__title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; color: var(--dark); line-height: 1.2; margin-bottom: 14px; }
.hero__title em { font-style: normal; color: var(--blue); font-size: 1.25em; display: block; }
.hero__sub { font-size: .82rem; color: var(--text); margin-bottom: 26px; }

/* SERVICES */
.services { padding: 90px 0; background: var(--white); }
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.service-card { background: var(--white); border-radius: var(--radius); padding: 36px 24px; box-shadow: var(--shadow); border: 1px solid #eef2ff; transition: var(--tr); text-align: center; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card__img { width: 88px; height: 88px; border-radius: 50%; background: var(--blue-light); margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.service-card__img img { width: 68px; height: 68px; object-fit: contain; }
.service-card__img--icon i { font-size: 2.2rem; color: var(--blue); }
.service-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.service-card p { font-size: .87rem; color: var(--text); }

/* ABOUT */
.about { padding: 90px 0; background: var(--light); }
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about__image { position: relative; }
.about__image img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.about__badge { position: absolute; bottom: -18px; right: -18px; background: var(--blue); color: var(--white); border-radius: var(--radius); padding: 18px 22px; text-align: center; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .82rem; line-height: 1.5; }
.about__badge-num { display: block; font-size: 2rem; font-weight: 800; line-height: 1; }
.about__content .section-tag { margin-bottom: 10px; }
.about__content .section-title { margin-bottom: 18px; }
.about__content p { margin-bottom: 14px; font-size: .92rem; }
.proceso { display: flex; flex-direction: column; gap: 12px; margin: 26px 0; }
.proceso__item { display: flex; align-items: center; gap: 16px; background: var(--white); border-radius: 10px; padding: 14px 18px; box-shadow: var(--shadow); }
.proceso__num { font-size: 1.4rem; font-weight: 800; color: var(--blue); min-width: 36px; }
.proceso__item p { font-weight: 600; color: var(--dark); margin: 0; font-size: .9rem; }

/* LEVELS */
.levels { padding: 90px 0; background: var(--white); }
.levels__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 20px; }
.level-card { border: 2px solid #e8f0fe; border-radius: var(--radius); padding: 26px 18px; text-align: center; transition: var(--tr); background: var(--white); }
.level-card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-4px); }
.level-card--active { background: var(--blue); border-color: var(--blue); color: var(--white); }
.level-card--active h3 { color: var(--white) !important; }
.level-card--active li { color: rgba(255,255,255,.85) !important; }
.level-card--active .level-card__link { color: var(--white); }
.level-card--active .level-card__num { color: rgba(255,255,255,.25); }
.level-card--active li i { color: rgba(255,255,255,.7) !important; }
.level-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.level-card__num { font-size: 1.9rem; font-weight: 800; color: #dde6f7; line-height: 1; }
.level-card__emoji { font-size: 1.9rem; }
.level-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 14px; }
.level-card ul { text-align: left; display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.level-card li { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--text); }
.level-card li i { color: var(--blue); width: 14px; }
.level-card__link { font-size: .82rem; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 5px; transition: var(--tr); }
.level-card__link:hover { gap: 9px; }

/* NEWS */
.news { padding: 90px 0; background: var(--light); }
.news__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.news-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--tr); }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-card__img { position: relative; height: 210px; overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: var(--tr); }
.news-card:hover .news-card__img img { transform: scale(1.05); }
.news-card__cat { position: absolute; top: 14px; left: 14px; background: var(--blue); color: var(--white); font-size: .72rem; font-weight: 600; padding: 4px 12px; border-radius: 50px; }
.news-card__body { padding: 22px; }
.news-card__meta { display: flex; gap: 16px; font-size: .77rem; color: #999; margin-bottom: 10px; }
.news-card__meta i { color: var(--blue); margin-right: 3px; }
.news-card__body h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 14px; line-height: 1.4; }
.news-card__body h3 a:hover { color: var(--blue); }
.news-card__link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; font-size: .85rem; transition: var(--tr); }
.news-card__link:hover { gap: 10px; }

/* CONTACT */
.contact { padding: 90px 0; position: relative; overflow: hidden; }
.contact__bg { position: absolute; inset: 0; background: linear-gradient(135deg, #1a1a2e 0%, #1a73e8 100%); }
.contact__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact__info .section-title { margin-bottom: 14px; }
.contact__sub { color: rgba(255,255,255,.75); margin-bottom: 30px; font-size: .9rem; }
.contact__details { display: flex; flex-direction: column; gap: 18px; }
.contact__item { display: flex; align-items: flex-start; gap: 14px; color: rgba(255,255,255,.85); font-size: .9rem; }
.contact__item-icon { width: 38px; height: 38px; background: rgba(255,255,255,.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact__item-icon i { color: var(--white); font-size: .95rem; }
.contact__item a { color: rgba(255,255,255,.85); transition: var(--tr); }
.contact__item a:hover { color: var(--white); }
.contact__form-wrap { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-lg); }
.contact__form h3 { font-size: 1.4rem; font-weight: 700; color: var(--dark); margin-bottom: 22px; }
.form-group { margin-bottom: 14px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 13px 16px; border: 2px solid #e8f0fe; border-radius: 10px; font-family: 'Poppins', sans-serif; font-size: .88rem; color: var(--dark); transition: var(--tr); background: var(--white); outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; }
.form-success { display: none; margin-top: 14px; padding: 13px; background: #d1fae5; color: #065f46; border-radius: 10px; font-weight: 600; text-align: center; font-size: .9rem; }
.form-success.show { display: block; }

/* FOOTER */
.footer { background: #0f1629; color: rgba(255,255,255,.65); padding: 64px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.8fr 1fr 1.4fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.footer__brand p { margin-top: 10px; font-size: .85rem; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: .95rem; transition: var(--tr); }
.footer__social a:hover { background: var(--blue); transform: translateY(-2px); }
.footer__links h4, .footer__news-col h4, .footer__contact-col h4 { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: 18px; }
.footer__links ul { display: flex; flex-direction: column; gap: 9px; }
.footer__links a { font-size: .85rem; transition: var(--tr); }
.footer__links a:hover { color: var(--white); padding-left: 4px; }
.footer__news { display: flex; flex-direction: column; gap: 14px; }
.footer__news a { display: flex; flex-direction: column; gap: 3px; font-size: .83rem; transition: var(--tr); }
.footer__news a:hover { color: var(--white); }
.footer__news-date { color: var(--blue); font-size: .75rem; font-weight: 600; }
.footer__contact-list { display: flex; flex-direction: column; gap: 12px; }
.footer__contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .83rem; }
.footer__contact-list i { color: var(--blue); margin-top: 3px; min-width: 14px; }
.footer__contact-list a { color: rgba(255,255,255,.65); transition: var(--tr); }
.footer__contact-list a:hover { color: var(--white); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 18px 0; text-align: center; font-size: .8rem; }

/* WHATSAPP FLOAT */
.whatsapp-float { position: fixed; bottom: 26px; right: 26px; width: 58px; height: 58px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; color: var(--white); box-shadow: 0 4px 20px rgba(37,211,102,.5); z-index: 999; transition: var(--tr); animation: wapulse 2.5s infinite; }
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes wapulse { 0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.5); } 50% { box-shadow: 0 4px 40px rgba(37,211,102,.8); } }

/* ANIMATIONS */
.fade-up { opacity: 0; transform: translateY(26px); transition: opacity .55s ease, transform .55s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.service-card:nth-child(2) { transition-delay: .08s; }
.service-card:nth-child(3) { transition-delay: .16s; }
.service-card:nth-child(4) { transition-delay: .24s; }
.level-card:nth-child(2) { transition-delay: .08s; }
.level-card:nth-child(3) { transition-delay: .16s; }
.level-card:nth-child(4) { transition-delay: .24s; }
.level-card:nth-child(5) { transition-delay: .32s; }
.news-card:nth-child(2) { transition-delay: .1s; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .about__inner { gap: 48px; }
  .contact__inner { gap: 48px; }
}
@media (max-width: 768px) {
  .topbar__addr { display: none; }
  .nav { display: none; position: fixed; inset: 0; background: var(--dark); flex-direction: column; justify-content: center; align-items: center; z-index: 999; }
  .nav.open { display: flex; }
  .nav__list { flex-direction: column; gap: 6px; }
  .nav__link { font-size: 1.1rem; color: var(--white); padding: 12px 24px; }
  .nav__link:hover { background: rgba(255,255,255,.1); color: var(--white); }
  .dropdown { position: static; box-shadow: none; background: rgba(255,255,255,.05); border: none; }
  .dropdown li a { color: rgba(255,255,255,.75); }
  .header__actions .search-btn { display: none; }
  .hamburger { display: flex; z-index: 1000; }
  .hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .hero__inner { justify-content: center; }
  .hero__card { border-radius: var(--radius); padding: 40px 28px; }
  .about__inner { grid-template-columns: 1fr; }
  .about__badge { right: 10px; bottom: 10px; }
  .contact__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .services__grid { grid-template-columns: 1fr; }
  .levels__grid { grid-template-columns: 1fr 1fr; }
  .news__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .contact__form-wrap { padding: 24px; }
}
