/* ===== RESET / TOKENS ===== */
:root {
  --primary: #0a7d5e;
  --primary-dark: #075e46;
  --primary-light: #0fa37c;
  --accent: #ffb84d;
  --ink: #10231e;
  --muted: #5c6f6a;
  --bg: #f5faf8;
  --bg-alt: #ffffff;
  --glass: rgba(255, 255, 255, 0.08);
  --radius: 20px;
  --shadow: 0 20px 50px rgba(7, 94, 70, 0.15);
  --shadow-sm: 0 10px 30px rgba(7, 94, 70, 0.1);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.2; }

img { max-width: 100%; display: block; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ===== 3D helpers ===== */
.tilt {
  transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}
.tilt.floating {
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotateX(8deg) rotateY(-6deg); }
  50% { transform: translateY(-16px) rotateX(8deg) rotateY(-6deg); }
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245, 250, 248, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(7, 94, 70, 0.1);
}
.nav-inner {
  width: min(1120px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-weight: 800;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.brand-name { font-weight: 800; font-size: 1.25rem; color: var(--primary-dark); }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-weight: 600; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { width: 24px; height: 3px; background: var(--primary-dark); border-radius: 3px; }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid rgba(7, 94, 70, 0.1);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links a { padding: 14px 5%; border-top: 1px solid rgba(7, 94, 70, 0.08); }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 5% 80px;
  overflow: hidden;
  background:
    radial-gradient(at 20% 20%, rgba(15, 163, 124, 0.25), transparent 50%),
    radial-gradient(at 80% 10%, rgba(255, 184, 77, 0.22), transparent 50%),
    linear-gradient(160deg, #ffffff, #e8f6f0);
}
.scene {
  position: absolute; inset: 0;
  perspective: 900px;
  pointer-events: none;
}
.scene-card {
  position: absolute;
  width: 90px; height: 120px;
  background: linear-gradient(140deg, var(--primary), var(--primary-dark));
  border-radius: 16px;
  box-shadow: 0 25px 40px rgba(7, 94, 70, 0.35);
  transform-style: preserve-3d;
  top: 22%;
  left: 8%;
  animation: spin 18s linear infinite;
}
.scene-card.gold {
  background: linear-gradient(140deg, var(--accent), #e89c2f);
  width: 80px; height: 110px;
  top: 60%;
  left: 74%;
  animation-duration: 22s;
  animation-direction: reverse;
}
.scene-card.pale {
  background: linear-gradient(140deg, #ffffff, #cfe9df);
  border: 2px solid var(--primary-light);
  width: 70px; height: 95px;
  top: 70%;
  left: 18%;
  animation-duration: 26s;
}
@keyframes spin {
  from { transform: rotateY(0deg) rotateZ(0deg) translateZ(0); }
  to { transform: rotateY(360deg) rotateZ(20deg) translateZ(60px); }
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }
.hero-badge {
  display: inline-block;
  background: var(--glass);
  border: 1px solid rgba(7, 94, 70, 0.25);
  color: var(--primary-dark);
  padding: 8px 18px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 24px;
  backdrop-filter: blur(6px);
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 20px; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 620px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--primary-dark); border: 2px solid var(--primary-dark); }
.btn-ghost:hover { background: rgba(7, 94, 70, 0.08); }
.btn-block { width: 100%; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.stat {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(7, 94, 70, 0.12);
  border-radius: 16px;
  padding: 18px 10px;
  backdrop-filter: blur(6px);
}
.stat strong { display: block; font-size: 1.6rem; color: var(--primary); }
.stat span { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 640px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }

/* ===== SECTIONS ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); }

/* ===== LEGAL CARD ===== */
.legal-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: center;
  background: var(--bg-alt);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 40px;
  border: 1px solid rgba(7, 94, 70, 0.1);
}
.legal-info h3 { font-size: 1.6rem; margin-bottom: 12px; color: var(--primary-dark); }
.legal-info p { color: var(--muted); margin-bottom: 16px; }
.legal-list { list-style: none; display: grid; gap: 10px; margin-bottom: 8px; }
.legal-list li { background: var(--bg); border-radius: 12px; padding: 12px 16px; }
.legal-list span { color: var(--muted); font-weight: 600; }
.legal-list b { color: var(--ink); }
.legal-note { font-size: 0.85rem; color: var(--accent); background: #fff7e8; border-radius: 10px; padding: 12px; }

.legal-badge { text-align: center; }
.badge-circle {
  width: 180px; height: 180px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  align-content: center;
  background: radial-gradient(circle at 30% 30%, var(--primary-light), var(--primary-dark));
  color: #fff;
  box-shadow: var(--shadow);
}
.badge-year { font-size: 3rem; font-weight: 800; line-height: 1; }
.badge-text { letter-spacing: 0.3em; font-size: 0.8rem; }
.legal-badge p { color: var(--muted); font-weight: 600; }
@media (max-width: 820px) { .legal-card { grid-template-columns: 1fr; } }

/* ===== CARDS (servicios) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(7, 94, 70, 0.08);
}
.card-icon { font-size: 2.4rem; margin-bottom: 14px; }
.card h3 { margin-bottom: 10px; color: var(--primary-dark); }
.card p { color: var(--muted); margin-bottom: 14px; }
.card ul { list-style: none; display: grid; gap: 8px; }
.card ul li { padding-left: 22px; position: relative; color: var(--ink); font-size: 0.95rem; }
.card ul li::before { content: "✔"; position: absolute; left: 0; color: var(--primary); }

/* ===== STEPS ===== */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}
.step {
  text-align: center;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(7, 94, 70, 0.08);
}
.step-3d {
  width: 84px; height: 84px;
  margin: 0 auto 14px;
  border-radius: 24px;
  background: linear-gradient(140deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: var(--shadow-sm);
  position: relative;
  transform-style: preserve-3d;
}
.step-num {
  position: absolute;
  top: -10px; left: -10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  font-weight: 800;
}
.step-emoji { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; transform: translateZ(30px); }
.step h3 { color: var(--primary-dark); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.95rem; }
.step-arrow { font-size: 2rem; color: var(--primary); font-weight: 800; text-align: center; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .step-arrow { transform: rotate(90deg); }
}

/* ===== SEDES ===== */
.sedes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.sede {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(7, 94, 70, 0.08);
}
.sede-map { font-size: 2.4rem; display: block; margin-bottom: 12px; }
.sede h3 { color: var(--primary-dark); margin-bottom: 8px; }
.sede p { color: var(--muted); font-size: 0.95rem; }
.sede-meta { font-size: 0.85rem; margin-top: 6px; }
.map-link { display: inline-block; margin-top: 14px; color: var(--primary); font-weight: 700; }
.placeholder-note { margin-top: 10px; font-size: 0.75rem; color: #b8871e; background: #fff6e0; border-radius: 8px; padding: 6px 10px; }
.center-note { text-align: center; max-width: 560px; margin: 20px auto 0; }

/* ===== ADVISORS ===== */
.advisors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.advisor {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(7, 94, 70, 0.08);
}
.advisor-avatar { font-size: 3rem; margin-bottom: 10px; }
.advisor h3 { color: var(--primary-dark); font-size: 1.05rem; margin-bottom: 4px; }
.advisor span { color: var(--muted); font-size: 0.9rem; }

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(7, 94, 70, 0.08);
}
.contact-form h3 { margin-bottom: 18px; color: var(--primary-dark); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(7, 94, 70, 0.2);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg);
}
.contact-form textarea { margin-bottom: 14px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-note { font-size: 0.8rem; color: #b8871e; margin-bottom: 14px; }
.form-success { color: var(--primary); font-weight: 700; text-align: center; margin-top: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ===== VIDEO ===== */
.video-frame {
  max-width: 820px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(7, 94, 70, 0.1);
}
.video-placeholder {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(at 30% 30%, rgba(15, 163, 124, 0.4), transparent 60%),
    linear-gradient(140deg, #0d3f33, #0a7d5e);
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff;
  gap: 12px;
  padding: 20px;
}
.play-btn {
  width: 84px; height: 84px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  font-size: 2rem;
  box-shadow: 0 10px 30px rgba(255, 184, 77, 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 184, 77, 0.5); }
  70% { box-shadow: 0 0 0 24px rgba(255, 184, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 184, 77, 0); }
}
.video-placeholder p small { opacity: 0.85; }

/* ===== CONTACTO ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.contact-item {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(7, 94, 70, 0.08);
}
.contact-item > span { font-size: 2.2rem; display: block; margin-bottom: 10px; }
.contact-item h3 { color: var(--muted); font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; }
.contact-item a b { color: var(--primary); }

.social-head { margin-top: 56px; }
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  border: 1px solid rgba(7, 94, 70, 0.12);
  border-radius: 100px;
  padding: 12px 20px;
  font-weight: 700;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

/* ===== FOOTER ===== */
.footer { background: #0d3f33; color: #d6efe6; margin-top: 40px; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 56px 0 40px;
}
.footer .brand-name { color: #fff; }
.footer-brand p { margin-top: 12px; font-size: 0.9rem; color: #9fd3c0; }
.footer-col h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.footer-col a, .footer-col span { display: block; color: #9fd3c0; font-size: 0.9rem; margin-bottom: 8px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 0; }
.footer-bottom .container { font-size: 0.85rem; color: #9fd3c0; }
@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; } }
