@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

:root {
  --bg:          #060e14;
  --bg-card:     #0c1a22;
  --teal:        #0fc4c4;
  --teal-mid:    #0a9a9a;
  --teal-deep:   #054f5a;
  --teal-glow:   rgba(15,196,196,.13);
  --teal-glow2:  rgba(15,196,196,.06);
  --text:        #e8eef2;
  --muted:       #7a9aaa;
  --dim:         #3a5060;
  --border:      rgba(15,196,196,.18);
  --border-dim:  rgba(255,255,255,.07);
  --radius:      20px;
  --ease:        cubic-bezier(.22,1,.36,1);
  --font-display:'Cormorant Garamond', Georgia, serif;
  --font-body:   'DM Sans', system-ui, sans-serif;
  /* legacy aliases */
  --gray-100: #e8eef2;
  --gray-300: #7a9aaa;
  --gray-500: #3a5060;
  --white:    #e8eef2;
  /* light mode specific */
  --input-bg:    #0d1e28;
  --input-border: rgba(255,255,255,.14);
  --nav-scrolled-bg: rgba(6,14,20,.9);
  --nav-mobile-bg: rgba(6,14,20,.97);
  --hero-grid-color: rgba(15,196,196,.04);
  --shadow-color: rgba(0,0,0,.65);
  --btn-primary-bg: #fff;
  --btn-primary-text: #060e14;
  --option-bg: #0d1e28;
  --option-text: #e8eef2;
}

/* ── Light Theme ── */
[data-theme="light"] {
  --bg:          #f4f6f8;
  --bg-card:     #ffffff;
  --teal:        #0a9a9a;
  --teal-mid:    #088a8a;
  --teal-deep:   #065e66;
  --teal-glow:   rgba(10,154,154,.1);
  --teal-glow2:  rgba(10,154,154,.05);
  --text:        #0e1e28;
  --muted:       #4a6070;
  --dim:         #8a9daa;
  --border:      rgba(10,154,154,.2);
  --border-dim:  rgba(0,0,0,.08);
  --gray-100:    #0e1e28;
  --gray-300:    #4a6070;
  --gray-500:    #8a9daa;
  --white:       #0e1e28;
  --input-bg:    #eef2f5;
  --input-border: rgba(0,0,0,.12);
  --nav-scrolled-bg: rgba(244,246,248,.92);
  --nav-mobile-bg: rgba(244,246,248,.97);
  --hero-grid-color: rgba(10,154,154,.06);
  --shadow-color: rgba(0,0,0,.08);
  --btn-primary-bg: #0e1e28;
  --btn-primary-text: #f4f6f8;
  --option-bg: #eef2f5;
  --option-text: #0e1e28;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  transition: background .5s var(--ease), color .5s var(--ease);
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--teal-deep); border-radius: 3px; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.7rem); }
p  { color: var(--muted); line-height: 1.75; font-weight: 300; }
a  { color: inherit; text-decoration: none; }
strong { color: var(--text); font-weight: 600; }

/* ── Layout ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
section { padding: 100px 0; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }
.text-center { text-align: center; }

/* ── Accent ── */
.accent {
  background: linear-gradient(120deg, var(--teal), #7eeaea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--teal-glow2);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 22px;
}
.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.7); }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all .3s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); }
.btn-primary:hover { background: var(--teal); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(15,196,196,.35); }

.btn-outline { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,.22); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all .4s var(--ease), background .5s var(--ease);
}
/* FIX: pointer-events:none so ::before never blocks clicks/inputs */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--teal-glow2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none!important;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--border); transform: translateY(-4px); box-shadow: 0 0 50px rgba(15,196,196,.12); }

/* ── Section headings ── */
.section-title { text-align: center; margin-bottom: 14px; }
.section-sub   { text-align: center; max-width: 540px; margin: 0 auto 56px; }

/* ── Check list ── */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .93rem;
  color: var(--text);
}
.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 19px; height: 19px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid var(--teal-mid);
  background: var(--teal-glow);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 10l4 4 6-7' stroke='%230fc4c4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: cover;
}

/* ── Fade-up: visible by default, JS enhances ── */
.fade-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
/* Only hide when JS has loaded and added class to body */
.js-ready .fade-up        { opacity: 0; transform: translateY(26px); }
.js-ready .fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Glow blob ── */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

#contacto .form-container::before, 
.contact-form::before { /* Ajusta el selector al que uses en tu CSS */
    pointer-events: none;
    z-index: 0; /* Asegúrate de que esté por debajo */
}

#contacto input, 
#contacto textarea, 
#contacto button {
    position: relative;
    z-index: 10; /* Forzamos a los campos a estar arriba */
}