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

:root {
  --primary: #3b5998;
  --primary-dark: #2d4373;
  --primary-light: #e8edf5;
  --accent: #c900bf;
  --accent-light: #f9e5f8;
  --text: #1a1a1a;
  --text-light: #555;
  --bg: #f8f8f8;
  --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(--accent); 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.2rem; font-weight: 700; color: var(--primary); }
.logo span { color: var(--accent); }

.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.6rem; }
.nav a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .3s;
}
.nav a:hover { 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::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -15%;
  width: 400px; height: 400px;
  background: rgba(201,0,191,.1);
  border-radius: 50%;
}
.hero h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: .5rem; line-height: 1.2; }
.hero .subtitle { font-size: 1.15rem; opacity: .9; margin-bottom: 1.5rem; }
.hero .tagline {
  font-size: 1.05rem;
  max-width: 750px;
  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: var(--white); }
.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; }

/* ===== INTRO ===== */
.intro { background: var(--white); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.intro-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.intro-img img { width: 100%; height: auto; object-fit: contain; padding: 1.5rem; background: var(--white); }
.intro-text p { margin-bottom: 1rem; color: var(--text-light); }
.intro-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(4, 1fr); gap: 1.5rem; }
.servicio-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  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: 65px; height: 65px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.6rem;
}
.servicio-card h3 { font-size: 1.05rem; margin-bottom: .6rem; color: var(--primary-dark); }
.servicio-card p { font-size: .85rem; color: var(--text-light); }

/* ===== LOGOPEDIA ===== */
.logopedia { background: var(--white); }
.logopedia-content { max-width: 800px; margin: 0 auto; }
.logopedia-content > p { margin-bottom: 1rem; color: var(--text-light); }
.patologias-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .8rem; margin-top: 2rem; }
.patologia-tag {
  background: var(--bg);
  padding: .7rem 1rem;
  border-radius: 8px;
  font-size: .88rem;
  color: var(--text-light);
  border-left: 3px solid var(--accent);
  transition: background .2s;
}
.patologia-tag:hover { background: var(--accent-light); }

/* ===== CÓMO AYUDA ===== */
.como-ayuda { background: var(--bg); }
.ayuda-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.ayuda-item { display: flex; gap: 1rem; padding: 1.5rem; background: var(--white); border-radius: var(--radius); }
.ayuda-item .num {
  flex-shrink: 0;
  width: 45px; height: 45px;
  background: var(--accent);
  color: var(--white);
  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); }

/* ===== PEDAGOGÍA ===== */
.pedagogia { background: var(--white); }
.pedagogia-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .8rem; margin-top: 1.5rem; }
.pedagogia-item {
  background: var(--bg);
  padding: .8rem 1.2rem;
  border-radius: 8px;
  font-size: .9rem;
  color: var(--text-light);
  border-left: 3px solid var(--primary);
}

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

/* ===== CREDENCIALES ===== */
.credenciales { background: var(--white); }
.credenciales-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.credencial-item {
  padding: 2rem 1.5rem;
  background: var(--primary-light);
  border-radius: var(--radius);
}
.credencial-item .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.credencial-item h3 { font-size: 1rem; color: var(--primary-dark); margin-bottom: .5rem; }
.credencial-item p { font-size: .85rem; color: var(--text-light); }

/* ===== CONTACTO ===== */
.contacto { background: var(--bg); }
.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(--white); padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.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(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  background: var(--accent); color: var(--white); border: none;
  padding: .85rem 2.5rem; border-radius: 50px; font-weight: 600; font-size: .95rem; cursor: pointer;
}
.btn-submit:hover { background: #a8009e; }

/* ===== 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 ===== */
.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; }
  .intro-grid { grid-template-columns: 1fr; }
  .servicios-grid { grid-template-columns: 1fr 1fr; }
  .ayuda-grid { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .credenciales-grid { grid-template-columns: 1fr; }
  section { padding: 3.5rem 0; }
}
@media (max-width: 480px) {
  .servicios-grid { grid-template-columns: 1fr; }
}
