/* ==========================================================================
   ÍNDICE DE ESTILOS - DAVID SILVA WEB
   ==========================================================================
   1. VARIABLES Y RESET (Fuentes, body base)
   2. ESTILOS GLOBALES (Selección de texto, etc.)
   3. ESTRUCTURA PRINCIPAL (Header, Menú, Footer)
   4. COMPONENTES REUTILIZABLES (Botones, Cookies, Subir, Videos)
   5. SECCIONES DE LA WEB (Inicio, Conciertos, Sobre mí, Clases, Galería...)
   6. UTILIDADES (Líneas decorativas, márgenes)
   7. RESPONSIVE / MEDIA QUERIES (Ajustes para móviles)
   ========================================================================== */

/* =========================================
   1. VARIABLES Y RESET
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body {
    margin: 0;
    padding: 0;
    color: white;
    background-color: black;
    font-family: Montserrat, sans-serif;
}

/* =========================================
   2. ESTILOS GLOBALES
   ========================================= */
::selection {
    background-color: #d4762b;
    color: white;
}

iframe {
    width: 100%;
}

/* =========================================
   3. ESTRUCTURA PRINCIPAL (Header y Footer)
   ========================================= */
/* --- HEADER Y NAVEGACIÓN --- */
header {
    background-color: rgba(0, 0, 0, 0.866);
    color: white;
    position: fixed;
    width: 100%;
    height: 10%;
    z-index: 900;
    /* Para que esté por encima del resto */
}

header div {
    display: flex;
    align-items: right;
    justify-content: right;
}

nav {
    display: flex;
    width: 70%;
    align-items: center;
}

#logo {
    background-image: url(./media/logo.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 250px;
    height: 100px;
}

#menu {
    display: flex;
    justify-content: space-around;
    width: 100%;
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 30px;
    gap: 15px;
}

#menu li a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

#menu li a:hover {
    color: #FF6D00;
}

/* --- FOOTER --- */
footer {
    color: white;
    text-align: center;
    padding: 80px;
    margin-top: 50px;
}

