/* --- VARIABLES DE COLOR --- */
:root {
    --color-fondo-claro: #f7e8e8; /* Rosado pálido */
    --color-texto-oscuro: #ff5383; /* Rosado principal para texto, links */
    --color-titulo: #222; /* Negro para títulos y contraste */
    --color-contenedor: #ffffff; /* Blanco para contenedores */
    --color-borde: #d8c2c2; /* Borde rosado intermedio */
}


/* --- ESTILOS BASE Y MAQUETACIÓN GENERAL --- */
body {
    font-family: Arial, sans-serif;
    background-color: var(--color-fondo-claro);
    color: var(--color-texto-oscuro);
    margin: 0;
    padding: 0;
    text-align: center;
}

header {
    /* Banner de nombre animado: Fondo blanco, texto rosado */
    background-color: var(--color-contenedor); 
    padding: 30px 0 10px;
    border-bottom: 3px solid var(--color-borde); 
    color: var(--color-texto-oscuro); 
}

/* Contenedor especial para el GIF de nombre */
.titulo-gif-contenedor {
    display: inline-block;
    margin: 0 auto;
}

/* TAMAÑO DEL GIF DEL NOMBRE (el doble de grande) */
header img {
    max-height: 160px !important;
    height: auto;
}

h1 { /* Este estilo ahora es redundante si solo usamos el GIF, pero lo mantenemos por si acaso */
    font-family: Georgia, serif;
    font-size: 3em;
    color: var(--color-titulo);
    margin: 0;
}

/* BARRA DE NAVEGACIÓN: Fondo rosado con texto blanco */
nav {
    background-color: var(--color-texto-oscuro); /* Fondo rosado */
    padding: 10px 0;
    border-bottom: 1px solid var(--color-borde);
}

nav a {
    text-decoration: none;
    color: var(--color-contenedor); /* Texto blanco */
    margin: 0 15px 10px;
    display: inline-block;
    padding: 5px;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.2s ease;
}

nav a:hover {
    color: var(--color-contenedor);
    border-bottom: 2px solid var(--color-contenedor); /* Borde de hover blanco */
}

.contenedor-principal {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* --- ESTILOS DE LA GALERÍA (index.html) --- */

/* --- ESTILOS PARA OBRAS DESTACADAS (2 Rectangulares) --- */

.galeria-destacada {
    display: flex;
    justify-content: center;
    gap: 30px; /* Espacio entre las dos obras destacadas */
    margin-bottom: 40px; /* Espacio antes de que empiecen las obras cuadradas */
    padding: 0 20px;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.item-arte-destacado {
    /* Define el tamaño para que sea rectangular (más ancho que alto) */
    width: 45%; 
    height: 350px; /* Altura fija para que sean más grandes */
    position: relative;
    overflow: hidden;
    display: block;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s ease;
}

/* Aplicamos los estilos de imagen y hover a las nuevas obras destacadas */
.item-arte-destacado img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.item-arte-destacado .titulo-overlay {
    /* Mantiene el estilo del overlay de las obras cuadradas */
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%); 
    width: 90%;
    padding: 15px;
    background-color: rgba(255, 83, 131, 0.9); 
    color: #fff;
    font-weight: bold;
    font-size: 1.3em;
    opacity: 0; 
    transition: opacity 0.4s ease, transform 0.4s ease;
    border-radius: 4px;
}

/* Efectos al pasar el mouse (Hover) */
.item-arte-destacado:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transform: scale(1.01); 
}

.item-arte-destacado:hover img {
    transform: scale(1.03); 
}

.item-arte-destacado:hover .titulo-overlay {
    opacity: 1;
    transform: translate(-50%, -50%); 
}

.galeria-contenedor {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.item-arte {
    position: relative;
    width: 300px; 
    height: 300px;
    margin: 15px;
    overflow: hidden;
    display: block;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s ease;
}

.item-arte img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.titulo-overlay {
    position: absolute;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%); /* Centrado */
    width: 90%;
    padding: 10px;
    background-color: rgba(255, 83, 131, 0.9); 
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
    opacity: 0; /* Ocultamos el título por defecto */
    transition: opacity 0.4s ease, transform 0.4s ease;
    border-radius: 4px;
}



/* Efectos al pasar el mouse (Hover) */
.item-arte-destacado:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transform: scale(1.01); /* Menos inclinación, solo un ligero zoom */
}

.item-arte-destacado:hover img {
    transform: scale(1.03); 
}

.item-arte-destacado:hover .titulo-overlay {
    opacity: 1;
    transform: translate(-50%, -50%); 
}

