
:root {
    --color-header: rgba(180, 180, 180, 0.9);
    --botones: rgb(128, 124, 124); 
    --color-letra: #333;

    --letra1: "Georgia", "Times New Roman", "Garamond", serif;
    --letra2: "Helvetica", sans-serif;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    padding-top: 50px; 
    background-color: #e6e3d1;
}

        /*Estilos de letra*/
h1,h2,h3,a,footer{
    font-family: var(--letra1);
    font-weight: 500;
    color: #000;
}

p, button {
    font-family: var(--letra2);
    line-height: 1.6; 
    color: var(--color-letra);
}
        /*Header*/
header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 50px;
    padding: 0 5%;
    background-color: var(--color-header);
    backdrop-filter: blur(5px);

    display: flex;
    justify-content: space-between;
    align-items: center;
    
}

a {
    text-decoration: none;
}

/*Botón hamburguesa - oculto en desktop*/
#menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

#menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #000;
    transition: 0.3s;
}

/*Animación a "X" cuando el menú está abierto*/
#menu-toggle.activo span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#menu-toggle.activo span:nth-child(2) {
    opacity: 0;
}

#menu-toggle.activo span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

#Links-Pagina {
    margin-right: 15px;
    display: flex;
    gap: 20px;
}

#Nombre {
    margin-left: 15px;
}
    /*Seccion artista - imagen y nombre*/
#Artista{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    min-height: 50vh;
    font-size: x-large;
    
    background-image: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255, 0.5)), url('../images/Pintura1.jpg');
    background-repeat: repeat-x; 
    background-size: contain;       
    background-position: center;
    background-attachment: fixed; 
    


}

.btn-galeria {
    height: 40px;
    text-align: center;
    min-width: 25vh;
    border: 0;
    cursor: pointer;
}

.btn-galeria:hover {
    background-color: var(--botones);
}

    /*Seccion info - foto y descripcion*/
#Info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    
    max-width: 1000px; 
    margin: 40px auto;     
    gap: 150px; 
    
    padding: 0 20px;
    align-items: center; 

    align-items: start;
}

#Texto-Info {   
    text-align: justify;
}

#Img-Info {
    width: 70%;       
    max-width: 450px; 
    max-height: 500px;
    border-radius: 8px; 
    justify-self: right; 
}

#btn-contacto {
    border: 2px solid #000;
    width: 100px;
    height: 40px;
    background-color: aliceblue;
    cursor: pointer;
}

#btn-contacto:hover {
    background-color: var(--botones);
}

    /*Seccion pinturas destacadas*/
#pinturas-destacadas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 15px; 
    padding: 20px;

}

.img-destacada {
    width: 100%;      
    height: 250px;    
    object-fit: cover; 
    border-radius: 8px;
    transition: 0.5s;
}

.img-destacada:hover {
    transform: scale(1.05);
}

#Titulo-Destacado {
    text-align: center;
}

#btn-galeria-dest {
    text-align: center;
}

.btn-galeria2 {
    border: 2px solid #000;
    height: 40px;
    min-width: 30vh;
    max-width: 30vh;
    cursor: pointer;

    margin-bottom: 100px;
    margin-top: 20px;
}

.btn-galeria2:hover {
    background-color: var(--botones);
}

    /*Footer*/
footer {
    padding: 10px;
    text-align: center;
}

    /*Pagina Catalogo*/
#Titulo-Galeria {
    text-align: center;
    margin: 50px;
}



/*Pagina Contacto*/

#Contacto-Header {
    background-color: var(--color-header);
    text-align: center;
    padding: 50px 20px;
}

#Contacto-Header h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

#Contacto-Header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-letra);
}

#Contenedor-Contacto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;

    max-width: 1100px;
    margin: 50px auto 100px auto;
    padding: 0 5%;
    align-items: start;
}

#Info-Contacto-Col h2,
#Form-Contacto-Col h2 {
    margin-bottom: 25px;
}

    /*Tarjeta de Pinturas Personalizadas*/
