/* estilo.css - Fundación Manolo.Net
   Enfoque: diseño limpio, profesional y accesible (teclado, contraste, foco visible) */

:root{
  --bg: #ffffff;
  --text: #111827;
  --muted: #374151;
  --brand: #0f4c81;
  --brand-2: #0b3a62;
  --card: #f3f4f6;
  --border: #d1d5db;
  --focus: #f59e0b;
  --maxw: 1100px;
  --radius: 16px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

a{ color: var(--brand); }
a:hover{ color: var(--brand-2); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link{
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-200%);
  background: #000;
  color: #fff;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  z-index: 1000;
}
.skip-link:focus{ transform: translateY(0); }

.site-header{
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.header-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand{
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand img{
  width: min(260px, 45vw);
  height: auto; /* mantiene proporción (logo es más ancho que alto) */
  display: block;
}

.brand .brand-text{
  display: none; /* el logo sirve de marca; texto alternativo en alt */
}

.nav{
  margin-left: auto;
}

.nav ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav a{
  display: inline-block;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid transparent;
}
.nav a:hover{ background: var(--card); }
.nav a[aria-current="page"]{
  background: #e7f0fb;
  border-color: #c7dbf3;
  color: #0b2b47;
  font-weight: 650;
}

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

h1{
  font-size: clamp(1.6rem, 2.2vw + 1rem, 2.4rem);
  line-height: 1.15;
  margin: 1.2rem 0 0.3rem;
}

.lema{
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.page-photo{
  width: 100%;
  height: auto;
  display: block;
  margin: 0.8rem 0 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
}

.grid{
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(12, 1fr);
}

.card{
  grid-column: span 12;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

@media (min-width: 900px){
  .card.span-6{ grid-column: span 6; }
  .card.span-4{ grid-column: span 4; }
  .card.span-8{ grid-column: span 8; }
}

.card h2{
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.card p{ margin: 0.4rem 0; }

.badge{
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: #111827;
  font-size: 0.9rem;
  margin-right: 0.35rem;
}

.list-clean{
  margin: 0.4rem 0 0.2rem;
  padding-left: 1.15rem;
}

.hr{
  height: 1px;
  background: var(--border);
  margin: 1.25rem 0;
}

.footer{
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.2rem 1rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.social a{
  margin-right: 0.8rem;
}

.small{
  font-size: 0.95rem;
}

.notice{
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}

.form{
  display: grid;
  gap: 0.85rem;
  max-width: 680px;
}
label{ font-weight: 650; }
input, textarea{
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font: inherit;
}
textarea{ min-height: 140px; }
button{
  justify-self: start;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 650;
  cursor: pointer;
}
button:hover{ background: var(--brand-2); border-color: var(--brand-2); }
