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

:root {
  --primary: #62006d;
  --primary-dark: #4a0052;
  --primary-light: #f3e5f5;
  --accent: #2cd7bd;
  --text: #1a1a1a;
  --text-light: #555;
  --bg: #fafafa;
  --white: #fff;
  --shadow: 0 2px 20px rgba(0,0,0,.08);
  --radius: 12px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
section { padding: 5rem 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== HEADER ===== */
.header {
  background: var(--white);
  box-shadow: 0 1px 10px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .8rem;
  padding-bottom: .8rem;
}
.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}
.logo span { color: var(--accent); }

/* Nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }
.nav ul { display: flex; gap: 1.8rem; }
.nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color .2s;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width .3s;
}
.nav a:hover, .nav a.active { color: var(--primary); }
.nav a:hover::after { width: 100%; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.hero .subtitle {
  font-size: 1.2rem;
  opacity: .9;
  font-style: italic;
  margin-bottom: 2rem;
}
.hero .tagline {
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  opacity: .85;
  line-height: 1.8;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.btn-primary { background: var(--accent); color: #1a1a1a; font-weight: 700; }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.1); color: var(--white); }

/* ===== SECTION TITLES ===== */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: .5rem;
}
.section-title p {
  color: var(--text-light);
  font-size: 1.05rem;
}
.section-title .line {
  width: 60px; height: 3px;
  background: var(--accent);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ===== SOBRE MÍ ===== */
.sobre-mi { background: var(--white); }
.sobre-mi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.sobre-mi-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.sobre-mi-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.sobre-mi-text p { margin-bottom: 1rem; color: var(--text-light); }
.sobre-mi-text .highlight {
  background: var(--primary-light);
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  margin-top: 1.5rem;
  font-weight: 500;
  color: var(--primary-dark);
}

/* ===== SERVICIOS ===== */
.servicios { background: var(--bg); }
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.servicio-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  text-align: center;
}
.servicio-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.servicio-icon {
  width: 70px; height: 70px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.8rem;
}
.servicio-card h3 {
  font-size: 1.15rem;
  margin-bottom: .8rem;
  color: var(--primary-dark);
}
.servicio-card p { font-size: .9rem; color: var(--text-light); }

/* ===== CÓMO AYUDA ===== */
.como-ayuda { background: var(--white); }
.ayuda-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.ayuda-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
}
.ayuda-item .num {
  flex-shrink: 0;
  width: 45px; height: 45px;
  background: var(--accent);
  color: #1a1a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}
.ayuda-item h4 { font-size: 1rem; margin-bottom: .3rem; color: var(--primary-dark); }
.ayuda-item p { font-size: .9rem; color: var(--text-light); }

/* ===== PATOLOGÍAS ===== */
.patologias { background: var(--bg); }
.patologias-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.patologia-tag {
  background: var(--white);
  padding: .8rem 1.2rem;
  border-radius: 8px;
  font-size: .9rem;
  color: var(--text-light);
  border-left: 3px solid var(--accent);
  transition: background .2s;
}
.patologia-tag:hover { background: var(--primary-light); }

/* ===== TALLERES ===== */
.talleres { background: var(--white); }
.talleres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.taller-item {
  background: var(--bg);
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: .8rem;
  transition: background .2s;
}
.taller-item:hover { background: var(--primary-light); }
.taller-item .icon { color: var(--accent); font-size: 1.2rem; flex-shrink: 0; font-weight: 700; }
.taller-item span { font-size: .95rem; }

/* ===== RECURSOS ===== */
.recursos { background: var(--bg); }
.recursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.recurso-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}
.recurso-card h3 {
  font-size: 1.1rem;
  margin-bottom: .5rem;
  color: var(--primary-dark);
}
.recurso-card .tipo {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: .2rem .7rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  margin-bottom: .8rem;
}
.recurso-card p { font-size: .9rem; color: var(--text-light); margin-bottom: 1rem; }
.recurso-card a { font-weight: 600; font-size: .9rem; }

/* ===== CONTACTO ===== */
.contacto { background: var(--white); }
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contacto-info h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}
.contacto-dato {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.contacto-dato .icon {
  width: 45px; height: 45px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contacto-dato strong { display: block; margin-bottom: .2rem; }
.contacto-dato span { color: var(--text-light); font-size: .9rem; }
.contacto-form { background: var(--bg); padding: 2rem; border-radius: var(--radius); }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .4rem;
  color: var(--text);
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 700;
  border: none;
  padding: .85rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: background .2s;
}
.btn-submit:hover { background: #22b89e; }

/* ===== MAPA ===== */
.mapa { padding: 0; }
.mapa iframe { width: 100%; height: 350px; border: none; }

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.8);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer h4 { color: var(--white); margin-bottom: 1rem; font-size: 1.05rem; }
.footer p { font-size: .9rem; line-height: 1.7; }
.footer-links a {
  display: block;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  margin-bottom: .5rem;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: .85rem;
  opacity: .6;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px; height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37,211,102,.4);
  z-index: 99;
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 32px; height: 32px; fill: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-toggle { display: block; z-index: 101; }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .nav {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 20px rgba(0,0,0,.1);
    padding: 5rem 2rem;
    transition: right .3s;
    z-index: 100;
  }
  .nav.active { right: 0; }
  .nav ul { flex-direction: column; gap: 1.5rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero .tagline { font-size: .95rem; }
  .sobre-mi-grid { grid-template-columns: 1fr; }
  .servicios-grid { grid-template-columns: 1fr; }
  .ayuda-grid { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 3.5rem 0; }
}
