/* ============================================================
   base.css — Reset, tipografía y componentes comunes
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Exo 2', sans-serif;
  background: var(--bg-main);
  color: var(--text);
  overflow-x: hidden;
}

/* ── NAVBAR ─────────────────────────────────── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(21,101,192,0.15);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 70px;
  box-shadow: 0 2px 16px rgba(13,31,78,0.08);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 46px; border-radius: 50%; }
.nav-logo span {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.25rem; font-weight: 700;
  color: var(--navy); line-height: 1.1;
}
.nav-logo span em { color: var(--cyan); font-style: normal; }
.nav-logo-box {
  width: 46px; height: 46px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.1rem; color: #fff;
}
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--navy);
  font-family: 'Rajdhani', sans-serif; font-weight: 600;
  font-size: 1rem; letter-spacing: .06em;
  transition: color .25s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--cyan); transition: width .3s;
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a:hover::after { width: 100%; }
.nav-links .nav-btn {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff !important; padding: 8px 20px; border-radius: 6px;
  font-weight: 700; box-shadow: 0 3px 12px rgba(21,101,192,0.3); transition: all .3s;
}
.nav-links .nav-btn::after { display: none; }
.nav-links .nav-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(21,101,192,0.4); }
.nav-links .nav-back { color: var(--silver) !important; font-size: .9rem; }
.nav-links .nav-back:hover { color: var(--navy) !important; }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; gap: 4px; }
.arrow-down { font-size: .75rem; transition: transform .25s; }
.nav-dropdown:hover .arrow-down { transform: rotate(180deg); }
.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%); background: #fff;
  border: 1px solid rgba(21,101,192,0.15); border-radius: 12px;
  box-shadow: 0 8px 32px rgba(13,31,78,0.14); min-width: 240px;
  list-style: none; overflow: hidden; z-index: 200;
  padding: 6px 0; animation: dropIn .2s ease;
}
@keyframes dropIn { from{opacity:0;transform:translateX(-50%) translateY(-8px)} to{opacity:1;transform:translateX(-50%) translateY(0)} }
.dropdown-menu::before {
  content: ''; position: absolute; top: -7px; left: 50%;
  width: 14px; height: 14px; background: #fff;
  border-left: 1px solid rgba(21,101,192,0.15); border-top: 1px solid rgba(21,101,192,0.15);
  transform: translateX(-50%) rotate(45deg);
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; text-decoration: none; color: var(--navy); transition: background .2s;
}
.dropdown-menu li a:hover { background: #f0f6ff; color: var(--blue); }
.dropdown-menu li a::after { display: none; }
.dd-icon { font-size: 1.3rem; flex-shrink: 0; }
.dd-text { display: flex; flex-direction: column; line-height: 1.2; }
.dd-text strong { font-family: 'Rajdhani', sans-serif; font-size: 1rem; font-weight: 700; }
.dd-text small { font-size: .78rem; color: var(--silver); margin-top: 1px; }
.dropdown-menu li:not(:last-child) { border-bottom: 1px solid rgba(21,101,192,0.08); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 26px; height: 2px; background: var(--cyan); border-radius: 2px; transition: .3s; }

/* ── SECTIONS ────────────────────────────────── */
section { padding: 90px 5%; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  font-family: 'Rajdhani', sans-serif; font-size: .8rem; font-weight: 700;
  letter-spacing: .18em; color: var(--cyan); text-transform: uppercase; margin-bottom: .5rem;
}
h2 {
  font-family: 'Rajdhani', sans-serif; font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700; color: var(--navy); margin-bottom: .8rem;
}
h2 span { color: var(--blue); }
.section-line {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  margin: 0 auto; border-radius: 3px;
}

/* ── CARDS COMUNES ──────────────────────────── */
.service-card, .modulo-card, .dest-card, .func-item, .testimonial-card {
  background: var(--white);
  border: 1px solid rgba(21,101,192,0.15);
  border-radius: 12px;
  transition: all .35s;
  box-shadow: 0 2px 12px rgba(13,31,78,0.07);
  position: relative; overflow: hidden;
}
.service-card::before, .modulo-card::before, .dest-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0; transition: opacity .35s;
}
.service-card:hover, .modulo-card:hover, .dest-card:hover {
  transform: translateY(-6px); border-color: rgba(21,101,192,0.35); box-shadow: var(--shadow);
}
.service-card:hover::before, .modulo-card:hover::before, .dest-card:hover::before { opacity: 1; }