.redes-sociales {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.redes-sociales h3 {
    letter-spacing: 2px;
    margin: 0px;
    line-height: 1.5;
}

.iconos {
    display: flex;
    gap: 20px;
}

.iconos a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-image: linear-gradient(135deg, #974200 0%, #FF9100 100%);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.iconos a:hover {
    background-image: linear-gradient(#311B92 0%, #5E35B1 100%);
    transform: scale(1.1);
}

.iconos a:active {
    transform: scale(0.9) translateY(2px);
}

.iconos a img,
.iconos a svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.iconos a img {
    filter: brightness(0) invert(1);
}

.texto-footer {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 20px;
}

.texto-footer p {
    margin: 5px;
}


/* =========================================
   4. COMPONENTES REUTILIZABLES
   ========================================= */
/* --- BOTONES GENERALES --- */
button,
input[type="submit"] {
    width: fit-content;
    padding: 1.2em 1rem;
    cursor: pointer;
    font-weight: bold;
    border-radius: 30px;
    text-shadow: 2px 2px 3px rgb(136 0 136 / 50%);
    background: linear-gradient(45deg, #d4762b, #913a48, #4b225c) no-repeat;
    background-size: 300%;
    color: #fff;
    border: none;
    background-position: left center;
    box-shadow: 0 30px 10px -20px rgba(0, 0, 0, .2);
    transition: background .3s ease;
}

button:hover,
input[type="submit"]:hover {
    background-size: 320%;
    background-position: right center;
}

button:active,
input[type="submit"]:active {
    transform: scale(0.97);
    background: linear-gradient(45deg, #8b4e1c, #4e1f27, #281231) no-repeat;
}

button:hover svg {
    fill: #fff;
}

button svg {
    width: 23px;
    fill: #f09f33;
    transition: .3s ease;
}

#boton {
    margin-top: 40px;
}

/* --- BOTÓN DE SUBIR ARRIBA --- */
.btn-subir {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background-image: linear-gradient(135deg, #4b225c, #d4762b);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}

.btn-subir svg {
    width: 32px;
    height: 32px;
}

.btn-subir:hover {
    background-image: linear-gradient(135deg, #5E2A73, #f08632);
    transform: scale(1.05);
}

.btn-subir:active {
    transform: scale(0.90) translateY(2px);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

.btn-subir.mostrar {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* --- BANNER DE COOKIES --- */
.cookie-banner {
    position: fixed;
    bottom: -150%;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
    border-top: 3px solid #E46B00;
    transition: bottom 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cookie-banner.mostrar {
    bottom: 0;
}

.cookie-banner p {
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
    max-width: 900px;
    line-height: 1.5;
}

.cookie-botones {
    display: flex;
    gap: 15px;
}

.btn-cookie {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-aceptar {
    background-color: #E46B00;
    color: white;
}

.btn-aceptar:hover {
    background-color: #f08632;
    transform: scale(1.05);
}

.btn-rechazar {
    background-color: #333;
    color: white;
    border: 1px solid #666;
}

.btn-rechazar:hover {
    background-color: #444;
}

/* --- REPRODUCTORES DE VIDEO (Tarjetas) --- */
.video iframe {
    border-radius: 20px;
    border: 3px solid transparent;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;

}

.video iframe:hover {
    transform: scale(1.03);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    border-color: #E46B00;
    filter: brightness(1.1);
}



/* =========================================
   5. SECCIONES DE LA WEB
   ========================================= */

/* --- INICIO --- */
#intro {
    width: 100%;
}

#imagen2 {
    background-image: linear-gradient(rgba(255, 115, 0, 0), rgb(0, 0, 0)), url(./media/inicio.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    height: 100vh;
}

#texto-imagen {
    width: 1400px;
    margin: 0 auto;
    text-align: left;
}

#intro h1 {
    font-size: 100px;
    color: white;
    text-shadow: 2px 2px 15px rgba(0, 0, 0);
    margin-bottom: 0px;
    margin-top: 0px;
}

#intro h2 {
    margin-top: 0px;
    font-size: 50px;
    text-shadow: 2px 2px 15px rgba(0, 0, 0);
}

/* --- Arriba de cociertos --- */
#intro2 {
    color: #88714d;
    display: flex;
    justify-content: center;
}

#intro2>.margenes {
    display: flex;
    align-items: center;
    flex-direction: column;
}

#intro2 h1 {
    padding-top: 100px;
    margin-top: 0px;
    margin-bottom: 0px;
    font-size: 175px;
    font-weight: 800;
    text-align: center;
    background-image: linear-gradient(to right, #4b225c, #913a48, #d4762b);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

#intro2 .intro2-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    width: 100%;
}

#intro2 .intro2-left {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

#intro2 .intro2-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#intro2 .intro2-left h2 {
    color: #E46B00;
    font-size: 45px;
    text-align: right;
    margin-top: 0px;
    margin-bottom: 0px;
}

#intro2 .intro2-right p {
    color: white;
    font-size: 20px;
    text-align: left;
    margin-top: 0px;
    margin-bottom: 35px;
}

/* --- CONCIERTOS --- */
#conciertos {
    display: flex;
    flex-direction: column;
    padding-bottom: 100px;
    margin-top: 125px;
}

#conciertos h1 {
    margin-top: 0px;
    text-align: center;
    font-size: 100px;
    font-weight: 600;
    color: white;
    -webkit-background-clip: text;
    background-clip: text;
}

#conciertos .margenes {
    display: flex;
    justify-content: center;
}

#conciertos li {
    text-align: justify;
    list-style-type: none;
    font-size: 20px;
    padding: 4px;
}

.timeline {
    display: flex;
    align-items: center;
    text-align: center;
    flex-direction: column;
}

.timeline-body h3 {
    color: #E46B00;
}

