/* ====
   Reset y variables
==== */
:root{
  /* Paleta (conservando tus colores) */
  --white: #fff;
  --white-alpha: #ffff;  /* tu notación usada */
  --black: #000;
  --transp: #0000;    /* transparente (tu notación) */
  --gray-100: #e4e4e4;
  --gray-200: #b9b9b9;
  --gray-300: #b3b3b3;
  --dark-700: #242424;

  /* Degradados base que ya usabas */
  --bg-soft: linear-gradient(90deg, var(--gray-100) 0%, var(--white-alpha) 50%, var(--gray-100) 100%);
  --bg-dark: linear-gradient(90deg, var(--transp) 0%, var(--dark-700) 50%, var(--transp) 100%);

  /* Sombra agradable y accesible */
  --elev-1: 0 4px 16px rgba(0,0,0,0.18);
  --elev-2: 0 8px 28px rgba(0,0,0,0.22);

  /* Tipografía y escalas */
  --font-sans: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --fs-100: 0.875rem;
  --fs-200: 1rem;
  --fs-300: 1.125rem;
  --fs-400: 1.25rem;
  --fs-500: 1.5rem;
  --fs-600: 2rem;

  /* Container max */
  --container: 1200px;
}

*,
*::before,
*::after{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--white);
  background: var(--bg-soft);
  overflow-x: hidden;
  line-height: 1.5;
}

a{
  color: inherit;
  text-decoration: none;
}

img{
  max-width: 100%;
  display: block;
}

/* Utilidad: contenedor centrado */
.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ====
   NAVBAR
==== */
/* Base navbar */
.navbar{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #8a8a8a00 0%, #ffff 50%, #8a8a8a00 100%);
  backdrop-filter: blur(6px);
  width: 100%;
  padding-top: 30px;
}

.navbar-container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  max-width: var(--container);
  margin: 0 auto;
}

.navbar-logo .logo-img{
  height: 150px;
  width: auto;
  display: block;
}

