/* =====================================================
   VARIABLES BASE
   ===================================================== */
:root{
  --ink:#0f172a;        /* títulos */
  --text:#1f2937;       /* texto principal */
  --muted:#475569;      /* texto secundario */
  --line:#e5e7eb;       /* líneas / bordes */
  --panel:#f8fafc;      /* fondos suaves */
  --accent:#0f766e;     /* color principal (verde petróleo) */
  --accent-2:#0b5f58;   /* hover */
  --white:#ffffff;
}

/* =====================================================
   RESET BÁSICO
   ===================================================== */
*{
  box-sizing:border-box;
}

html, body{
  margin:0;
  padding:0;
}

body{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--text);
  background:var(--white);
  line-height:1.6;
}

/* =====================================================
   ELEMENTOS GENERALES
   ===================================================== */
a{
  color:inherit;
  text-decoration:none;
}

a:hover{
  text-decoration:none;
}

.container{
  max-width:1100px;
  margin:0 auto;
  padding:32px 20px;
}

/* =====================================================
   ACCESIBILIDAD
   ===================================================== */
.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}

.skip-link:focus{
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  background:#fff;
  border:1px solid var(--line);
  padding:10px 14px;
  border-radius:10px;
  z-index:9999;
}

/* =====================================================
   HEADER / MENÚ
   ===================================================== */
.site-header{
  position:sticky;
  top:0;
  background:#fff;
  border-bottom:1px solid var(--line);
  z-index:1000;
}

.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 20px;
}

.brand-link{
  display:flex;
  flex-direction:column;
}

.brand-name{
  font-weight:800;
  font-size:1.25rem;
  color:var(--ink);
}

.brand-tagline{
  font-size:0.85rem;
  color:var(--muted);
}

/* NAV */
.nav{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}

.nav-link{
  padding:8px 12px;
  border-radius:10px;
  font-weight:500;
  color:var(--ink);
}

.nav-link:hover{
  background:var(--panel);
}

.nav-link.active{
  background:var(--panel);
  font-weight:700;
}

/* =====================================================
   BOTONES
   ===================================================== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 18px;
  border-radius:12px;
  font-weight:700;
  border:1px solid transparent;
  cursor:pointer;
}

.btn-primary{
  background:var(--accent);
  color:#fff;
}

.btn-primary:hover{
  background:var(--accent-2);
}

.btn-secondary{
  background:#fff;
  color:var(--accent);
  border-color:var(--accent);
}

.btn-secondary:hover{
  background:var(--panel);
}

/* =====================================================
   HERO
   ===================================================== */
.hero{
  padding:40px 0;
}

.hero-card{
  max-width:900px;
  margin:0 auto;
  background:linear-gradient(180deg, #ffffff 0%, #ffffff 65%, var(--panel) 100%);
  border:1px solid var(--line);
  border-radius:20px;
  padding:32px;
}

.kicker{
  display:inline-block;
  font-size:0.75rem;
  color:var(--muted);
  border:1px solid var(--line);
  padding:6px 10px;
  border-radius:999px;
  background:#fff;
  margin-bottom:12px;
}

.hero h1{
  font-size:2.2rem;
  margin:0 0 8px;
  color:var(--ink);
}

.hero h2{
  font-size:1.1rem;
  margin:0 0 16px;
  color:var(--muted);
  font-weight:600;
}

.hero p{
  max-width:70ch;
  margin:0 0 20px;
}

/* =====================================================
   SECCIONES
   ===================================================== */
.section-title{
  font-size:1.5rem;
  margin:0 0 10px;
  color:var(--ink);
}

.section-sub{
  margin:0 0 28px;
  color:var(--muted);
  max-width:80ch;
}

/* =====================================================
   GRILLAS / CARDS
   ===================================================== */
.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.card{
  border:1px solid var(--line);
  border-radius:18px;
  padding:20px;
  background:#fff;
}

.card h3{
  margin:0 0 8px;
  color:var(--ink);
}

.card p{
  margin:0;
  color:var(--muted);
}

/* =====================================================
   PANEL DESTACADO
   ===================================================== */
.panel{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:18px;
  padding:20px;
}

/* =====================================================
   LISTAS
   ===================================================== */
.list{
  margin:10px 0 0;
  padding-left:18px;
  color:var(--muted);
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer{
  border-top:1px solid var(--line);
  background:#fff;
}

.footer-row{
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  align-items:flex-start;
}

.footer-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  color:var(--muted);
}

.footer-links a:hover{
  text-decoration:underline;
}

.sep{
  color:var(--line);
}

.muted{
  color:var(--muted);
}

/* =====================================================
   FORMULARIOS
   ===================================================== */
.form{
  display:grid;
  gap:14px;
  max-width:720px;
}

.input,
textarea{
  width:100%;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  font:inherit;
}

textarea{
  min-height:140px;
  resize:vertical;
}

.note{
  font-size:0.9rem;
  color:var(--muted);
}

/* =====================================================
   ALERTAS
   ===================================================== */
.alert{
  padding:14px 16px;
  border-radius:14px;
  border:1px solid var(--line);
  background:var(--panel);
}

.alert.ok{
  border-color:#86efac;
  background:#f0fdf4;
}

.alert.err{
  border-color:#fecaca;
  background:#fef2f2;
}

/* =====================================================
   BANNER COOKIES (RGPD)
   ===================================================== */
.cookie-banner{
  position:fixed;
  bottom:0;
  left:0;
  width:100%;
  background:#0f172a;
  color:#ffffff;
  padding:16px 20px;
  z-index:9999;
}

.cookie-banner p{
  margin:0 0 10px;
  font-size:0.9rem;
}

.cookie-banner a{
  color:#a7f3d0;
  text-decoration:underline;
}

.cookie-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px){
  .grid-3{
    grid-template-columns:1fr;
  }

  .hero h1{
    font-size:1.8rem;
  }

  .header-row{
    flex-direction:column;
    align-items:flex-start;
  }

  .nav{
    width:100%;
    justify-content:flex-start;
  }
}