/* --- INICIO 3 --- */
#imagen3 {
    background-image: linear-gradient(90deg, rgb(0, 0, 0), rgba(0, 0, 0, 0), rgba(0, 0, 0, 0), rgb(0, 0, 0)), url(./media/david-silva-cover-guitarra.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 100%;
    min-height: 400px;
}

#inicio3 {
    display: flex;
    padding: 80px 10%;
    justify-content: center;
}

#inicio3-contenedor {
    display: flex;
    flex-direction: row;
    max-width: 1300px;
    width: 100%;
    background-color: rgb(22, 22, 22);
}

#texto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    margin-left: 60px;
    color: white;
}

#texto h2 {
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #E46B00;
}

#texto h1 {
    font-size: 32px;
    margin-top: 0;
    line-height: 1.4;
    text-transform: uppercase;
    padding-right: 5%;
}

#texto p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    padding-right: 5%;
}

/* --- SOBRE MÍ --- */
#imagen4 {
    background-image: url(./media/0109JAVIER241118.jpeg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 800px;
    min-width: 500px;
}

#sobre_mi {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-bottom: 150px;
    padding-top: 40px;
}

#sobre_mi h1 {
    padding-top: 40px;
    font-size: 90px;
    background-image: linear-gradient(135deg, rgb(109, 47, 0) 0%, #FF9100 100%);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 600;
}

#sobre_mi .linea {
    width: 1200px;
    margin-top: 100px;
    margin-bottom: 70px;
}

#texto1 {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
    font-size: 18px;
    line-height: 1.8;
    text-align: left;
    color: #e0e0e0;
    width: 100%;
}

#texto1 div {
    width: 100%;
    margin: 0;
}

.columna-texto p {
    margin-bottom: 20px;
}

#grid1-2 {
    display: flex;
    align-items: center;
    width: 100%;
}

#grid1-4 {
    grid-column: 1 / span 3;
    grid-row: 2;
    display: flex;
    justify-content: center;
    text-decoration: none;
}

#link {
    margin-top: 20px;
    color: #88714d;
    width: 15%;
    height: 50%;
}

#link button {
    width: 100%;
    height: 100%;
    min-height: 50px;
}

/* --- CLASES DE GUITARRA --- */
#imagen5 {
    background-image: linear-gradient(90deg, rgb(0, 0, 0), rgb(0, 0, 0, 0)5%, rgb(0, 0, 0, 0)95%, rgb(0, 0, 0)), url(./media/clases-guitarra-flamenca-alcobendas.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    min-height: 550px;
    width: 100%;
    margin-bottom: 150px;
}

#color-clases {
    background-image: linear-gradient(45deg, #4b225c, #913a48, #d4762b);
}

#clases {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-bottom: 70px;
    padding: 60px;
}

#clases h1 {
    color: white;
    font-size: 80px;
    padding: 40px;
    margin-bottom: 0px;
    text-align: center;
}

#clases h2 {
    color: white;
    margin-top: 0px;
    font-size: 55px;
}

.contenedor-tarjetas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1100px;
    margin: 40px auto 60px auto;
}

.tarjeta-clase {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tarjeta-clase:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    border-color: #E46B00;
}