/* ── FORMS ──────────────────────────────────── */
.contact-wrapper {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; max-width: 1100px; margin: 0 auto; align-items: start;
}
.contact-info h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--navy); }
.contact-item { display: flex; align-items: center; gap: 14px; margin-bottom: 1.4rem; }
.contact-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(21,101,192,0.08); border: 1px solid rgba(21,101,192,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.contact-item-text span { color: var(--silver); font-size: .85rem; display: block; }
.contact-item-text strong { color: var(--navy); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
label { font-family: 'Rajdhani', sans-serif; font-size: .9rem; font-weight: 600; color: var(--navy); letter-spacing: .05em; }
input, textarea, select {
  background: var(--bg-alt); border: 1px solid rgba(21,101,192,0.2);
  border-radius: 8px; color: var(--navy); font-family: 'Exo 2', sans-serif;
  font-size: .95rem; padding: 12px 16px; outline: none; transition: border-color .25s;
}
input:focus, textarea:focus, select:focus { border-color: var(--blue); }
textarea { resize: vertical; min-height: 130px; }
select option { background: white; color: var(--navy); }
.btn-send {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--white); border: none; padding: 14px; border-radius: 8px;
  font-family: 'Rajdhani', sans-serif; font-size: 1.05rem; font-weight: 700;
  letter-spacing: .08em; cursor: pointer; transition: all .3s;
}
.btn-send:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(41,182,246,0.4); }

/* ── FOOTER ─────────────────────────────────── */
footer {
  background: var(--navy); border-top: 1px solid rgba(21,101,192,0.2);
  text-align: center; padding: 2rem 5%;
}
footer p { color: rgba(255,255,255,0.7); font-size: .88rem; }
footer span { color: var(--cyan2); }
footer a { color: var(--cyan2); text-decoration: none; }
footer a:hover { color: #fff; }

/* ── FLOAT BUTTONS ──────────────────────────── */
.float-buttons {
  position: fixed; bottom: 28px; right: 24px;
  display: flex; flex-direction: column; gap: 14px; z-index: 999;
}
.float-btn {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  border-radius: 50px; padding: 13px 20px 13px 16px;
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: .95rem;
  color: #fff; box-shadow: 0 4px 18px rgba(0,0,0,0.22);
  transition: transform .25s, box-shadow .25s, padding .3s; overflow: hidden; max-width: 54px;
}
.float-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.float-btn span { white-space: nowrap; opacity: 0; max-width: 0; transition: opacity .3s, max-width .3s; overflow: hidden; }
.float-btn:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 8px 28px rgba(0,0,0,0.28); max-width: 200px; padding-right: 22px; }
.float-btn:hover span { opacity: 1; max-width: 120px; }
.whatsapp { background: #25D366; } .whatsapp:hover { background: #1ebe5d; }
.facebook  { background: #1877F2; } .facebook:hover  { background: #0f67e0; }

/* ── RESPONSIVE ─────────────────────────────── */
@media(max-width: 900px) {
  .about-grid, .contact-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-text h2, .about-text .section-line { text-align: center; margin-left: auto; }
  .nav-links {
    display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0;
    background: rgba(255,255,255,0.98); padding: 1.5rem 5%; gap: 1.2rem;
    border-bottom: 1px solid rgba(21,101,192,.15); box-shadow: 0 4px 16px rgba(13,31,78,.1);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .dropdown-menu { position: static; transform: none; box-shadow: none; border: none; border-left: 3px solid rgba(21,101,192,0.2); border-radius: 0; margin-left: 1rem; padding: 0; min-width: unset; animation: none; display: none; }
  .dropdown-menu::before { display: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu li a { padding: 8px 12px; }
}
@media(max-width: 600px) {
  .float-buttons { bottom: 18px; right: 14px; gap: 10px; }
  .float-btn { padding: 11px 14px; }
  .hero-btns, .demo-btns { flex-direction: column; }
}