.personalizadas-card {
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 10px;
    padding: 30px;
}

.etiqueta-personalizada {
    display: inline-block;
    background-color: #000;
    color: #fff;
    font-family: var(--letra2);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.personalizadas-card h2 {
    margin-bottom: 12px;
}

.personalizadas-intro {
    margin-bottom: 25px;
}

.pasos-personalizados {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 28px;
}

.paso {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.paso-numero {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #000;
    color: #fff;
    font-family: var(--letra1);
    font-weight: 600;

    display: flex;
    align-items: center;
    justify-content: center;
}

.paso-texto h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.paso-texto p {
    font-size: 14px;
}

.btn-personalizada {
    display: block;
    text-align: center;
    background-color: #000;
    color: #fff;
    font-family: var(--letra2);
    font-weight: 600;
    padding: 14px 20px;
    border-radius: 6px;
    transition: opacity 0.15s;
}

.btn-personalizada:hover {
    opacity: 0.8;
}

    /*Items de info de contacto (email, whatsapp, instagram)*/
.item-contacto {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.icono-circulo {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #ececec;

    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.texto-contacto {
    display: flex;
    flex-direction: column;
    font-family: var(--letra2);
}

.texto-contacto strong {
    font-family: var(--letra1);
    color: #000;
    margin-bottom: 2px;
}

.texto-contacto span {
    color: var(--color-letra);
    font-size: 14px;
}

    /*Tarjeta de horario*/
.horario-card {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    margin-top: 10px;
}

.horario-card h3 {
    margin-bottom: 12px;
}

.horario-fila {
    display: flex;
    justify-content: space-between;
    font-family: var(--letra2);
    font-size: 14px;
    margin-bottom: 8px;
}

.horario-nota {
    font-size: 12px;
    color: #777;
    margin-top: 10px;
}

    /*Formulario*/
#form-contacto {
    display: flex;
    flex-direction: column;
}

#form-contacto label {
    font-family: var(--letra2);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    margin-top: 16px;
}

#form-contacto label:first-child {
    margin-top: 0;
}

#form-contacto input,
#form-contacto select,
#form-contacto textarea {
    font-family: var(--letra2);
    font-size: 14px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    color: var(--color-letra);
}

#form-contacto input:focus,
#form-contacto select:focus,
#form-contacto textarea:focus {
    outline: none;
    border-color: #000;
}

#form-contacto textarea {
    resize: vertical;
}

#btn-enviar {
    margin-top: 25px;
    height: 45px;
    border: 2px solid #000;
    background-color: aliceblue;
    font-family: var(--letra2);
    font-weight: 600;
    cursor: pointer;
}

#btn-enviar:hover {
    background-color: var(--botones);
}

#btn-enviar:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

#mensaje-estado {
    margin-top: 12px;
    font-family: var(--letra2);
    font-size: 14px;
}

.mensaje-exito {
    color: #2e7d32;
}

.mensaje-error {
    color: #c62828;
}

.nota-form {
    font-size: 12px;
    color: #777;
    margin-top: 15px;
    font-family: var(--letra2);
}

    /*Responsive*/
@media (max-width: 800px) {
    #Contenedor-Contacto {
        grid-template-columns: 1fr;
        gap: 50px;
    }

}



/*   */
/*Pagina Catalogo - Cards*/
#Contenedor-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;

    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 5%;
}

.card {
    cursor: pointer;
}

.card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    transition: 0.5s;
}

.card:hover img {
    transform: scale(1.05);
}

.card .info {
    padding: 10px 5px;
}

.card h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.card .info-inferior {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.precio {
    font-family: var(--letra1);
    font-weight: 600;
    font-size: 16px;
}

.disponible {
    color: #2e7d32;
    font-family: var(--letra2);
    font-size: 13px;
}

.vendida {
    color: #999;
    font-family: var(--letra2);
    font-size: 13px;
}

    /*Modal de detalle*/
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;

    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.activo {
    display: flex;
}

.modal-contenido {
    background-color: #fff;
    max-width: 850px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 25px;
}

#modal-imagen {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-info #modal-descripcion {
    text-align: justify;
    margin-top: 10px;
}