.tarjeta-clase h3 {
    color: #E46B00;
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.tarjeta-clase .precio {
    font-size: 50px;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
}

.tarjeta-clase .precio span {
    font-size: 18px;
    font-weight: normal;
    color: #b0b0b0;
}

.tarjeta-clase p {
    font-size: 16px;
    color: #e0e0e0;
    line-height: 1.6;
    margin: 10px 0;
}

.tarjeta-clase strong {
    color: white;
}

.tarjeta-clase hr {
    width: 60px;
    border: none;
    height: 3px;
    background-image: linear-gradient(135deg, #FF6D00 0%, #FF9100 100%);
    margin: 20px auto;
    border-radius: 2px;
}

.texto2 {
    text-align: center;
    font-size: 23px;
    max-width: 800px;
    margin: 20px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.texto2 p {
    margin: 8px;
}

.texto2 .clases-subtitulo {
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 4px;
    margin-bottom: 30px;
    color: #E46B00;
}

/* --- FLAMENCO Y VIDEOS --- */
#flamenco {
    padding-top: 150px;
    padding-bottom: 130px;
}

#imagen6 {
    background-image: url(./media/david-silva-guitarrista-2.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 650px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

#texto3 {
    width: 90%;
    padding-left: 20px;
}

#flamenco h1 {
    font-size: 75px;
    line-height: 1.1;
    margin-top: 0px;
    margin-bottom: 30px;
    background-image: linear-gradient(135deg, #b95000 0%, #FF9100 100%);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

#texto3 p {
    font-size: 20px;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 40px;
}

#texto3 button {
    margin-top: 50px;
}

#flamenco-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

#imagen7 {
    background-image: linear-gradient(to right, #4b225c88, #913a4888, #d4762b88), url(./media/david-silva-grupo-flamenco-2-scaled.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 1230px;
    margin-top: 0px;
}

#imagen7::before {
    filter: grayscale();
}

#imagen7 .margenes {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#imagen7 .margenes #video-grid {
    height: 90%;
    width: 90%;
}

#videos {
    padding-top: 130px;
}


#color-videos {
    background-image: linear-gradient(45deg, #4b225c, #913a48, #d4762b);
    padding: 100px 100px;
}

#video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 50px;
    align-items: center;
}

#video-grid .video {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#video-grid .video iframe {
    width: 100%;
    height: 80%;
    min-width: 200px;
    min-height: 230px;
    border-radius: 20px;
    border-width: 3px;
    border-style: solid;
    border-color: #88714d00;
}

#video-grid .video iframe:hover {
    border-color: #E46B00;
}

#texto4 {
    display: flex;
    align-items: center;
    flex-direction: column;
    align-self: center;
}

#texto4 a {
    font-size: 20px;
    margin-bottom: 0px;
}

#texto4 h1 {
    font-size: 70px;
    color: white;
    margin-top: 0px;
}

/* --- GALERÍA --- */
#galeria {
    padding-top: 70px;
    padding-bottom: 100px;
    width: 100%;
}

#galeria h1 {
    font-size: 75px;
    background-image: linear-gradient(135deg, rgb(109, 47, 0) 0%, #FF9100 100%);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    text-align: center;
    margin-top: 0;
    padding-bottom: 50px;
}

.carrusel-sombra {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    max-width: 1000px;
    margin: 0 auto;
    background-color: #111;
}

.carrusel-img {
    height: 600px;
    width: 100%;
    object-fit: cover;
}


/* --- CONTACTO --- */
#contacto h1 {
    background-image: linear-gradient(135deg, rgb(109, 47, 0) 0%, #FF9100 100%);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 70px;
    margin-top: 70px;
}

#contacto .margenes {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contacto .margenes h1 {
    padding-top: 40px;
}

#formulario {
    display: flex;
    justify-content: space-around;
    width: 100%;
    padding-top: 40px;
}

#imagen9 {
    background-image: url(./media/david-silva-guitarrista-684x1024.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    min-height: 100%;
    min-width: 40%;
    border-radius: 25px;
}

#formulario form input {
    width: 60%;
    border-radius: 25px;
}

form {
    width: 40%;
    padding: 30px;
    background: #000;
    border: 2px solid #E46B00;
    color: #ffffff;
    border-radius: 25px;
}

form label {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    color: #E46B00;
    text-transform: uppercase;
    letter-spacing: 1px;
}

form input[type="text"],
form input[type="email"],
#caja-mensaje {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    background: #111;
    border: 1px solid #333;
    color: #ffffff;
    font-size: 16px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
#caja-mensaje:focus {
    border-color: #E46B00;
    background: #181818;
    outline: none;
}

