:root{
  --brand:#B91C1C; /* red-700 */
  --text:#111827;
  --muted:#6B7280;
  --bg:#FAFAFA;
  --card:#FFFFFF;
  --border:#E5E7EB;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--text)}
.container{max-width:1100px;margin:0 auto;padding:0 16px}
.header{position:sticky;top:0;background:rgba(255,255,255,.9);backdrop-filter:blur(8px);border-bottom:1px solid var(--border);z-index:50}
.nav{display:flex;align-items:center;justify-content:space-between;height:64px}
.logo{height:36px;width:auto;object-fit:contain}
.nav a{margin-left:18px;text-decoration:none;color:var(--text);font-weight:600}
.nav a:hover{color:var(--brand)}
.btn{display:inline-flex;align-items:center;gap:8px;background:var(--brand);color:#fff;border:none;border-radius:12px;padding:10px 14px;font-weight:600;text-decoration:none;color:#fff;

  }
.btn.outline{background:transparent;color:var(--brand);border:1px solid var(--brand)}
.section{padding:72px 0}
.hero h1{font-size:clamp(28px,4vw,42px);margin:0}
.hero p{color:var(--muted);margin:14px 0 0}
.grid{display:grid;gap:16px}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:16px}
h2{font-size:clamp(22px,3vw,32px);margin:0 0 8px}
h3{margin:0 0 6px}
.small{font-size:14px;color:var(--muted)}
.list{margin:10px 0 0;padding-left:18px}
.footer{border-top:1px solid var(--border);padding:28px 0;color:var(--muted);font-size:14px}
@media (max-width: 800px){.grid-3{grid-template-columns:1fr}}

.subline{color:var(--brand);font-size:1.25rem;font-weight:600;margin-top:6px}
#sobre .container p {
  margin-top: 0 !important;
  margin-bottom: 15px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#sobre .container p strong {
  display: inline-block;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
#sobre .container p {
  margin-top: 0 !important;
  margin-bottom: 15px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
#sobre .container p:has(strong) {
  margin-bottom: 0 !important;
}
#sobre .container p:first-of-type {
  margin-top: 25px !important;
}
.btn-acceder-pl {
  background-color: #a7c7e7; /* azul pastel claro */
  color: #000;
  padding: 8px 14px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.btn-acceder-pl:hover {
  background-color: #8bb5df;
}


.titulo-rojo {
  color: #b5121b !important;
}


.boton-acceder-pl {
  padding: 10px 18px;
  border-radius: 6px;
  background-color: #add8e6;
  color: #000;
  font-weight: bold;
  display: inline-block;
  text-decoration: none;
  height: 100%;
}
.boton-acceder-pl:hover {
  background-color: #9cc7d5;
}


body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}


.texto-sobre-imagen {
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* === Espaciado uniforme en 'Sobre nosotros' === */
#sobre .container p {
  margin-top: 0 !important;
  margin-bottom: 15px !important;
  line-height: 1.6;
}

/* Título (strong) pegado a su texto */
#sobre .container p:has(strong) {
  margin-bottom: 0 !important;
}

/* === Botón ACCEDER A PL: igual alto que .btn pero más corto visualmente === */
.btn-acceder-pl {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;              /* alto como .btn (10px) */
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  background-color: #a7c7e7;       /* azul pastel claro */
  color: #000;
  transition: filter .2s ease, background-color .2s ease;
}
.btn-acceder-pl:hover {
  filter: brightness(0.95);
}

/* Alinear verticalmente el conjunto del nav */
nav a { line-height: 1; }

/* === Tipografía consistente en secciones === */
.section p { 
  font-weight: 400; 
  line-height: 1.6;
}

/* === Mejorar contraste en hero === */
.hero h1 { text-shadow: none; }

/* Ajuste de logo más a la izquierda */
header .logo img {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* Reducir padding izquierdo solo en el contenedor del header */
header .container.nav { padding-left: 12px !important;
}
/* Asegurar que el enlace de marca no añada desplazamiento */
header .brand {
  margin-left: 0 !important;
  padding-left: 0 !important;
}


/* Marca de agua en cuadro de compromisos */
.compromisos {
    position: relative;
    background-image: url('images/logo_compromisos.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
    opacity: 1;
}

.compromisos::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/logo_compromisos.png') center/60% no-repeat;
    opacity: 0.08; /* blanco semitransparente muy sutil */
    filter: brightness(0) invert(1); /* convierte logo a blanco */
    pointer-events: none;
    z-index: 0;
}

.compromisos * {
    position: relative;
    z-index: 1;
}