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

:root {
  --cream: #F7F3EE;
  --warm-white: #FDFAF7;
  --sage: #7A9E87;
  --sage-light: #B5CEB9;
  --sage-dark: #4E7460;
  --text: #2C2C2C;
  --text-muted: #7A7570;
  --border: #E0D9D0;
  --accent: #C4875A;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--text);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.4rem 4rem;
  background: rgba(253,250,247,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; font-weight: 400; letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.82rem; font-weight: 400; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--sage-dark); }
.nav-cta {
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--warm-white);
  background: var(--sage-dark); border: none;
  padding: 0.65rem 1.6rem; border-radius: 2rem;
  cursor: pointer; text-decoration: none; transition: background 0.2s;
}
.nav-cta:hover { background: var(--sage); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  padding-top: 80px;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 4rem 6rem 5rem;
  background: var(--warm-white);
  animation: fadeUp 1s ease both;
}
.hero-tag {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sage);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 5vw, 4.8rem);
  font-weight: 300; line-height: 1.1;
  color: var(--text); margin-bottom: 1.2rem;
}
.hero-title em { font-style: italic; color: var(--sage-dark); }
.hero-subtitle {
  font-size: 1.05rem; font-weight: 300; line-height: 1.75;
  color: var(--text-muted); max-width: 420px;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--sage-dark); color: var(--warm-white);
  padding: 0.9rem 2.2rem; border-radius: 3rem;
  font-size: 0.9rem; font-weight: 500; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--sage); transform: translateY(-1px); }
.btn-secondary {
  color: var(--sage-dark); font-size: 0.9rem; font-weight: 400;
  text-decoration: none; display: flex; align-items: center; gap: 0.4rem;
}
.btn-secondary:hover { color: var(--sage); }

.hero-right {
  position: relative; background: var(--cream);
  overflow: hidden;
  animation: fadeIn 1.2s ease both 0.3s;
}
.hero-bg-shape {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--sage-light) 0%, var(--cream) 60%);
}
.hero-circle {
  position: absolute; bottom: -80px; right: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  background: var(--sage); opacity: 0.12;
}
.hero-circle-2 {
  position: absolute; top: 60px; left: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  border: 1px solid var(--sage-light); opacity: 0.5;
}
.hero-quote {
  position: absolute; bottom: 3rem; left: 3rem; right: 3rem;
  background: rgba(253,250,247,0.88); backdrop-filter: blur(8px);
  border-left: 3px solid var(--sage);
  padding: 1.5rem 2rem; border-radius: 0 1rem 1rem 0;
}
.hero-quote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-style: italic; font-weight: 300;
  color: var(--text); line-height: 1.5;
}
.hero-quote span {
  display: block; margin-top: 0.5rem;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--sage-dark);
}
.hero-stats {
  position: absolute; top: 3rem; right: 3rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.stat {
  background: white; border-radius: 1rem;
  padding: 1rem 1.4rem; text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 600; color: var(--sage-dark);
}
.stat-label {
  font-size: 0.7rem; font-weight: 400; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
}

/* ── SECTION BASE ── */
section { padding: 6rem 5rem; }
.section-tag {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sage);
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 300; line-height: 1.2;
  color: var(--text);
}
.section-title em { font-style: italic; color: var(--sage-dark); }

