/*
Theme Name: Ayudart Bienestar
Theme URI: https://ayudart.local/
Author: Equipo Ayudart
Author URI: https://ayudart.local/
Description: Tema WordPress a medida para centro de bienestar Ayudar-t.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: ayudart-bienestar
*/

:root {
  --ay-bg: #f6efe6;
  --ay-bg-soft: #fbf7f1;
  --ay-sand: #dec7a8;
  --ay-accent: #6a6f83;
  --ay-accent-strong: #494f63;
  --ay-text: #2f2f33;
  --ay-muted: #67656a;
  --ay-success: #4f8a5b;
  --ay-warning: #b1772a;
  --ay-danger: #b44f4f;
  --ay-white: #ffffff;
  --ay-shadow: 0 16px 40px rgba(61, 47, 38, 0.12);
  --ay-radius: 18px;
  --ay-radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Nunito Sans', 'Segoe UI', sans-serif;
  color: var(--ay-text);
  background: radial-gradient(circle at top right, #fffaf3 0%, #f4ebe2 50%, #f3e6d8 100%);
  line-height: 1.6;
}

a {
  color: var(--ay-accent-strong);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--ay-accent);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(251, 247, 241, 0.9);
  border-bottom: 1px solid rgba(106, 111, 131, 0.1);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.branding img {
  width: 150px;
  max-height: 68px;
  object-fit: contain;
}

.branding h1,
.branding p {
  margin: 0;
  line-height: 1.2;
}

.branding h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.menu-toggle {
  border: 1px solid rgba(73, 79, 99, 0.2);
  background: var(--ay-white);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  display: none;
}

.main-menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.8rem;
}

.main-menu a {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.main-menu a:hover,
.main-menu .current-menu-item a {
  background: rgba(106, 111, 131, 0.13);
}

.hero {
  padding: 4rem 0 2.8rem;
}

.hero-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.hero-card {
  background: rgba(255, 255, 255, 0.74);
  border-radius: 24px;
  box-shadow: var(--ay-shadow);
  padding: clamp(1.4rem, 3vw, 2.6rem);
  position: relative;
}

.hero h2 {
  margin: 0 0 1rem;
  line-height: 1.12;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.hero p {
  font-size: 1.06rem;
  color: var(--ay-muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--ay-accent);
  color: #fff;
}

.btn-secondary {
  background: var(--ay-sand);
  color: #3f342b;
}

.section {
  padding: 3.4rem 0;
  position: relative;
}

.section h3 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-family: 'Cormorant Garamond', Georgia, serif;
  margin: 0 0 1.2rem;
}

.section-intro {
  color: var(--ay-muted);
  max-width: 760px;
  margin-bottom: 1.4rem;
}

.preview-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(106, 111, 131, 0.12);
  border: 1px dashed rgba(106, 111, 131, 0.32);
  color: var(--ay-accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.is-preview-hidden {
  outline: 2px dashed rgba(106, 111, 131, 0.24);
  outline-offset: 10px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.2rem;
}

.card {
  background: var(--ay-white);
  border-radius: var(--ay-radius);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(67, 52, 39, 0.1);
  border: 1px solid rgba(106, 111, 131, 0.1);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #efe3d5;
}

.card-image.is-cover {
  object-fit: cover;
}

.card-image.is-contain {
  object-fit: contain;
  background: #efe3d5;
}

.card-image.is-scale-down {
  object-fit: scale-down;
  background: #efe3d5;
}

.card-media-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #6d655f;
  font-weight: 700;
  background: linear-gradient(135deg, #efe3d5 0%, #f6eee5 100%);
}

.card-header {
  padding: 0.55rem 0.8rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.card-body {
  padding: 0.95rem;
}

.card h4 {
  margin: 0 0 0.4rem;
  line-height: 1.25;
  font-size: 1.15rem;
}

.card-body .btn {
  margin-right: 0.45rem;
  margin-top: 0.4rem;
}

.card-footer {
  border-top: 1px solid rgba(106, 111, 131, 0.09);
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.83rem;
  color: var(--ay-muted);
  padding: 0.75rem 0.95rem;
}

.status-abierto {
  color: #1f5d2a;
  background: rgba(79, 138, 91, 0.2);
}

.status-ultimas-plazas {
  color: #704211;
  background: rgba(177, 119, 42, 0.22);
}

.status-cerrado {
  color: #782b2b;
  background: rgba(180, 79, 79, 0.2);
}

.status-proximamente {
  color: #3e465f;
  background: rgba(106, 111, 131, 0.2);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.person {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--ay-radius);
  border: 1px solid rgba(106, 111, 131, 0.15);
  padding: 1rem;
}

.person .role {
  margin: 0.2rem 0 0.6rem;
  color: var(--ay-accent);
  font-weight: 700;
}

.contact-box {
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.8), rgba(255, 248, 237, 0.8));
  border: 1px solid rgba(106, 111, 131, 0.14);
  border-radius: 24px;
  padding: 1.4rem;
}

.contact-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1.1rem;
}

