/* =============================================
   ESPAI SALUT · Estilos principales
   Psicóloga M. Carmen Cabello León
   ============================================= */

/* --- Variables -------------------------------- */
:root {
  --primary: #3A7CA5;
  --primary-dark: #2C6494;
  --primary-light: #5B9FC4;
  --accent: #7CBF9E;
  --accent-dark: #5BA07E;
  --cta: #2F855A;
  --cta-hover: #276749;
  --bg: #FAFAF8;
  --section-bg: #EAF4F4;
  --surface: #ffffff;
  --text: #2D3748;
  --text-muted: #4A5568;
  --text-light: #718096;
  --border: rgba(58,124,165,0.15);
  --border-accent: rgba(124,191,158,0.3);
  --shadow-sm: 0 2px 8px rgba(45,55,72,0.06);
  --shadow-md: 0 8px 30px rgba(45,55,72,0.10);
  --shadow-lg: 0 20px 50px rgba(45,55,72,0.12);
  --radius: 16px;
  --radius-lg: 24px;
}

/* --- Reset & Base ----------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* --- Container -------------------------------- */
.container {
  width: min(1140px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* --- Buttons ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.975rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, filter 0.2s ease;
  line-height: 1;
  white-space: nowrap;
}

.btn-cta {
  background: linear-gradient(135deg, var(--cta) 0%, #38A169 100%);
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(47,133,90,0.28);
}
.btn-cta:hover {
  background: linear-gradient(135deg, var(--cta-hover) 0%, var(--cta) 100%);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(47,133,90,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--border);
  padding: 0.8125rem 1.625rem;
}
.btn-outline:hover {
  background: rgba(58,124,165,0.06);
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-cta-white {
  background: #fff;
  color: var(--cta) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.btn-cta-white:hover {
  background: #f0fdf4;
  color: var(--cta-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.16);
}

.btn-outline-white {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.6);
  padding: 0.8125rem 1.625rem;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff !important;
  transform: translateY(-2px);
}

/* --- Section utilities ------------------------ */
.section { padding: 6rem 0; }
.section-teal { background: var(--section-bg); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(58,124,165,0.1);
  padding: 0.375rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --- Header / Nav ----------------------------- */
#header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250,250,248,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}
#header.scrolled {
  box-shadow: 0 4px 24px rgba(45,55,72,0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--primary-dark) !important;
  flex-shrink: 0;
}
.brand:hover { color: var(--primary) !important; }

.nav-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
}

.brand-name { color: inherit; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-links a {
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover {
  background: rgba(58,124,165,0.1);
  color: var(--primary-dark);
}

.nav-cta {
  margin-left: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* --- Hero ------------------------------------- */
.hero {
  padding: 5rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 4rem;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.hero-copy h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.highlight {
  color: var(--primary);
}

.hero-sub {
  font-size: 1.075rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.trust-item strong {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.03em;
}
.trust-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.trust-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.hero-photo-wrap {
  position: relative;
}

.hero-photo {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--section-bg);
}

.hero-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: white;
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-dark);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-badge svg { color: var(--accent-dark); }

/* --- Credentials bar -------------------------- */
.credentials-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.credentials-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.cred-item svg { color: var(--primary); flex-shrink: 0; }

/* --- Services grid ---------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  color: inherit;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
  color: inherit;
}

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(58,124,165,0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.services-cta {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 1rem;
  color: var(--text-muted);
}
.services-cta a {
  color: var(--primary);
  font-weight: 600;
}
.services-cta a:hover { color: var(--primary-dark); }

/* --- Featured service card -------------------- */
.service-card--featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, #f0fdf7 0%, #fff 100%);
  position: relative;
}
.service-card--featured:hover { border-color: var(--accent-dark); }

.service-icon--accent { background: rgba(124,191,158,0.18); color: var(--accent-dark); }

.service-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* --- NEAE section ----------------------------- */
.neae-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.neae-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.neae-icon {
  width: 52px;
  height: 52px;
  background: rgba(124,191,158,0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent-dark);
}

.neae-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.neae-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.neae-becas {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1a4f7a 100%);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  color: #fff;
}

.becas-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.becas-copy h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.becas-copy p {
  font-size: 0.975rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.becas-copy strong { color: #fff; }

@media (max-width: 1024px) {
  .neae-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .neae-grid { grid-template-columns: 1fr; }
  .neae-becas { flex-direction: column; gap: 1rem; padding: 1.75rem 1.5rem; }
}

/* --- About ------------------------------------ */
.about-inner {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 5rem;
  align-items: start;
}

.about-photo-wrap {
  position: relative;
}

.about-photo {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: rgba(58,124,165,0.12);
}

.about-cred-card {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: white;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cred-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-dark);
}
.cred-row svg { color: var(--accent-dark); flex-shrink: 0; }

.about-copy .section-tag { display: inline-block; margin-bottom: 0.75rem; }

.about-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.about-intro {
  font-size: 1.075rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-copy p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.75rem 0;
}

.spec {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
}
.spec strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.375rem;
}
.spec span {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --- Process ---------------------------------- */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step {
  flex: 1;
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.375rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.step h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.step p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.step-arrow {
  flex-shrink: 0;
  color: var(--primary-light);
  margin-top: 4.5rem;
}

.process-cta {
  text-align: center;
  margin-top: 3rem;
}

/* --- Modalities ------------------------------- */
.modalities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.modality-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.modality-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.modality-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(58,124,165,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--primary);
}

.modality-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.625rem;
}
.modality-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- Testimonials ----------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.testimonial-stars {
  color: #F6C90E;
  font-size: 1.125rem;
  letter-spacing: 0.1em;
}

.testimonial-card blockquote {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-light);
}

.testimonial-notice {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* --- FAQ -------------------------------------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.375rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 1.5rem 1.375rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* --- CTA Final -------------------------------- */
.cta-final {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1a4f7a 100%);
  padding: 6rem 0;
}

.cta-inner {
  text-align: center;
  max-width: 660px;
}

.cta-inner h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.cta-inner p {
  font-size: 1.075rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.cta-contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2rem;
}
.cta-contact-info span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

/* --- Footer ----------------------------------- */
.footer {
  background: #1a2533;
  padding: 3rem 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.footer-brand strong {
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.footer-brand span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.15s ease;
}
.footer-links a:hover { color: #fff; }

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
}
.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.footer-legal a:hover { color: rgba(255,255,255,0.8); }
.footer-legal span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* --- WhatsApp Float --------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 32px rgba(37,211,102,0.55);
  color: #fff;
}

/* --- Responsive ------------------------------- */

/* Tablet */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 380px;
    gap: 3rem;
  }
  .about-inner {
    grid-template-columns: 340px 1fr;
    gap: 3rem;
  }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .modalities-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 768px) {

  /* Navbar */
  #header { position: sticky; } /* mantener sticky también en móvil */
  .nav-container { flex-wrap: wrap; padding: 0.875rem 0; gap: 0; }
  .brand { flex: 1; }
  .hamburger { display: flex; flex-shrink: 0; }
  .nav-cta { display: none; }

  .nav-links {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    background: rgba(250,250,248,0.99);
    border-top: 1px solid var(--border);
    padding: 0.75rem 0 1rem;
    gap: 0.125rem;
    align-items: stretch;
  }
  .nav-links.nav-open { display: flex; }
  .nav-links a {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 1rem;
  }

  /* Hero */
  .hero { padding: 2.5rem 0 2rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-photo-wrap { order: -1; }
  .hero-photo { height: 260px; border-radius: var(--radius); }
  .hero-badge { font-size: 0.8rem; padding: 0.5rem 1rem; }
  .hero-tag { font-size: 0.75rem; }

  /* Trust bar */
  .credentials-inner {
    flex-direction: column;
    gap: 0.875rem;
    align-items: flex-start;
    padding: 0 1rem;
  }

  /* About */
  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo { height: 260px; border-radius: var(--radius); }
  .about-cred-card { display: none; }
  .about-specs { grid-template-columns: 1fr; }

  /* Process */
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); margin: 0; align-self: center; }
  .step { padding: 1.75rem 1.5rem; }

  /* Grids */
  .services-grid { grid-template-columns: 1fr; }
  .modalities-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }

  /* NEAE */
  .neae-grid { grid-template-columns: 1fr; }
  .neae-becas { flex-direction: column; gap: 1rem; padding: 1.75rem 1.5rem; }

  /* FAQ */
  .faq-item summary { font-size: 0.95rem; padding: 1.125rem 1.25rem; }
  .faq-item p { padding: 0 1.25rem 1.125rem; }

  /* CTA final */
  .cta-final { padding: 4rem 0; }
  .cta-contact-info { flex-direction: column; align-items: center; gap: 0.625rem; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-legal { text-align: left; }

  /* Secc padding */
  .section { padding: 4rem 0; }
  .section-header { margin-bottom: 2.5rem; }

  /* Float */
  .whatsapp-float { bottom: 1rem; right: 1rem; width: 50px; height: 50px; }
}