#caja-mensaje {
    min-height: 100px;
    max-width: 300px;
    resize: none;
    border-radius: 25px;
}

/* --- POLÍTICA DE PRIVACIDAD --- */
#Cabezera-priv {
    display: flex;
    align-items: center;
}

#Politica-priv {
    display: flex;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

#Politica-priv h1,
#titulo-priv {
    background-image: linear-gradient(135deg, rgb(109, 47, 0) 0%, #FF9100 100%);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    margin: 0;
    padding: 100px 20px 100px 20px;
}

#Politica-priv h1 {
    font-size: 70px;
}

#titulo-priv {
    font-size: 100px !important;
}

.contenido-privacidad {
    max-width: 1000px;
    text-align: left;
    padding: 0 20px 100px 20px;
    line-height: 1.8;
    color: #e0e0e0;
    font-size: 25px;
}


/* =========================================
   6. UTILIDADES
   ========================================= */
.margenes {
    width: 1300px;
    margin: 0 auto;
}

.linea,
#linea3 {
    display: flex;
    align-self: center;
    margin-top: 23px;
    margin-bottom: 64px;
    background-color: #E46B00;
    border-style: solid;
    border-width: 2px;
    border-radius: 5px;
    border-color: #E46B00;
    height: 4px;
    width: 150px;
}

#linea3 {
    width: auto;
}

.linea-vertical {
    background-color: #E46B00;
    width: 4px;
    height: 150px;
    border-radius: 5px;
}

.linea-izquierda {
    margin-top: 20px;
    margin-bottom: 40px;
    background-color: #E46B00;
    height: 4px;
    width: 60px;
    border-radius: 2px;
}

#linea2 {
    margin-top: 60px;
}

#separador div {
    max-width: 1300px;
    margin: 0 auto;
}


/* =========================================
   7. RESPONSIVE / MEDIA QUERIES
   ========================================= */

@media (max-width: 1350px) {

    /* Ajustes botón subir */
    .btn-subir {
        width: 45px !important;
        height: 45px !important;
        bottom: 20px !important;
        right: 20px !important;
    }

    .btn-subir svg {
        width: 22px !important;
        height: 22px !important;
    }

    /* Ajustes Política Privacidad */
    #Politica-priv h1 {
        font-size: 10vw !important;
        padding: 100px 20px 50px 20px !important;
        line-height: 1.1 !important;
        word-wrap: break-word !important;
    }

    .contenido-privacidad {
        font-size: 16px;
    }
}

@media (min-width: 768px) {

    /* Ajustes Cookie Banner (PC) */
    .cookie-banner {
        flex-direction: row;
        justify-content: space-between;
        padding: 20px 50px;
    }

    .cookie-banner p {
        margin-bottom: 0;
        text-align: left;
        padding-right: 30px;
    }
}


.galeria-contenedor {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.galeria-controles {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.galeria-miniaturas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
}

.miniatura {
    padding: 0;
    border: 3px solid transparent;
    border-radius: 15px;
    overflow: hidden;
    background: #111;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.miniatura:hover {
    transform: scale(1.03);
    border-color: #E46B00;
}

.miniatura img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.galeria-controles button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.lightbox-galeria {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 40px;
}

.lightbox-galeria.activo {
    display: flex;
}

#lightbox-imagen {
    max-width: 95vw;
    max-height: 92vh;
    object-fit: contain;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
    border-radius: 12px;
}

.lightbox-cerrar {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 42px;
    line-height: 1;
    background: transparent;
    color: white;
    border: none;
    cursor: pointer;
    z-index: 100000;
    padding: 10px 16px;
}
@media (max-width: 900px) {
    .galeria-miniaturas {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .galeria-miniaturas {
        grid-template-columns: 1fr;
    }

    .galeria-controles {
        flex-direction: column;
        align-items: center;
    }

    .lightbox-galeria {
        padding: 20px;
    }

    .lightbox-cerrar {
        top: 10px;
        right: 10px;
        font-size: 36px;
    }
}