/* MENÚ EN PC (horizontal) */
.navbar-menu{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navbar-menu .nav-link{
  display: inline-block;
  color: #111;
  background: #fff;
  padding: 10px 16px;
  margin: 4px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 999px;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.navbar-menu .nav-link:hover{
  transform: translateY(-1px);
  color: #fff;
  background: linear-gradient(135deg, #b9b9b9 0%, #b3b3b3 100%);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.navbar-menu .nav-link:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.35);
}

/* MENÚ EN CELULAR (vertical) */
@media (max-width: 768px) {
  .navbar-container{
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .navbar-logo .logo-img{
    height: 60px;
  }
  .navbar-menu{
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .navbar-menu .nav-link{
    display: block;
    width: auto;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    color: #000;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
  }
  .navbar-menu .nav-link:hover{
    background: #f2f2f2;
    transform: none;
  }
}

/* ====
   GALERÍA SLIDER (desktop/tablet por defecto)
==== */
.gallery{
  margin-top: 0;
  display: flex;
  height: min(76vh, 820px);
  overflow: hidden;
  width: 100%;
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-2);
}

.gallery-item {
  position: relative;
  overflow: hidden; /* recorta imagen al hacer zoom */
}

/* Imagen ocupa contenedor */
.gallery-item > a > img,
.gallery-item > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
  transform-origin: center center;
}

/* Estado base sin zoom permanente */
.gallery-item > a > img,
.gallery-item > img {
  transform: scale(1);
}

.gallery-item:hover{
  flex: 1 1 50%;
  z-index: 5;
}

.gallery-item:hover img{
  filter: brightness(1);
  transform: scale(1.04);
}

/* Texto superpuesto */
.info{
  position: absolute;
  inset: auto 20px 24px 20px;
  color: var(--white);
  max-width: 86%;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.gallery-item:hover .info{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.info .category{
  background: linear-gradient(90deg, #000000 0%, #313131 50%, #000000 100%);
  padding: 6px 12px;
  font-size: var(--fs-100);
  font-weight: 700;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.info h2{
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: 8px;
  line-height: 1.25;
}

.info .author{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-100);
  font-weight: 600;
}

.info .author img{
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
}

/* ====
   Responsive: SOLO en celular (≤768px) apilar tarjetas
==== */
@media (max-width: 768px){
  .gallery{
    display: flex;
    flex-direction: column;   /* una debajo de otra */
    height: auto;             /* sin altura fija */
    aspect-ratio: auto;       /* evitar recortes */
    overflow: visible;
    gap: 16px;                /* separación entre tarjetas */
    padding: 0 12px;          /* margen lateral opcional */
  }

  .gallery-item{
    flex: 0 0 auto;           /* no expandir como slider */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--elev-1);
  }

  .gallery-item > a > img,
  .gallery-item > img{
    width: 100%;
    height: auto;             /* mantener proporción */
    object-fit: cover;
    transform: none;          /* sin zoom en móvil */
  }

  /* Mostrar info debajo de la imagen en móvil */
  .info{
    position: static;
    opacity: 1;
    transform: none;
    max-width: 100%;
    padding: 12px 8px;
    text-shadow: none;
  }

  /* Desactivar “expansión” al hover en móvil */
  .gallery-item:hover{
    flex-basis: auto;
  }
}

/* ====
   SECCIONES
==== */
section{
  width: 100%;
  max-width: var(--container);
  margin: 48px auto;
  padding: clamp(24px, 4vw, 40px);
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 32px rgba(8,116,216,0.10);
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #000000 0%, #313131 50%, #000000 100%);
}

section h2{
  color: var(--white);
  text-align: center;
  margin-bottom: 22px;
  font-size: var(--fs-600);
  font-weight: 700;
  text-shadow: 0 0 15px var(--white);
}

/* ====
   Instagram grid
==== */
.instagram-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  max-width: 1000px;
  margin: 0 auto;
}

.instagram-grid a{
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--black);
}

.instagram-grid a img{
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  filter: brightness(0.92);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.instagram-grid a:hover{
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(8,116,216,0.25);
}

.instagram-grid a:hover img{
  transform: scale(1.06);
  filter: brightness(1.08);
}

@media (min-width: 768px){
  .instagram-grid a img{
    height: 180px;
  }
}

/* ====
   Botones
==== */
.button-container{
  text-align: center;
  margin: 32px 0 8px;
}

.btn-ver-mas{
  display: inline-block;
  background: var(--bg-dark);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: var(--fs-300);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255,255,255,0.06);
}

.btn-ver-mas:hover{
  color: var(--black);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ====
   YouTube grid
==== */
.contenedor-verde{
  background: var(--bg-dark);
  padding: 24px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.06);
  margin: 28px 0;
}

.grid-container{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
}

.grid-container iframe{
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: #000;
}

.grid-container iframe:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(8,116,216,0.18);
}

/* ====
   Footer
==== */
footer{
  padding: 36px 0 18px;
  text-align: center;
  border-top: 2px solid rgba(255,255,255,0.06);
  width: 100%;
  background: linear-gradient(90deg, #000000 0%, #313131 50%, #000000 100%);
}

.footer-content{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 0 18px;
}

.footer-redes{
  display: flex;
  gap: 18px;
  margin-bottom: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-icon{
  width: 38px;
  height: 38px;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: brightness(0.9);
}

.footer-icon:hover{
  transform: scale(1.12);
  filter: brightness(1) drop-shadow(0 0 8px var(--white));
}

.footer-links{
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: var(--fs-200);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a{
  color: var(--white);
  font-weight: 600;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.footer-links a:hover{
  color: var(--white);
  text-shadow: 0 0 5px var(--white);
}

.footer-separator{
  color: var(--white);
  opacity: 0.5;
  font-size: 1.2em;
}

.footer-libro .libro-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  font-size: var(--fs-200);
  font-weight: 600;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-libro .libro-btn img{
  width: 32px;
  height: 32px;
}

.footer-libro .libro-btn:hover,
.footer-libro .libro-btn:focus{
  color: var(--white);
  transform: translateY(-1px);
}

.footer-copyright{
  color: var(--white);
  font-size: 0.95em;
  margin-top: 10px;
  opacity: 0.85;
}

/* ====
   Modal libro de reclamaciones
==== */
.modal-libro{
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
}

.modal-contenido{
  background: var(--bg-dark);
  margin: 5% auto;
  padding: 24px 18px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  width: 94%;
  max-width: 560px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--elev-2);
}

.modal-contenido h2{
  color: var(--white);
  text-align: center;
  margin-bottom: 16px;
  text-shadow: 0 0 10px var(--white);
}

.libro-info{
  color: #a0d6ff;
  text-align: center;
  margin-bottom: 20px;
}

.libro-formulario{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.libro-formulario label{
  color: var(--white);
  font-weight: 600;
  font-size: var(--fs-200);
}

.libro-formulario input,
.libro-formulario select,
.libro-formulario textarea{
  padding: 12px;
  background: rgba(0,26,0,0.8);
  border: 1px solid var(--white);
  border-radius: 8px;
  color: #a0d6ff;
  font-family: 'Lexend Deca', sans-serif;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.libro-formulario input:focus,
.libro-formulario select:focus,
.libro-formulario textarea:focus{
  border-color: #cfe8ff;
  box-shadow: 0 0 0 3px rgba(160,214,255,0.25);
}

.libro-formulario button{
  background: var(--bg-dark);
  color: var(--white);
  padding: 12px;
  border: 0;
  border-radius: 999px;
  font-size: var(--fs-300);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(255,255,255,0.14);
}

.libro-formulario button:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255,255,255,0.22);
}

.cerrar-modal{
  color: var(--white);
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.cerrar-modal:hover{
  transform: scale(1.08);
  text-shadow: 0 0 10px var(--white);
}

.checkbox-label{
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--white);
  font-size: 0.92rem;
  margin: 8px 0;
}

.checkbox-label input[type="checkbox"]{
  margin: 3px 0 0;
  flex-shrink: 0;
}

.checkbox-label span{
  line-height: 1.4;
}

.checkbox-label a{
  color: var(--white);
  text-decoration: underline;
}

.checkbox-label a:hover{
  color: #ddd;
}

/* ====
   Logo 2 (barra interna)
==== */
.logo2{
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  background: linear-gradient(90deg, #000000 0%, #313131 50%, #000000 100%);
  padding: 10px 16px;
}

/* ====
   Accesibilidad / Motion
==== */
@media (prefers-reduced-motion: reduce){
  *{
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.logo-img{
  height: 300px;
  width: 300px;
}