/* =========================================================
   SENDEROS SEVILLA — CSS DIDÁCTICO (para replicar en WP)
   =========================================================
   WP TIP:
   - Lo ideal: pegar partes en “Apariencia → Personalizar → CSS adicional”
   - O en un child theme / plugin de snippets.
   - Para practicar: asigna estas clases a bloques (Avanzado → Clase CSS adicional).
*/

:root{
  --bg: #f7f7fb;
  --surface: #ffffff;
  --text: #12131a;
  --muted: #5a6072;
  --border: #e7e7f0;

  --primary: #2f6fed;
  --primary-2: #1c4fd7;

  --radius: 18px;
  --shadow: 0 10px 25px rgba(18, 19, 26, 0.08);
  --shadow-soft: 0 8px 18px rgba(18, 19, 26, 0.06);

  --wrap: 1100px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.5;
}

/* Accesibilidad */
.skip-link{
  position:absolute;
  left:-999px;
  top:12px;
  background:var(--text);
  color:#fff;
  padding:10px 12px;
  border-radius:12px;
  z-index:9999;
}
.skip-link:focus{ left:12px; outline:3px solid #fff; }

:focus-visible{
  outline:3px solid rgba(47,111,237,0.45);
  outline-offset:3px;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ transition:none !important; animation:none !important; }
}

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 18px;
}

.section{
  padding: 56px 0;
}

.section-head{
  margin-bottom: 18px;
  max-width: 72ch;
}
.section-head h2{
  margin:0 0 8px;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}