/* Efectos al pasar el mouse (Inclinación y zoom) */
.item-arte:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
    transform: scale(1.03) rotate(1deg); 
}

.item-arte:hover img {
    transform: scale(1.02); 
}

.item-arte:hover .titulo-overlay {
    opacity: 1;
    transform: translate(-50%, -60%); 
}

/* --- ESTILOS ESPECÍFICOS PARA SOBRE MÍ (acerca.html) --- */

.acerca-contenedor {
    display: flex;
    flex-wrap: wrap; 
    gap: 40px;
    align-items: center; 
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
}

/* Nuevo contenedor para las dos fotos/GIFs */
.acerca-multimedia {
    flex: 2; 
    min-width: 450px; 
    text-align: center;
}

/* Estilo para cada elemento multimedia (GIF y Foto) */
.acerca-foto {
    margin-bottom: 20px; 
    max-width: 100%;
    display: inline-block; 
}

.acerca-foto img {
    max-width: 100%; 
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none; 
}

.acerca-multimedia p {
    margin-top: 0; 
}

.acerca-texto {
    flex: 3; 
}

.acerca-texto h2 {
    color: var(--color-titulo);
    margin-top: 0;
    border-bottom: 2px solid var(--color-borde);
    padding-bottom: 10px;
    font-size: 2em;
}

.acerca-texto p, .acerca-texto ul {
    color: var(--color-texto-oscuro);
    line-height: 1.6;
    margin-bottom: 20px;
}

.acerca-texto ul {
    list-style-type: none; 
    padding-left: 0;
}

/* --- ESTILOS ESPECÍFICOS PARA CONTACTO (contacto.html) --- */
.contacto-contenedor {
    display: flex;
    flex-direction: column; /* La columna exterior es correcta (arriba/abajo) */
    justify-content: center;
    align-items: center;
    height: 65vh; 
    text-align: center;
    max-width: 1300px; 
    margin: 0 auto;
}

/* Contenedor que alinea los GIFs y el Gmail HORIZONTALMENTE */
.contacto-flex-row {
    display: flex;
    align-items: center; /* Alinea verticalmente (centra) */
    justify-content: center; /* Centra el bloque total horizontalmente */
    width: 100%; 
    margin-bottom: 20px; 
}

/* Estilos para los contenedores de los GIFs */
.contacto-gif {
    flex-basis: 250px; /* Le da un tamaño fijo para que no encoja */
    flex-shrink: 0; 
    padding: 0 30px; /* Espacio a los lados del GIF */
}

.contacto-gif img {
    max-width: 100%; 
    max-height: 250px; /* Tamaño máximo para el GIF */
    height: auto;
    display: block;
}

/* Estilos para el Gmail central */
.contacto-email {
    flex-grow: 1; /* Permite que el email ocupe el espacio central */
    text-align: center;
}

.contacto-email h2 {
    font-size: 4em; 
    color: var(--color-titulo); 
    margin: 0; 
    line-height: 1.2;
}

/* Estilos para el texto debajo del email */
.contacto-contenedor p {
    font-size: 1.2em; 
    color: var(--color-texto-oscuro);
    margin: 10px 0;
}

.contacto-contenedor a {
    color: var(--color-texto-oscuro);
    text-decoration: none;
    transition: opacity 0.2s;
}

.contacto-contenedor a:hover {
    opacity: 0.7;
}

/* --- ESTILOS DEL MODAL (Lightbox) --- */

#modal-galeria {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#modal-galeria.visible {
    opacity: 1;
    visibility: visible;
}

.modal-contenido {
    background-color: var(--color-contenedor);
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto; 
    position: relative;
    text-align: center;
}

#modal-imagen {
    max-width: 100%; 
    max-height: 80vh; 
    width: auto;
    height: auto;
    object-fit: contain; 
    display: block;
    margin: 0 auto 15px auto;
    border: 1px solid var(--color-borde);
}

.cerrar {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.cerrar:hover,
.cerrar:focus {
    color: var(--color-titulo);
    text-decoration: none;
    cursor: pointer;
}

#modal-titulo {
    color: var(--color-titulo);
    margin-top: 5px;
    margin-bottom: 5px;
}

#modal-descripcion {
    color: var(--color-texto-oscuro);
    line-height: 1.5;
    text-align: center; /* ¡CAMBIO AQUÍ: Centrar el texto! */
    margin-top: 10px;
}

/* Pie de página */
footer {
    background-color: var(--color-fondo-claro);
    color: var(--color-texto-oscuro);
    padding: 20px 0;
    margin-top: 50px;
    border-top: 1px solid var(--color-borde);
}