.contact-panel {
  padding: 0.35rem 0;
}

.contact-panel p:first-child {
  margin-top: 0;
}

.contact-panel p:last-child {
  margin-bottom: 0;
}

.contact-social-panel {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1.15rem 1.15rem 1.2rem;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 252, 248, 0.95), rgba(244, 235, 224, 0.88));
  border: 1px solid rgba(106, 111, 131, 0.14);
  box-shadow: 0 10px 28px rgba(61, 47, 38, 0.08);
  color: var(--ay-text);
}

.contact-social-kicker {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ay-accent);
}

.contact-social-title {
  margin: -0.15rem 0 0;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.contact-social-text {
  margin: 0;
  color: var(--ay-muted);
  line-height: 1.65;
}

.contact-social-panel .social-links {
  justify-content: flex-start;
  margin-top: 0.15rem;
}

.contact-social-panel .social-links a {
  background: rgba(106, 111, 131, 0.08);
  border-color: rgba(106, 111, 131, 0.16);
  color: var(--ay-accent-strong);
}

.contact-social-panel .social-links a:hover {
  color: var(--ay-accent-strong);
  border-color: rgba(106, 111, 131, 0.26);
  background: rgba(222, 199, 168, 0.34);
}

.single-ayudart_actividad .contact-box > h3 {
  text-align: center;
}

.activity-info-block {
  max-width: 760px;
  margin: 0 auto 1.4rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(246, 239, 230, 0.8);
  border: 1px solid rgba(106, 111, 131, 0.12);
}

.activity-info-block h4 {
  margin: 0 0 0.8rem;
  text-align: left;
}

.activity-info-block p {
  margin: 0.35rem 0;
}

.activity-copy-block {
  max-width: 760px;
  margin: 0 auto 1rem;
  padding: 1.05rem 1.15rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(106, 111, 131, 0.08);
  box-shadow: 0 8px 24px rgba(61, 47, 38, 0.06);
}

.activity-copy-block-intro {
  background: linear-gradient(140deg, rgba(255, 250, 243, 0.96), rgba(246, 239, 230, 0.9));
}

.activity-copy-block-accent {
  background: linear-gradient(140deg, rgba(246, 239, 230, 0.95), rgba(255, 255, 255, 0.92));
}

.activity-copy-block-outro,
.activity-copy-block-extra {
  background: rgba(248, 244, 238, 0.88);
}

.activity-copy-block h4 {
  margin: 0 0 0.65rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.1;
  color: var(--ay-accent-strong);
}

.activity-copy-block p:last-child,
.activity-copy-block ul:last-child {
  margin-bottom: 0;
}

.activity-copy-block p {
  margin: 0.5rem 0;
  color: var(--ay-text);
}

.activity-copy-block ul {
  margin: 0.65rem 0 0.65rem 1.2rem;
  padding: 0;
}

.activity-copy-block li + li {
  margin-top: 0.35rem;
}

.activity-detail-media {
  width: min(100%, 760px);
  aspect-ratio: 1 / 1;
  margin: 0.6rem auto 1.2rem;
  overflow: hidden;
  border-radius: 16px;
  background: #efe3d5;
}

.activity-detail-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-footer {
  margin-top: 3rem;
  background: #2d2f3d;
  color: #f5eee4;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: end;
  padding: 1.8rem 0 1rem;
}

.footer-brand strong {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.footer-brand small {
  display: inline-block;
  margin-top: 0.35rem;
  color: rgba(245, 238, 228, 0.78);
}

.footer-social {
  display: grid;
  gap: 0.55rem;
  justify-items: end;
}

.footer-social-label {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(245, 238, 228, 0.72);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.social-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
}

.social-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer a:hover {
  color: #ffe6c4;
  border-color: #ffe6c4;
  background: rgba(255, 230, 196, 0.12);
  transform: translateY(-1px);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  padding: 0 0 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-links a {
  color: rgba(245, 238, 228, 0.82);
  font-size: 0.93rem;
}

.maintenance-wrap,
.error-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.panel {
  width: min(620px, 100%);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  padding: 1.8rem;
  box-shadow: var(--ay-shadow);
  text-align: center;
}

.panel h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.5rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 860px) {
  .hero-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-split {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    align-items: start;
  }

  .footer-social {
    justify-items: start;
  }

  .social-links {
    justify-content: flex-start;
  }

  .legal-links {
    padding-top: 1rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-menu {
    display: none;
    width: 100%;
  }

  .main-menu.is-open {
    display: block;
  }

  .main-menu ul {
    flex-direction: column;
    padding-top: 0.8rem;
  }

  .topbar {
    flex-wrap: wrap;
  }
}