.section-head p{
  margin:0;
  color:var(--muted);
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  background: rgba(247,247,251,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 12px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  color:inherit;
  font-weight:800;
}
.brand-mark{
  width:36px; height:36px;
  display:grid; place-items:center;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.brand-text{ letter-spacing: .2px; }

.menu-btn{
  display:none;
  border:1px solid var(--border);
  background:var(--surface);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--shadow-soft);
}

.site-nav{
  display:flex;
  align-items:center;
  gap: 12px;
}
.site-nav a{
  text-decoration:none;
  color:var(--muted);
  font-weight:600;
  padding: 10px 10px;
  border-radius: 12px;
}
.site-nav a:hover{
  background: rgba(47,111,237,0.08);
  color: var(--text);
}
.site-nav a.active{
  background: rgba(47,111,237,0.12);
  color: var(--text);
}
.site-nav .nav-cta{
  color:#fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: var(--shadow-soft);
}
.site-nav .nav-cta:hover{ filter: brightness(1.03); }

/* Hero */
.hero{
  padding-top: 34px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: stretch;
}
.kicker{
  display:inline-block;
  margin: 0 0 10px;
  color: var(--muted);
  background: rgba(90,96,114,0.08);
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 650;
}
.hero h1{
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height:1.12;
}
.lead{
  margin:0 0 16px;
  color: var(--muted);
  max-width: 65ch;
}

.actions{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin: 14px 0 14px;
}
.hero-badges{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  padding:0;
  margin: 8px 0 0;
  list-style:none;
  color: var(--muted);
}
.hero-badges li{
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: 999px;
  padding: 8px 10px;
}

.hero-media{
  position: relative;
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background:
    radial-gradient(800px 300px at 20% 20%, rgba(47,111,237,0.35), transparent 60%),
    radial-gradient(600px 240px at 80% 70%, rgba(20,184,166,0.28), transparent 60%),
    linear-gradient(135deg, #0d1324, #1b2a55);
  min-height: 320px;
  display:flex;
  align-items:flex-end;
  padding: 16px;
}

.hero-card{
  width: 100%;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(231,231,240,0.9);
  border-radius: 16px;
  padding: 14px;
}
.hero-card-title{
  margin:0 0 6px;
  font-weight:800;
}
.hero-card-text{
  margin:0;
  color: var(--muted);
}

/* Grid + Cards */
.grid{
  display:grid;
  gap: 14px;
}
.grid-2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }

.card{
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}
.card h3{
  margin: 0 0 8px;
}
.card p{
  margin: 0 0 10px;
  color: var(--muted);
}
.card p:last-child{ margin-bottom: 0; }

.card--feature .hint{
  font-size: .95rem;
  color: rgba(90,96,114,0.9);
  background: rgba(47,111,237,0.08);
  border: 1px dashed rgba(47,111,237,0.35);
  padding: 10px;
  border-radius: 14px;
}

.card--route .meta{
  font-size: .95rem;
  margin-top: -2px;
}

.tag-row{
  display:flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.tag{
  font-size: .85rem;
  font-weight: 750;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(47,111,237,0.25);
  color: var(--text);
  background: rgba(47,111,237,0.08);
}
.tag--soft{
  border-color: rgba(90,96,114,0.25);
  background: rgba(90,96,114,0.08);
}

/* Buttons + links */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  text-decoration:none;
  border-radius: 14px;
  padding: 11px 14px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor:pointer;
  user-select:none;
}
.btn-primary{
  color:#fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover{ filter: brightness(1.03); }
.btn-ghost{
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover{ background: rgba(47,111,237,0.06); }

.btn-secondary{
  background: var(--surface);
  border-color: var(--primary);
  color: var(--primary);
}
.btn-secondary:hover{ 
  background: var(--primary); 
  color: #fff; 
}

.link{
  color: var(--primary-2);
  font-weight: 750;
  text-decoration:none;
}
.link:hover{ text-decoration: underline; }

/* Icon list */
.icon-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap: 10px;
}
.icon-list li{
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(90,96,114,0.06);
  border: 1px solid rgba(231,231,240,0.9);
}

/* Accordion */
.accordion{
  display:grid;
  gap: 10px;
  max-width: 80ch;
}
.acc-item{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.acc-btn{
  width:100%;
  text-align:left;
  border:0;
  background: transparent;
  padding: 14px 16px;
  font-weight: 850;
  cursor:pointer;
}
.acc-panel{
  padding: 0 16px 14px;
  color: var(--muted);
}
.acc-panel code{
  background: rgba(18,19,26,0.06);
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* CTA */
.cta{
  padding-bottom: 72px;
}
.cta-inner{
  background: linear-gradient(135deg, rgba(47,111,237,0.14), rgba(20,184,166,0.10));
  border: 1px solid rgba(47,111,237,0.18);
  border-radius: calc(var(--radius) + 6px);
  padding: 18px;
  display:flex;
  gap: 14px;
  align-items:center;
  justify-content:space-between;
}
.cta-inner p{ color: var(--muted); margin: 8px 0 0; }
.cta-actions{ display:flex; flex-wrap:wrap; gap: 10px; }

/* Footer */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 18px 0 30px;
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-media{ min-height: 260px; }
  .grid-3{ grid-template-columns: repeat(2, minmax(0,1fr)); }

  .menu-btn{ display:inline-flex; }
  .site-nav{
    position: absolute;
    right: 18px;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px;
    box-shadow: var(--shadow);
    min-width: 220px;
    display:none; /* abierto con JS */
  }
  .site-nav.is-open{ display:flex; }
}
@media (max-width: 560px){
  .grid-2, .grid-3{ grid-template-columns: 1fr; }
  .cta-inner{ flex-direction: column; align-items: stretch; }
  .cta-actions{ justify-content:flex-start; }
}

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

/* =========================================================
   RECURSOS ADICIONALES
   ========================================================= */
.recursos{
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.recursos-content{
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.recursos-buttons{
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 28px 0;
}

.recursos-note{
  color: var(--muted);
  font-size: 0.92em;
  margin-top: 20px;
}

@media (max-width: 680px){
  .recursos-buttons{
    flex-direction: column;
    align-items: center;
  }
  .recursos-buttons .btn{
    min-width: 240px;
  }
}