@media (max-width: 480px) {
  .hero-copy h1 { font-size: 1.875rem; letter-spacing: -0.03em; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-trust { gap: 0.875rem; }
  .trust-item strong { font-size: 1.375rem; }
  .trust-divider { height: 28px; }

  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-buttons .btn { justify-content: center; }

  .service-card { padding: 1.5rem 1.25rem; }
  .neae-card { padding: 1.5rem 1.25rem; }
  .step { padding: 1.5rem 1.25rem; }
  .step-num { width: 48px; height: 48px; font-size: 1.25rem; }

  .about-copy h2 { font-size: 1.75rem; }
  .section-header h2 { font-size: 1.625rem; }

  /* Becas block full width button */
  .becas-copy .btn { width: 100%; justify-content: center; }
}


/* ── NUESTRO ESPACIO ─────────────────────────────────── */
.espacio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}

.espacio-card--large {
  grid-column: 1 / -1;
}

.espacio-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-100, #f5f5f5);
}

.espacio-card--large {
  aspect-ratio: 16/7;
}

.espacio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.espacio-card:hover img {
  transform: scale(1.03);
}

.espacio-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
}

@media (max-width: 640px) {
  .espacio-grid {
    grid-template-columns: 1fr;
  }
  .espacio-card--large {
    aspect-ratio: 4/3;
  }
}