/* ── SOBRE MÍ ── */
#sobre-mi {
  background: var(--cream);
  display: grid; grid-template-columns: 1fr 1fr; gap: 6rem;
  align-items: start;
}
.about-text { }
.about-text .section-title { margin-bottom: 1.5rem; }
.about-text p {
  font-size: 1rem; line-height: 1.85; color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.about-text p strong { color: var(--text); font-weight: 500; }
.about-values {
  display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem;
}
.value-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 1.2rem; background: white;
  border-radius: 0.75rem; border: 1px solid var(--border);
}
.value-icon {
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--sage-light); display: flex;
  align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.value-text h4 {
  font-size: 0.9rem; font-weight: 500; color: var(--text);
  margin-bottom: 0.2rem;
}
.value-text p {
  font-size: 0.82rem; line-height: 1.5; color: var(--text-muted);
  margin: 0;
}
.about-image-side {
  position: relative;
  padding-top: 4rem;
}
.about-card {
  background: white; border-radius: 2rem;
  padding: 2.5rem; border: 1px solid var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,0.06);
  margin-top: 5rem;
}
.about-portrait-wrap {
  display: flex; justify-content: center; margin-bottom: 2rem;
}
.about-portrait {
  width: 100%; max-width: 260px; height: 320px;
  object-fit: cover; object-position: center top;
  border-radius: 1.5rem;
  border: 5px solid var(--sage-light);
  box-shadow: 0 10px 40px rgba(78,116,96,0.18);
}
.about-card {
  background: white; border-radius: 2rem;
  padding: 2.5rem; border: 1px solid var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,0.06);
}
.about-card-header {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
.avatar {
  width: 4rem; height: 4rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--sage-light), var(--sage));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; color: white; font-weight: 400;
}
.avatar-photo {
  width: 5rem; height: 5rem; border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 3px solid var(--sage-light);
  box-shadow: 0 2px 12px rgba(78,116,96,0.18);
  flex-shrink: 0;
}
.about-card-name h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 400; color: var(--text);
}
.about-card-name span {
  font-size: 0.8rem; color: var(--sage-dark); font-weight: 400;
}
.credentials { list-style: none; }
.credentials li {
  padding: 0.7rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.88rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 0.6rem;
}
.credentials li:last-child { border-bottom: none; }
.credentials li::before {
  content: '✓'; color: var(--sage); font-weight: 600; font-size: 0.9rem;
}

/* ── ESPECIALIDADES ── */
#especialidades { background: var(--warm-white); }
.especialidades-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 3.5rem;
}
.especialidades-intro {
  font-size: 0.95rem; line-height: 1.7; color: var(--text-muted);
  max-width: 360px;
}
.especialidades-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.especialidad-card {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 1.5rem; padding: 2.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.especialidad-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--sage), var(--sage-light));
  transform: scaleX(0); transition: transform 0.3s;
  transform-origin: left;
}
.especialidad-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.especialidad-card:hover::before { transform: scaleX(1); }
.card-emoji { font-size: 2rem; margin-bottom: 1rem; }
.especialidad-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 400; margin-bottom: 0.8rem;
  color: var(--text);
}
.especialidad-card p {
  font-size: 0.9rem; line-height: 1.75; color: var(--text-muted);
}
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.2rem; }
.tag {
  font-size: 0.72rem; font-weight: 400; letter-spacing: 0.04em;
  padding: 0.3rem 0.8rem; border-radius: 2rem;
  background: white; border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ── CÓMO FUNCIONA ── */
#como-funciona {
  background: var(--sage-dark);
  color: white;
}
#como-funciona .section-tag { color: var(--sage-light); }
#como-funciona .section-title { color: white; }
#como-funciona .section-title em { color: var(--sage-light); }
.pasos-header { margin-bottom: 3.5rem; }
.pasos-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.paso {
  position: relative;
}
.paso-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem; font-weight: 300;
  color: rgba(255,255,255,0.15);
  line-height: 1; margin-bottom: 0.5rem;
}
.paso h4 {
  font-size: 1rem; font-weight: 500; color: white;
  margin-bottom: 0.6rem;
}
.paso p {
  font-size: 0.88rem; line-height: 1.7;
  color: rgba(255,255,255,0.65);
}
.paso-line {
  position: absolute; top: 2rem; right: -1rem;
  width: 2rem; height: 1px;
  background: rgba(255,255,255,0.2);
}
.paso:last-child .paso-line { display: none; }

/* ── SESIÓN ONLINE ── */
#online {
  background: var(--cream);
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem;
  align-items: center;
}
.online-text .section-title { margin-bottom: 1.2rem; }
.online-text > p {
  font-size: 0.95rem; line-height: 1.85; color: var(--text-muted);
  margin-bottom: 2rem;
}
.online-features { display: flex; flex-direction: column; gap: 0.8rem; }
.online-feature {
  display: flex; gap: 0.8rem; align-items: flex-start;
  padding: 0.9rem 1rem; background: white;
  border-radius: 0.75rem; border: 1px solid var(--border);
}
.online-feature-icon {
  color: var(--sage); font-size: 1rem; margin-top: 0.1rem;
}
.online-feature-text { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }
.online-feature-text strong { color: var(--text); }

