/* ========== Variables & Reset ========== */
:root{
  --bg:#f8f4ec; /* marfil muy suave */
  --nav-bg:#00042e; /* azul oscuro elegante */
  --text:#333333; /* gris oscuro */
  --muted:#888;
  --accent:#ff3b57; /* dorado sutil para hover / active */
  --container: 1100px;
  --radius: 12px;
  --shadow: 0 6px 20px rgba(0,0,0,.06);
  --img-radius: 10px; /* borde sutil para todas las imágenes */
 --font-caviar: "Caviar Dreams", "Caviar Dreams", "Century Gothic", "Avenir Next", "Avenir", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
img{max-width:100%;display:block;border-radius:var(--img-radius)}

/* ===== Sticky footer layout ===== */
html, body { height: 100%; }
body{
  min-height: 100vh;
  display: flex;
  flex-direction: column; /* header -> main -> footer */
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
main{ flex: 1 0 auto; padding: 40px 0 64px; margin-top: 24px; }
.site-footer{ margin-top: auto; }
body.has-cc-banner { padding-bottom: 84px; } /* para que el banner no tape el footer */
@media (min-width: 721px){
  main{ margin-top: 32px; }
}

/* ========== Tipografías ========== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Montserrat:wght@400;600;700&display=swap');
@font-face {
  font-family: 'Century Gothic';
  src: url('ruta/a/tu/archivo/CenturyGothic.eot'); /* Soporte para IE9 */
  src: url('ruta/a/tu/archivo/CenturyGothic.eot?#iefix') format('embedded-opentype'), /* Soporte para IE6-IE8 */
        url('ruta/a/tu/archivo/CenturyGothic.woff2') format('woff2'), /* Soporte moderno */
        url('ruta/a/tu/archivo/CenturyGothic.woff') format('woff'), /* Soporte moderno */
        url('ruta/a/tu/archivo/CenturyGothic.ttf') format('truetype'), /* Soporte universal */
        url('ruta/a/tu/archivo/CenturyGothic.svg#CenturyGothic') format('svg'); /* Soporte para navegadores antiguos */
  font-weight: normal;
  font-style: normal;
}

@font-face {
    font-family: 'Caviar Dreams';
    src: url('ruta/a/tu/archivo/CaviarDreams.woff2') format('woff2'),
          url('ruta/a/tu/archivo/CaviarDreams.woff') format('woff'),
          url('ruta/a/tu/archivo/CaviarDreams.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
  font-family: "Caviar Dreams";
  src: url("/fonts/CaviarDreams.woff2") format("woff2"),
        url("/fonts/CaviarDreams.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caviar Dreams";
  src: url("/fonts/CaviarDreams_Italic.woff2") format("woff2"),
        url("/fonts/CaviarDreams_Italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Caviar Dreams";
  src: url("/fonts/CaviarDreams_Bold.woff2") format("woff2"),
        url("/fonts/CaviarDreams_Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caviar Dreams";
  src: url("/fonts/CaviarDreams_BoldItalic.woff2") format("woff2"),
        url("/fonts/CaviarDreams_BoldItalic.woff") format("woff");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* 2) Aplica la fuente con una pila de reserva robusta */
:root{
  --font-caviar: "Caviar Dreams", "CaviarDreams",
                 "Avenir Next", "Avenir",
                 "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ========== Utilidades ========== */
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.left{text-align:left}
.center{text-align:center}

/* ========== Header / Nav ========== */
.site-header{
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 16px rgba(0,0,0,.08) ; border-bottom: 2px solid  #ff2850; /* rojo Valverde */
}
.navbar{
  display:flex;
  align-items:center;
  min-height: 64px;
  justify-content: flex-start; /* Por defecto, alinea todo al inicio */
  width: 100%;
}

@media (max-width: 720px){
  .site-header{
    /* respeta el safe-area (notch) y añade +13px extra */
    padding-top: calc(env(safe-area-inset-top, 0) + 13px);
  }
}
/* ===== Brand (Antonio Valverde) ===== */



.brand-link{
  text-decoration: none;
  display: flex;
  gap: 8px; 
  align-items: baseline;
}
.brand-link:focus-visible{
  outline: 2px solid rgba(255,255,255,.45);
  outline-offset: 3px;
}

/* ===== Navegación del HEADER (scoped) ===== */
.site-header .nav{
    display:flex; /* desktop: flags + lista alineados en fila */
    align-items:center;
    gap:16px;
    margin-left:auto; /* CLAVE: Empuja el menú a la derecha */
}
.site-header .nav ul{
    display:flex;
    gap: 22px;
    list-style:none;
    margin:0;
    padding:0;
}
.site-header .nav a{
    font-family: 'Caviar Dreams'; font-weight: 500; font-size: 1.2em; font-weight: 600;
	font-family: var(--font-caviar);
    color:#e9eef6;
    text-decoration:none;
    padding:10px 6px;
    border-radius: 8px;
    transition: color .2s ease, background .2s ease;
    letter-spacing:.4px;
    background: transparent; /* sin fondos */
}
.site-header .nav a:hover{ color: var(--accent); background: transparent; }

/* Nuevo estilo para la linea debajo de los links */
.site-header .nav ul a {
  position: relative;
  overflow: hidden;
}

.site-header .nav ul a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #f8f4ec;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
}

.site-header .nav ul a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.site-header .nav a.active{ color: var(--accent); font-weight: 600; }
/* Logo como imagen de fondo en el anchor .brand */
/* Layout del header: brand a la izquierda, burger a la derecha */
.site-header .navbar{
  display:flex;
  align-items:center;
  justify-content:space-between; /* separa brand y toggle */
  gap:12px;
  position:relative;
}

/* BRAND como “caja” fija con el logo dentro (via ::before) */
.brand.brand-link{
	  background-image:url("images/logotipo.png"); /* <-- verifica la ruta */

  position:relative;
  display:block;
  flex:0 0 auto;     /* no se colapsa en flex */
  width:300px;
  height:40px;
  z-index:1;         /* por si el toggle se superpone */
  text-decoration:none;  
}

/* Pinta el SVG como imagen de fondo en una pseudo-capa */
.brand.brand-link::before{
  content:"";
  position:absolute;
  inset:0;
	text-decoration:none;
  background-repeat:no-repeat;
  background-position:left center;
  background-size:100% 100%; /* o 'contain' si tu SVG tiene margen */
}
.brand.brand-link:hover{
  
  background-image:url("images/logotipo_hover.png"); /* <-- verifica la ruta */
 text-decoration:none;
}
/* Oculta visualmente los textos pero conserva accesibilidad */
.brand .brand-antonio,
.brand .brand-valverde{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip: rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* Botón burger pegado a la derecha sin tapar el logo */
.nav-toggle{
  flex:0 0 auto;
  margin-left:auto;  /* empuja el toggle al extremo derecho */
  position:relative;  /* evita stacking raro con z-index */
  z-index:2;         /* por encima de otros, pero no tapa la brand */
	text-decoration:none;
}

/* Ajuste responsive: logo más pequeño en móvil */
@media (max-width: 480px){
  .brand.brand-link{ width:200px; height:28px; }
  .brand.brand-link::before{ background-size:100% 100%; text-decoration:none;}
	
}

/* Defensa: NO ocultar brand en móviles */
@media (max-width: 768px){
  .brand.brand-link{ display:block !important; width:240px; height:32px;
	background-size: contain; /* Asegura el ajuste y proporción */}
		
	      

}

/* Selector de idioma (ES / EN) — dentro del nav del header */
.lang-switch{
  display:flex;
  align-items:flex-start; /* ligeramente “arriba” respecto al texto */
  gap:10px;
  transform: translateY(-2px);
}
.lang-switch .lang{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:18px;
  border-radius:3px;
  overflow:hidden;
  text-decoration:none;
  outline:none;
  box-shadow:0 1px 3px rgba(0,0,0,.18);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.lang-switch .lang img{ width:100%; height:100%; display:block; }
.lang-switch .lang:hover{
  transform: translateY(-1px);
  box-shadow:0 3px 10px rgba(0,0,0,.18);
  filter:saturate(1.08);
}

/* Toggle (hamburguesa blanca sin fondo, con animación a X) */
.nav-toggle{
  display:none; /* visible solo en móvil */
  margin-left:auto; /* Empuja el toggle al extremo derecho en la vista de escritorio */
  width:44px; height:44px;
  align-items:center; justify-content:center;
  background: transparent;
  border: none;
  cursor:pointer;
  padding: 0;
  padding-right: 10px; /* ← leve separación del borde derecho */
}
.nav-toggle .burger,
.nav-toggle .burger::before,
.nav-toggle .burger::after{
  display:block;
  width:22px;
  height:2px;
  background:#ffffff; /* líneas blancas */
  border-radius:2px;
  content:'';
  position:relative;
  transition: transform .24s ease, opacity .2s ease, background .2s ease;
}
.nav-toggle .burger{ position: relative; }
.nav-toggle .burger::before{ position:absolute; top:-6px; left:0; }
.nav-toggle .burger::after{ position:absolute; top: 6px; left:0; }
.nav-toggle:focus{ outline: 2px solid rgba(255,255,255,.35); outline-offset: 2px; }

/* Estado abierto: animar a X */
.nav-toggle[aria-expanded="true"] .burger{
  background: transparent; /* oculta la barra central */
}
.nav-toggle[aria-expanded="true"] .burger::before{
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .burger::after{
  transform: translateY(-6px) rotate(-45deg);
}

/* ========== Main ========== */
main{ padding: 40px 0 64px; }
h1,h2,h3{
  margin: 0 0 12px;
  letter-spacing:.2px; color:#777; 
}
h1{ font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.7rem); font-weight: 300; } /* más discreto */
.lead{ color: var(--muted); }
h2, h3 { font-weight: 400; color: #ff3b57; }
/* ===== Botón Volver a las Obras ===== */
.btn-back{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--nav-bg);
  text-decoration: none;
  margin-top: 20px; /* margen desde el menú superior */
  margin-bottom: 14px; /* espacio antes del h1 */
  transition: color .2s ease, text-decoration .2s ease;
}
.btn-back .icon{ width:18px; height:18px; line-height:0; }
.btn-back .icon svg{
  width:18px; height:18px;
  fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round;
}
.btn-back:hover{ color:#143456; text-decoration: underline; }

/* ========== Párrafos elegantes (index) ========== */
.elegant-paragraph{
  position: relative;
  text-align: left;
  margin: 24px 0 24px ;
}
.elegant-paragraph::first-letter{
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.7em;
  font-weight: 600;
  line-height: 2; /* no afecta a líneas inferiores */
  color: inherit; /* desktop: hereda color base */
}
.elegant-paragraph::after{
  content: "";
  display: block;
  height: 1px;
  width: 50vw; /* mitad del viewport */
  max-width: 520px; /* límite en pantallas muy anchas */
  margin: 18px auto 20px ; /* centrada */
  background-color: #a32850; /* rojo Valverde */
  border-radius: 1px;
}
@media (max-width: 720px){
  .elegant-paragraph::after{ width: 60vw; max-width: none; }
  .elegant-paragraph::first-letter{ color: #a32850; } /* destaque sutil en móvil */
}

/* ========== Galería (Index) ========== */
.gallery{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 26px 0;
}
.gallery img{
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
/* ======= Galería (común) ======= */
.gallery,
.grid-gallery{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 columnas en desktop */
  gap: 16px;
  /* centrado del bloque de la galería */
  max-width: 960px;          /* ajusta a tu gusto o usa var(--container, 1100px) */
  margin: 26px auto;         /* centra horizontalmente */
}

/* Estilos de la imagen base (sin hover) */
.gallery img,
.grid-gallery img,
.lightbox img {
  /* Transición para un efecto suave */
  transition: filter 0.3s ease-in-out, transform 0.2s ease;
  /* Estado inicial: sin filtros ni transformación */
  filter: none;
  transform: scale(1); 
}

/* Al pasar el cursor sobre la imagen, aplica el efecto de cambio tonal */
.gallery img:hover,
.grid-gallery img:hover,
.lightbox img:hover {  
  /* Aumenta la saturación y el contraste */
  filter: saturate(0.9) contrast(0.9);
  /* Un pequeño zoom sutil */
  transform: scale(1.01);
}



/* Móvil: 1 columna (1×4) */
@media (max-width: 768px){
	 /* Las transiciones pueden ser menos intrusivas en móviles */
    .gallery img,
  .grid-gallery img,
  .lightbox img {
    transition: none;
    filter: none;
    transform: none;
    box-shadow: var(--shadow); /* Vuelve a la sombra original sin el marco */
  }
  .gallery,
  .grid-gallery{
    grid-template-columns: 1fr;
    max-width: 680px;            /* opcional, para no ir de borde a borde */
  }
}

/* ========== Obras ========== */
.obra-list{ display: grid; gap: 28px; }
.obra-item{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.obra-item .thumb{
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
}
.obra-item h3{ margin-top: 4px; }
.obra-item p{ margin: 8px 0 16px; }

/* Botonera en obras */
.obra-actions {
  display: flex;
  flex-direction: column; /* Apila los elementos verticalmente */
  gap: 10px;
  flex-wrap: nowrap; /* Opcional: evita que se envuelvan en otra fila */
  align-items: flex-start; /* Alinea los elementos a la izquierda del contenedor */
}
@media (min-width: 769px) {
  .obra-actions {
    flex-direction: column;
    align-items: flex-start; margin-top: 40px;;
  }
}
/* Botón primario */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background: var(--nav-bg);
  color:#fff;
  text-decoration:none;
  padding: 8px 14px;
  border-radius: 10px;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
  border: 1px solid transparent;
}
.btn:hover{ background:#143456; transform: translateY(-1px); }

/* Botón secundario (Más información) */
.btn-outline{
  background: transparent;
  color: var(--nav-bg);
  border: 1px solid var(--nav-bg);
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-outline:hover{
  background: #143456; /* fondo oscuro */
  color: #fff; /* texto blanco */
  border-color: #143456;
  transform: translateY(-1px);
}

/* Icono “+” fino dentro del botón */
.btn .icon{
  width: 16px; height: 16px;
  display: inline-block;
  line-height: 0;
}
.btn .icon svg{
  width: 16px; height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ========== Contacto ========== */
.contact-wrap{
  display:grid;
  grid-template-columns: 420px 1fr;
  gap: 24px;
}
.contact-card{
  background:#fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

a.imagen_ace img {display: block; margin-top: 50px; border: 1px solid #777; max-width: 70%; height: auto;}
.contact-list{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.socials{
  display:flex;
  gap: 14px;
  margin-top: 8px;
}
.icon-btn{
  width: 38px; height: 38px;
  border-radius: 9px;
  display:flex; align-items:center; justify-content:center;
  background: #f0f3f7;
  transition: transform .15s ease, background .2s ease;
  text-decoration:none;
}
.icon-btn:hover{ background:#e7ecf3; transform: translateY(-1px); }
/* Iconos outline elegantes (sin relleno, solo trazo) */
.icon-btn svg{
  width:20px; height:20px;
  fill: none;
  stroke: var(--nav-bg);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-btn svg:hover{
  width:20px; height:20px;
  fill: none;
  stroke: #ff3b57;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 768px) {
    .contact-wrap {
        /* Cambia el layout a una sola columna para que los elementos se apilen */
        grid-template-columns: 1fr; 
    }

    .contact-card img {
        /* Opcional: Centra la imagen y le da un ancho máximo para que no se desborde */
        max-width: 100%;
        height: auto;
        margin: 0 auto;
        display: block;
    }
}
/* Seguridad extra para móviles pequeños */
@media (max-width: 480px){
  .socials{ gap: 10px; }
}
/* Estilos para el nuevo botón "next" */
/* Estilos para el nuevo botón "next" */
.btn-next {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--nav-bg);
  text-decoration: none;
  margin-top: 20px;
  margin-bottom: 14px;
  transition: color .2s ease, text-decoration .2s ease;
}

.btn-next .icon {
  width: 18px;
  height: 18px;
  line-height: 0;
  /* Ya no necesitamos 'transform: rotate(180deg)' */
}

.btn-next .icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-next:hover {
  color: #143456;
  text-decoration: underline;
}
/* ========== Lightbox ========== */
.lightbox{
  position: fixed;
  inset:0;
  background: rgba(0,0,0,.85);
  display:none;
  align-items:center;
  justify-content:center;
  padding: 24px;
  z-index: 999;
}
.lightbox.open{ display:flex; }
.lightbox img{
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
}
.lightbox .close{
  position:absolute;
  top:14px; right:14px;
  width: 42px; height:42px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer; color:#fff; font-size: 20px;
  backdrop-filter: blur(6px);
}
.lightbox .close:hover{ background: rgba(255,255,255,.25); }

/* ========== Galería de obra (obra-1.html) ========== */
.grid-gallery{
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 por fila en escritorio */
  gap: 16px;
  margin-top: 18px;
}
.grid-gallery img{
  cursor: zoom-in;
  box-shadow: var(--shadow);
  /* border-radius heredado de img */
}

/* ========== Footer (conservado) ========== */
.site-footer{
  padding: 18px 0;
  color: #7c7c7c;
  font-size: .8rem;
}
.site-footer .container{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:1px; /* líneas más pegadas (3 líneas) */
}
.footer-credits{
  margin-top: 0;
  font-size: .75rem;
  color: #8a8a8a;
}
.footer-credits a{
  color: #7a7a7a;
  text-decoration: none;
}
.footer-credits a:hover{
  color: #4d4d4d; /* gris más oscuro */
  text-decoration: none; /* sin subrayado */
}

.legal{
  margin-top: 0;
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
}
.legal a{
  color:#8a8a8a;
  text-decoration:none;
}
.legal a:hover{
  color:#4d4d4d; /* gris más oscuro */
  text-decoration:none; /* sin subrayado */
}

/* ========== Responsive ========== */
@media (max-width: 720px){
  /* Aquí están los cambios importantes para la vista móvil */
  .navbar{
    /* Hacemos que la barra de navegación ocupe 2 filas en móvil */
    flex-wrap: wrap; 
    /* Alinea el logo a la izquierda y el toggle a la derecha */
    justify-content: space-between;
  }
  
  /* El logo se alinea a la izquierda de la primera fila */
  .brand{
    order: 1;
  }
  
  /* El toggle se alinea a la derecha de la primera fila */
  .nav-toggle{
    display:flex;
    order: 2;
    margin-left: 0; /* Aseguramos que no haya margen de auto para el toggle */text-decoration:none;
  }

  /* El menú completo ahora se envuelve a una segunda línea y ocupa todo el ancho */
  .site-header .nav{
    order: 3;
    width: 100%; /* el nav baja a la 2ª fila y ocupa todo el ancho */
    margin-left: 0;
    display: block; /* para permitir la animación por max-height */
    max-height: 0; /* cerrado */
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height .28s ease, opacity .22s ease, transform .28s ease;
  }
  .site-header .nav.open{
    max-height: 320px; /* 1 fila de flags + 3 enlaces */
    opacity: 1;
    transform: translateY(0);
  }

  /* El resto de estilos del menú móvil... */
  .lang-switch{
    display:flex;
    justify-content:center;
    gap:14px;
    padding: 12px 0 6px;
    transform: none;
  }

  /* Enlaces del menú en columna y centrados */
  .site-header .nav ul{
    display:flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 0 14px;
    margin: 0;
  }

  .site-header .nav a{ 	font-family: 'Caviar Dreams' , sans-serif; font-family: var(--font-caviar); font-weight: 500; 

    padding: 12px 4px;
    font-size: 1.3rem;
    background: transparent !important; /* nunca fondo en hover */text-decoration:none;
  }
  .site-header .nav a:hover{
    color: var(--accent);
    background: transparent !important;text-decoration:none;
  }

  /* Galerías */
  .gallery{ grid-template-columns: 1fr; }
  .grid-gallery{ grid-template-columns: 1fr; }

  /* Obras una columna */
  .obra-item{ grid-template-columns: 1fr; }
}

/* ===== Cookies: Banner & Modal ===== */
.cc-banner{
  position: fixed; left: 0; right: 0; bottom: 0;
  background: #0f2743; color: #e9eef6;
  box-shadow: 0 -8px 30px rgba(0,0,0,.18);
  z-index: 1000;
}
.cc-inner{
  max-width: var(--container); margin: 0 auto; padding: 16px 20px;
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center;
}
.cc-text{ font-size: .95rem; line-height: 1.5; }
.cc-actions{ display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cc-btn{
  appearance: none; border: none; cursor: pointer; border-radius: 10px;
  padding: 10px 14px; font-weight: 600;
}
.cc-accept{ background: #2f8f46; color: #fff; }
.cc-reject{ background: #6b1d1d; color: #fff; }
.cc-config{ background: rgba(255,255,255,.1); color: #fff; }
.cc-link{ color: #caa969; text-decoration: underline; }

@media (max-width:720px){
  .cc-inner{ grid-template-columns: 1fr; }
  .cc-actions{ justify-content: stretch; }
  .cc-actions .cc-btn{ flex: 1; }
}

/* Modal configuración */
.cc-modal{
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.6); z-index: 1001; padding: 20px;
}
.cc-modal.open{ display: flex; }
.cc-card{
  width: 100%; max-width: 760px; background: #fff; color: var(--text);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px;
}
.cc-card h2{ margin: 0 0 6px; }
.cc-card p{ margin: 6px 0 14px; color: var(--muted); }
.cc-row{ display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 10px; padding: 10px 0; border-top: 1px solid #eee; }
.cc-row:first-of-type{ border-top: none; }
.cc-switch{ display: flex; align-items: center; gap: 8px; }
.cc-switch input{ transform: scale(1.1); }
.cc-actions-bar{ display:flex; gap:10px; justify-content:flex-end; margin-top: 14px; }
.cc-close{ margin-left: auto; background: transparent; border: none; font-size: 20px; cursor: pointer; }

/* Espacio bajo el header para el bloque principal */
body > main.container{
  margin-top: 37px;
}
@media (max-width: 720px){
  body > main.container{
    margin-top: 22px; /* un poco menos en móvil */
  }
}
/* ======= Video YouTube responsive (16:9) ======= */
.video-embed { /* contenedor del <section> */
  padding-inline: 0; margin-top:60px; margin-bottom: 60px;
}

.video-embed > div { /* tarjeta del vídeo */
  width: 100%;
  max-width: 960px;
  margin: 48px auto;
  border-radius: var(--radius, 12px);
  overflow: hidden;
  box-shadow: var(--shadow, 0 6px 20px rgba(0,0,0,.08));
  background: #000; /* evita parpadeos al cargar */
}

.video-embed > div > div { /* caja con proporción */
  position: relative;
  width: 100%;
}

/* Fallback para navegadores sin aspect-ratio */
.video-embed > div > div::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 */
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Usa aspect-ratio cuando esté disponible */

@supports (aspect-ratio: 16 / 9) {
  .video-embed > div > div {
    aspect-ratio: 16 / 9;
  }
  .video-embed > div > div::before {
    content: none;
  }
}

.video-embed iframe:focus-visible {
  outline: 2px solid var(--accent, #caa969);
  outline-offset: 2px;
}

/* Ajuste fino en móviles pequeños */
@media (max-width: 480px) {
  .video-embed > div {
    margin: 20px auto;
  }
}
.elemento-transparente-bloque {
  display: inline-block; /* Lo hace similar a inline-block */
  background-color: transparent; /* O background: none; para transparencia total */
  /* Otras propiedades que necesites, como width, height, border, etc. */
}
h5 {color:#777;}
/* Imagen introductoria justo debajo del H1 */
.lead-image {
  margin: 12px 0 20px;           /* separaciones suaves */
}

.lead-image img {
  display: block;                /* quita espacios/line-height */
  width: 200px;                  /* escritorio: 200px de ancho */
  max-width: 100%;               /* evita desbordes */
  height: auto;                  /* mantiene proporción */
  border-radius: var(--img-radius, 10px);
  box-shadow: var(--shadow, 0 6px 20px rgba(0,0,0,.06));
}

/* Móvil: que ocupe todo el ancho del container */
@media (max-width: 768px) {
  .lead-image img {
    width: 100%;
  }
}
.thin_h1 { font-weight: 300;}
hr {
  border: none; /* Elimina el borde predeterminado del elemento <hr> */
  border-top: 2px solid #ff3b57; /* Crea la línea sólida de 2px de grosor y color rojo */
  width: 90%; /* Define el ancho de la línea al 90% del contenedor padre */
  margin-top: -10px; /* Establece el margen superior de 2px */
  margin-bottom: 30px; /* Establece el margen inferior de 30px */ 
	margin-left: 0; /* Alinea la línea a la izquierda */

}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem; /* Tamaño más grande para H1 en móviles */
  }

  h3 {
    font-size: 1.5rem; /* Tamaño más grande para H3 en móviles */
  }
}