.modal-info-inferior {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
}

.cerrar-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--color-letra);
}

    /*Flechas de navegación del modal (pintura anterior/siguiente)*/
.modal-flecha {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2001;

    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background-color: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 18px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-flecha:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-flecha-izq {
    left: 20px;
}

.modal-flecha-der {
    right: 20px;
}

/*iOS Safari (y WhatsApp en iPhone) no soporta background-attachment:fixed y no muestra la imagen*/
@media (max-width: 900px) {
    #Artista {
        background-attachment: scroll;
    }
}

@media (max-width: 900px) {
    #Info {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
        padding: 0 20px;
        margin: 25px auto;
    }

    #Foto {
        display: flex;
        justify-content: center;
        margin-top: 30px;
    }

    #Img-Info {
        order: -1;
        max-height: 400px;
        max-width: 200px;
        
    }
}

@media (max-width: 700px) {

    #Info {
        
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 20px;
        margin: 25px auto;
    }

    .modal-flecha {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .modal-flecha-izq {
        left: 8px;
    }

    .modal-flecha-der {
        right: 8px;
    }
}

/**/
@media (max-width: 700px) {
    .modal-contenido {
        grid-template-columns: 1fr;
    }

    #modal-imagen {
        max-height: 300px;
    }

    #Foto {
        display: flex;
        justify-content: center;
    }


    #Img-Info {
        order: -1;
        max-height: 320px;
        max-width: 180px;
    }

}

/* Responsive - celulares */
@media (max-width: 600px) {
    header {
        padding: 0 4%;
    }

    #Nombre {
        font-size: 15px;
        margin-left: 0;
        white-space: nowrap;
    }

    /*Muestra el botón hamburguesa*/
    #menu-toggle {
        display: flex;
    }

    /*Menú desplegable oculto por defecto*/
    #Links-Pagina {
        position: fixed;
        top: 50px;
        left: 0;
        width: 100%;
        margin-right: 0;
        flex-direction: column;
        gap: 0;
        background-color: var(--color-header);
        backdrop-filter: blur(5px);

        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    #Links-Pagina.abierto {
        max-height: 250px;
    }

    #Links-Pagina a {
        padding: 15px 20px;
        font-size: 16px;
        border-top: 1px solid rgba(0,0,0,0.1);
    }

    /* 2. Sobre la Artista: foto primero, texto después */
    #Info {
        
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 20px;
        margin: 25px auto;

    }

    #Foto {
        display: flex;
        justify-content: center;
    }
    
    #Img-Info {
        order: -1;
        max-height: 280px;
        max-width: 150px;
    }

    #Texto-Info {
        text-align: left;
    }

    /* 3. Botón "Ver Galería" más grande y notorio */
    .btn-galeria {
        width: 100%;
        min-width: unset;
        height: 48px;
        font-size: 15px;
    }

    .btn-galeria2 {
        width: 90%;
        min-width: unset;
        max-width: unset;
        height: 48px;
        margin-bottom: 40px;
        margin-top: 15px;
    }

    #btn-galeria-dest {
        padding: 0 20px;
    }

    /* Pinturas destacadas y catálogo: una columna */
    #pinturas-destacadas {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    #Contenedor-cards {
        grid-template-columns: 1fr;
        padding: 0 4%;
        gap: 20px;
    }

    /* 4. Imágenes menos altas y más proporcionadas en móvil */
    .img-destacada {
        height: 220px;
    }

    .card img {
        height: 220px;
    }

    /* 5. Espaciado general más compacto */
    #Titulo-Galeria {
        margin: 30px 20px;
    }

    #Contacto-Header {
        padding: 35px 20px;
    }

    #Contacto-Header h1 {
        font-size: 28px;
    }

    #Contenedor-Contacto {
        margin: 30px auto 60px auto;
        gap: 35px;
    }
}