:root{
  --text:#111;
  --muted:#555;
  --line:#e6e6e6;
  --max: 980px;
}

/* =========================
   RESET BÁSICO
   ========================= */
*{
  box-sizing:border-box;
}

html{
  font-size:16px;
}

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

/* =========================
   ENLACES
   ========================= */
a{
  color:inherit;
  text-decoration:underline;
}

a:hover{
  opacity:.8;
}

.video {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}

.video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================
   CONTENEDOR GENERAL
   ========================= */
.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:32px 18px;
}

/* =========================
   CABECERA
   ========================= */
header{
  border-bottom:1px solid var(--line);
  padding-bottom:18px;
  margin-bottom:24px;
}

header h1{
  font-size:2.5rem;
  line-height:1.2;
  margin:0 0 10px 0;
}

.site-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;

  display: flex;
  align-items: center;
  gap: 14px;
}

.site-title .logo-ga {
  height: 80px;   /* ajusta si lo quieres más pequeño */
  width: auto;
  display: block;
}

.page-title.subtle {
  font-size: 1rem;
  font-weight: 500;
  color: #555;
  margin: 0 0 24px 0;
}

/* =========================
   MENÚ (ESCRITORIO POR DEFECTO)
   ========================= */
.menu-toggle{
  display:none;
  background:none;
  border:0;
  font-size:1.5rem;
  cursor:pointer;
}

.main-nav{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:14px;
  padding-top:8px;      /* menos espacio al abrir */
}

.main-nav ul{
  gap:8px;              /* antes era mucho mayor */
}

.main-nav a{
  text-decoration:none;
  border-bottom:1px solid transparent;
  padding:4px 0;        /* reduce altura de cada ítem */
  line-height:1.3;      /* evita aire innecesario */
}

.main-nav a:hover{
  border-bottom:1px solid var(--text);
}

.small{
  color:var(--muted);
  font-size:.95rem;
  margin-left:auto;
}

.main-nav .small{
  margin-top:1rem;
  padding-top:0.8rem;
  border-top:1px solid #ddd;
}

.main-nav .small a{
  display:inline;
  padding:0;
}

/* =========================
   TIPOGRAFÍA GENERAL
   ========================= */
h2{
  font-size:1.25rem;
  margin:0 0 10px 0;
}

p{
  margin:0 0 14px 0;
  color:var(--text);
}

/* =========================
   HOME – ESTRUCTURA
   ========================= */
.row{
  display:flex;
  gap:20px;
  margin:24px 0;
}

.card{
  flex:1;
  border:1px solid var(--line);
  padding:16px;
  border-radius:12px;
  background:#fff;
  margin-bottom:1.5rem;
  display:flex;
  flex-direction:column;
}

.row .card {
  margin-bottom: 0;
}

.card-cta{ 
  margin-top:auto; 
  margin-bottom:0; 
}

.card.hero{
  padding:40px;
}

.card.hero h2{
  font-size:1.8rem;
}

.card.minor{
  opacity:.85;
  margin-top:24px;
}

.card.minor h2{
  font-size:1.1rem;
}

/* =========================
   BOTONES
   ========================= */
.cta{
  display:inline-block;
  padding:8px 14px;
  border:1px solid var(--text);
  border-radius:8px;
  text-decoration:none;
  font-size:.95rem;
  min-width:180px;
  text-align:center;
}

.cta:hover{
  background:#000;
  color:#fff;
}

.cta-full{
  display:block;
  width:100%;
  text-align:center;
}

nav a.active{
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:4px;
}

nav a.active:hover{
  border-bottom:none;
}

/* =========================
   FOOTER
   ========================= */
.site-footer{
  margin-top:48px;
  padding:0;
  color:var(--muted);
  font-size:.9rem;
}

.site-footer .wrap{
  border-top:1px solid var(--line);
  padding-top:16px;
}

.site-footer a{
  text-decoration:none;
}

.site-footer a:hover{
  text-decoration:underline;
}

.site-footer .footer-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  /* gap:12px; */
}

.footer-lang a{
  text-decoration:none;
  font-weight:400;
}

.footer-lang a.active{
  font-weight:600;
  /* text-decoration:none;  asegura que no se subraye */
}

/* =========================
   FORMULARIOS
   ========================= */

form {
  margin-top: 8px;
}

form label {
  display: block;
  margin: 12px 0 6px 0;
  font-weight: 500;
}

form input,
form textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}

form textarea {
  resize: vertical;
}

.contact-form {
  display: grid;
  grid-template-columns: 180px 600px;
  row-gap: 16px;
  column-gap: 16px;
  align-items: start;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
}

.contact-form textarea {
  resize: vertical;
}

.editorial-visual{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  gap:28px;
  margin:12px 0;
}

.editorial-img{
  height:160px;
  width:auto;
  border-radius:8px;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
}

.test-circle{
  width:64px;
  height:64px;
  border-radius:50%;
  overflow:hidden;
  background:#fff;
}

.test-circle img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.legal-quote{
  margin:20px 0;
  padding:16px 20px;
  border-left:4px solid #000;
  font-size:0.95em;
}

.legal-quote .signature{
  margin-top:14px;
  font-size:0.9rem;
  opacity:.75;
  text-align:right;   /* opcional */
  font-style:normal;  /* importante si todo va en <em> */
}




/* =========================
   RESPONSIVE (MÓVIL)
   ========================= */
@media (max-width:768px){

  header{
    padding-bottom:8px;
    margin-bottom:16px;
  }

  .site-title {
    margin:0;
    font-size: 1.6rem;
    gap: 10px;
  }

  .site-title .logo-ga {
    height: 50px;
  }

  header h1{
    font-size:1.6rem;
    line-height:1.25;
  }

  .menu-toggle{
    display:block;
  }


  .main-nav{
    display:none;
    width:100%;
    margin-top:12px;
    flex-direction:column;
    align-items:flex-end;
    text-align:right;
    gap:4px;

    flex-basis:100%;    
  }

  .main-nav.open{
    display:flex;
  }

  .main-nav a{
    display:block;
    padding:0.25rem 0;
    line-height:1.2;
    text-align:right;
  }

  .main-nav .small{
    margin-top:6px;
    padding-top:6px;
  }
  
  .main-nav .small a{
    display:inline;
    align-self:flex-end;
    text-align:right;
    padding:0;
  }

  .main-nav a.active{
    font-weight:600;
  }

  .small{
    margin-left:0;
    margin-top:10px;
  }

  .row{
    flex-direction:column;
  }

  .card.hero{
    padding:24px;
  }    

  #site-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
  }

  .site-footer .footer-row{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-lang{
    text-align: left;
  }

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

#site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
}