.online-visual {
  background: white; border-radius: 2rem;
  padding: 2rem; border: 1px solid var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,0.06);
}
.video-mock {
  background: linear-gradient(135deg, var(--sage-dark), var(--sage));
  border-radius: 1.2rem; aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; position: relative; overflow: hidden;
}
.video-mock::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.1), transparent);
}
.play-btn {
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: rgba(255,255,255,0.2); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; z-index: 1;
  border: 1px solid rgba(255,255,255,0.3);
}
.video-label {
  font-size: 0.75rem; color: white; text-align: center;
  font-weight: 400; letter-spacing: 0.06em; z-index: 1;
  position: absolute; bottom: 1rem; left: 0; right: 0;
  text-align: center;
}
.session-info {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.session-info-item {
  padding: 1rem; background: var(--cream);
  border-radius: 0.75rem; text-align: center;
}
.session-info-item .label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); margin-bottom: 0.3rem;
}
.session-info-item .value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; color: var(--sage-dark); font-weight: 400;
}

/* ── CONTACTO ── */
#contacto {
  background: var(--sage-dark);
  padding: 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  text-align: left;
}
.contacto-left { }
#contacto .section-tag { color: var(--sage-light); }
#contacto .section-title { color: white; margin-bottom: 1rem; }
#contacto .section-title em { color: var(--sage-light); }
.contacto-sub {
  font-size: 1rem; line-height: 1.7; color: rgba(255,255,255,0.65);
  margin-bottom: 2.5rem;
}
.contacto-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 2rem; padding: 2.5rem;
}
.contacto-row {
  display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem;
}
/* Foto lateral */
.contacto-photo-wrap {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  height: 520px;
}
.contacto-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 15%;
}
.contacto-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(78,116,96,0.80) 0%,
    rgba(78,116,96,0.20) 45%,
    transparent 70%
  );
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}
.contacto-photo-caption {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 300;
  color: white;
  line-height: 1.5;
}
@media (max-width: 900px) {
  #contacto {
    grid-template-columns: 1fr;
    padding: 5rem 2rem;
    gap: 3rem;
  }
  .contacto-photo-wrap { height: 320px; }
  #contacto .section-tag,
  #contacto .section-title,
  .contacto-sub { text-align: center; }
}
.input-group { display: flex; flex-direction: column; gap: 0.4rem; }
.input-group label {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
}
.input-group input, .input-group textarea {
  padding: 0.85rem 1rem; border-radius: 0.75rem;
  border: 1px solid var(--border); background: white;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
  color: var(--text); outline: none; transition: border-color 0.2s;
  resize: none;
}
.input-group input:focus, .input-group textarea:focus {
  border-color: var(--sage);
}
.submit-btn {
  width: 100%; padding: 1rem; background: var(--sage-dark);
  color: white; border: none; border-radius: 3rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  font-weight: 500; cursor: pointer; transition: background 0.2s;
}
.submit-btn:hover { background: var(--sage); }
.contacto-alt {
  margin-top: 1.5rem; font-size: 0.85rem; color: rgba(255,255,255,0.45);
  text-align: center;
}
.contacto-alt a { color: var(--sage-light); text-decoration: none; }

/* ── FOOTER ── */
footer {
  background: var(--text); color: rgba(255,255,255,0.6);
  padding: 3rem 5rem;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; color: white; font-weight: 300;
}
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  font-size: 0.8rem; color: rgba(255,255,255,0.5);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: white; }
.footer-copy { font-size: 0.78rem; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-right { min-height: 300px; display: none; }
  .hero-left { padding: 5rem 2rem 4rem; }
  section { padding: 4rem 2rem; }
  #sobre-mi, #online { grid-template-columns: 1fr; gap: 3rem; }
  .especialidades-grid { grid-template-columns: 1fr; }
  .pasos-grid { grid-template-columns: 1fr 1fr; }
  .especialidades-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  footer { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* ── CAMPO HINT Y ERROR ── */
.field-hint {
  font-size: 0.72rem; color: rgba(255,255,255,0.35);
  margin-top: 0.2rem;
}
.input-error input, .input-error textarea {
  border-color: #e07a5f !important;
  background: #fff8f6 !important;
}
.input-error .field-error-msg {
  font-size: 0.75rem; color: #e07a5f;
  margin-top: 0.25rem; display: block;
}

/* ── MENSAJES FORMULARIO ── */
#form-mensaje {
  display: none;
  margin-top: 1.2rem;
  padding: 0.9rem 1.2rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}
.mensaje-ok {
  background: #e8f4ed;
  color: var(--sage-dark);
  border: 1px solid var(--sage-light);
  font-weight: 500;
}
.mensaje-error {
  background: #fdf0ea;
  color: #9b4e2a;
  border: 1px solid #e8c4a8;
}
.mensaje-error a {
  color: #9b4e2a;
  font-weight: 600;
  text-decoration: underline;
}
