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

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');
@font-face {
    font-family: 'CursivaTitulos';
    src: url('GreatVibes-Regular.ttf') format('truetype');
}

h1, h2, h3, h4, h5, h6,
.section-title,
.titulo-principal,
.titulo-seccion,
.subtitulo-principal,
.subtitulo-seccion,
.modal-title,
.item-title {
    font-family: 'Dancing Script', cursive !important;
    font-style: italic !important;
}

:root {
    --negro: #1a1a1a;
    --morado: #ECE2D2;
    --rosa: #daa520;
    --naranja: #ff6600;
    --amarillo: #d35400;
    --blanco: #ffffff;
    --cempasuchil: #FF9900;
    --cempasuchil-claro: #FFCC00;
    --cempasuchil-oscuro: #FF6600;
    
    /* NUEVAS variables para fuentes */
    --fuente-titulo-principal: 'Dancing Script', 'CursivaTitulos', cursive;
    --fuente-titulo-seccion: 'Playfair Display', serif;
    --fuente-texto: 'Cormorant Garamond', serif;
    --fuente-base: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--fuente-texto);
    font-size: 18px;
    line-height: 1.8;
    background-color: var(--negro);
    color: var(--blanco);
    overflow-x: hidden;
}

/* PÉTALOS DE CEMPASÚCHIL */
.petalos-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 500;
    pointer-events: none;
    overflow: hidden;
}

.petalo {
    position: absolute;
    background: var(--cempasuchil);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.85;
    z-index: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
    border: 1px solid var(--cempasuchil-claro);
}

.petalo.pequeno {
    width: 10px;
    height: 20px;
    opacity: 0.75;
}

.petalo.mediano {
    width: 20px;
    height: 50px;
    opacity: 0.85;
}

.petalo.grande {
    width: 30px;
    height: 50px;
    opacity: 0.9;
}

.petalo.color1 { 
    background: #FF9900;
    border: 1px solid #FFCC00;
}

.petalo.color2 { 
    background: #FF6600;
    border: 1px solid #FF9900;
}

.petalo.color3 { 
    background: #FF8800;
    border: 1px solid #FFAA00;
}

.petalo.color4 { 
    background: #FF5500;
    border: 1px solid #FF7700;
}

/* Posiciones de pétalos */
.petalo-1 { top: 5%; left: 2%; }
.petalo-2 { top: 15%; left: 8%; }
.petalo-3 { top: 20%; left: 15%; }
.petalo-4 { top: 10%; left: 22%; }
.petalo-5 { top: 25%; left: 30%; }
.petalo-6 { top: 5%; left: 38%; }
.petalo-7 { top: 20%; left: 45%; }
.petalo-8 { top: 15%; left: 52%; }
.petalo-9 { top: 25%; left: 60%; }
.petalo-10 { top: 10%; left: 68%; }
.petalo-11 { top: 30%; left: 5%; }
.petalo-12 { top: 35%; left: 12%; }
.petalo-13 { top: 40%; left: 20%; }
.petalo-14 { top: 30%; left: 28%; }
.petalo-15 { top: 45%; left: 35%; }
.petalo-16 { top: 35%; left: 42%; }
.petalo-17 { top: 40%; left: 50%; }
.petalo-37 { top: 8%; left: 82%; }
.petalo-38 { top: 15%; left: 85%; }
.petalo-39 { top: 22%; left: 88%; }
.petalo-40 { top: 5%; left: 90%; }
.petalo-41 { top: 18%; left: 92%; }
.petalo-42 { top: 12%; left: 94%; }
.petalo-43 { top: 25%; left: 96%; }
.petalo-44 { top: 8%; left: 98%; }

/* Animación de pétalos */
@keyframes flotar-petalo {
    0%, 100% { 
        transform: translateY(0) rotate(var(--rot-inicial));
        opacity: 0.8;
    }
    25% { 
        transform: translateX(-3px) translateY(-2px) rotate(var(--rot-25));
        opacity: 0.95;
    }
    50% { 
        transform: translateY(-4px) rotate(var(--rot-50));
        opacity: 0.9;
    }
    75% { 
        transform: translateX(-2px) translateY(-1px) rotate(var(--rot-75));
        opacity: 0.95;
    }
}

.petalo {
    animation: flotar-petalo 5s ease-in-out infinite;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(25, 25, 25, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(236, 226, 210, 0.6);
}

.logo {
    width: 80px;
    height: 80px;
    background: var(--blanco);  /* Fondo blanco puro */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'CursivaTitulos', cursive;
    font-size: 1.3rem;
    color: var(--negro);  /* Texto negro para contraste */
    border: 2px solid var(--negro);  /* Borde negro */
    transition: all 0.3s ease;
}

.logo:hover {
    transform: rotate(360deg);
    background: var(--blanco);  /* Mantener blanco al hacer hover */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

nav a:hover {
    color: #FFCC00;
    transform: translateY(-2px);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--rosa), var(--naranja));
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 80%;
}

/* Menu Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--blanco);
    transition: 0.3s;
    border-radius: 2px;
}

/* Sections */
section {
    min-height: 100vh;
    padding: 120px 5% 80px;
    scroll-margin-top: 80px;
}

.section-title {
    font-family: 'Dancing Script', cursive !important;
    font-size: clamp(3rem, 6vw, 4.5rem) !important;
    font-weight: 600 !important;
    font-style: italic !important;
    text-align: center !important;
    margin-bottom: 3.5rem !important;
    background: linear-gradient(135deg, var(--naranja), #FF6600, var(--amarillo)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    padding: 0 1rem !important;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
    letter-spacing: 1.2px !important;
    display: block !important;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, var(--rosa), var(--amarillo));
    border-radius: 2px;
}

/* INICIO */
#inicio {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    background: linear-gradient(135deg, #191919, #1a1a1a);
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-content {
    flex: 1;
    z-index: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-family: 'Dancing Script', cursive !important;
    font-size: clamp(3.8rem, 8vw, 6rem) !important;
    font-weight: 700 !important;
    font-style: italic !important;
    background: linear-gradient(135deg, var(--rosa), var(--naranja), var(--amarillo));
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.1 !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4) !important;
    letter-spacing: 1.5px !important;
    text-align: center;
}

.hero-content h2 {
    font-family: var(--fuente-titulo-seccion);
    font-size: clamp(1.4rem, 2.5vw, 2rem) !important;
    font-style: italic;
    font-weight: 400;
    color: var(--morado);
    margin-bottom: 2rem;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.hero-content p {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.7;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.85);
}

.btn-primary {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, var(--rosa), var(--naranja));
    color: var(--blanco);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1rem;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(218, 165, 32, 0.4);
    border-color: var(--amarillo);
}

.hero-image {
    flex: 1;
    text-align: center;
    max-width: 500px;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    border: 5px solid var(--amarillo);
    box-shadow: 0 20px 60px rgba(26, 26, 26, 0.8);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* NOSOTROS */
#nosotros {
    background: linear-gradient(135deg, #191919, #1a1a1a);
}

.nosotros-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 3rem;
}

.nosotros-text h3 {
    color: var(--rosa);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.nosotros-text p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== GALERÍA DE HISTORIA - CARRUSEL AUTOMÁTICO/MANUAL ===== */

.historia-gallery {
    flex: 1;
    max-width: 550px;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
}

.gallery-container {
    width: 100%;
    height: 550px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 25px;
    overflow: hidden;
    border: 4px solid var(--amarillo);
    box-shadow: 0 25px 70px rgba(211, 84, 0, 0.4);
    position: relative;
    transition: all 0.4s ease;
}

.gallery-container:hover {
    box-shadow: 0 30px 80px rgba(218, 165, 32, 0.6);
    transform: translateY(-5px);
}

.gallery-carousel {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.gallery-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.gallery-slide.active img {
    transform: scale(1.02);
}

/* Flechas de navegación */
.gallery-prev, .gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--amarillo);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 10;
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

.gallery-container:hover .gallery-prev,
.gallery-container:hover .gallery-next {
    opacity: 1;
}

.gallery-prev:hover, .gallery-next:hover {
    background: var(--naranja);
    transform: translateY(-50%) scale(1.1);
}

/* Indicadores (dots) */
.gallery-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.gallery-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gallery-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--amarillo);
    border-radius: 50%;
    transition: left 4s linear;
}

.gallery-indicator.active::after {
    left: 0;
}

.gallery-indicator.active {
    background: transparent;
    border-color: var(--blanco);
    transform: scale(1.2);
}

.gallery-indicator:hover {
    background: var(--amarillo);
    transform: scale(1.3);
}

/* Descripción de la imagen */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.7));
    padding: 1.5rem;
    border-top: 2px solid var(--morado);
    backdrop-filter: blur(10px);
}

.gallery-caption p {
    font-family: var(--fuente-texto-legible) !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    color: var(--blanco) !important;
    text-align: center;
    margin: 0;
    font-style: italic;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Contador de imágenes */
.contador-galeria {
    margin-top: 2rem;
    padding: 0.8rem 1.5rem;
    background: rgba(236, 226, 210, 0.1);
    border-radius: 30px;
    display: inline-block;
    border: 1px solid var(--morado);
}

.contador-galeria span {
    font-family: var(--fuente-cursiva-secundaria) !important;
    font-size: 1.4rem !important;
    color: var(--amarillo) !important;
}

#contadorActual {
    font-weight: 700;
    color: var(--rosa) !important;
}

/* Indicador de carga */
.gallery-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 2s infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive para la galería */
@media (max-width: 992px) {
    .historia-gallery {
        max-width: 100%;
        order: -1;
        margin-bottom: 3rem;
    }
    
    .gallery-container {
        height: 500px;
    }
    
    .gallery-carousel {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .gallery-container {
        height: 450px;
    }
    
    .gallery-carousel {
        height: 350px;
    }
    
    .gallery-caption {
        padding: 1.2rem;
    }
    
    .gallery-caption p {
        font-size: 1rem !important;
    }
    
    .gallery-prev, .gallery-next {
        width: 40px;
        height: 40px;
        opacity: 0.7;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        height: 400px;
    }
    
    .gallery-carousel {
        height: 300px;
    }
    
    .gallery-indicator {
        width: 12px;
        height: 12px;
    }
    
    .contador-galeria {
        padding: 0.6rem 1.2rem;
    }
    
    .contador-galeria span {
        font-size: 1.2rem !important;
    }
}

.historia-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    border: 5px solid var(--amarillo);
    box-shadow: 0 20px 60px rgba(211, 84, 0, 0.3);
    transition: transform 0.3s ease;
}

.historia-image img:hover {
    transform: scale(1.02);
}

.valores {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.valor-card {
    background: rgba(236, 226, 210, 0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--morado);
    transition: all 0.3s ease;
}

.valor-card:hover {
    transform: translateY(-10px);
    border-color: var(--rosa);
    box-shadow: 0 15px 40px rgba(218, 165, 32, 0.3);
}

.valor-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* EXPOSICIONES */
#expos {
    background: linear-gradient(135deg, #191919, #1a1a1a);
}

.expo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.expo-card {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--morado);
    transition: all 0.3s ease;
}

.expo-card:hover {
    transform: translateY(-10px);
    border-color: var(--rosa);
    box-shadow: 0 20px 50px rgba(218, 165, 32, 0.4);
}

.expo-image {
    height: 250px;
    background: linear-gradient(135deg, var(--morado), var(--rosa));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.expo-content {
    padding: 2rem;
}

.expo-content h3 {
    color: var(--amarillo);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.expo-content .fecha {
    color: var(--rosa);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* GALERÍA */
#galeria {
    background: linear-gradient(135deg, #191919, #1a1a1a);
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.galeria-item {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid var(--morado);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--morado), var(--rosa));
}

.galeria-item:hover {
    transform: scale(1.03);
    border-color: var(--rosa);
    box-shadow: 0 20px 40px rgba(218, 165, 32, 0.3);
}

.galeria-item .icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.galeria-item .item-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    color: var(--blanco);
    font-size: 1.2rem;
    font-weight: 700;
    z-index: 2;
    text-align: center;
}

/* MODAL */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    margin: 5vh auto;
    background: rgba(26, 26, 26, 0.95);
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--amarillo);
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 2px solid var(--morado);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-family: 'CursivaTitulos', cursive;
    font-size: 1.8rem;
    color: var(--amarillo);
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

.close-modal {
    background: none;
    border: none;
    color: var(--blanco);
    font-size: 2.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--rosa);
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    flex: 1;
    padding: 2rem;
    gap: 2rem;
    overflow: hidden;
}

.carousel-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    border: 3px solid var(--morado);
    background: rgba(0, 0, 0, 0.5);
    min-height: 400px;
}

#carouselSlides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 10;
}

.carousel-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--amarillo);
    color: var(--blanco);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--naranja);
    transform: scale(1.1);
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--amarillo);
    border-color: var(--blanco);
    transform: scale(1.2);
}

.piece-info {
    flex: 0 0 350px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 2rem;
    border: 2px solid var(--morado);
    overflow-y: auto;
}

.piece-info h3 {
    font-family: 'CursivaTitulos', cursive;
    font-size: 1.8rem;
    color: var(--amarillo);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--morado);
    padding-bottom: 0.5rem;
}

.piece-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.piece-details {
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-label {
    color: var(--rosa);
    font-weight: 600;
}

.detail-value {
    color: var(--blanco);
}

.available {
    color: #4CAF50;
    font-weight: 700;
}

.sold {
    color: #f44336;
    font-weight: 700;
}

.price {
    font-size: 1.5rem;
    color: var(--amarillo);
    font-weight: 700;
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(211, 84, 0, 0.2);
    border-radius: 10px;
    border: 2px solid var(--amarillo);
}

/* CONTACTO */
#contacto {
    background: linear-gradient(135deg, #191919, #1a1a1a);
}

.contacto-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.info-contacto {
    background: rgba(236, 226, 210, 0.1);
    padding: 3rem;
    border-radius: 20px;
    border: 3px solid var(--morado);
}

.info-contacto h3 {
    color: var(--amarillo);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item .icon {
    font-size: 2rem;
    color: var(--rosa);
    flex-shrink: 0;
}

.mapa-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--morado), var(--rosa));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-top: 2rem;
    opacity: 0.8;
}

/* Redes Sociales */
        #redes {
            background: linear-gradient(135deg, #191919);
        }

.redes-container {
            display: flex;
            justify-content: center;
            gap: 4rem;
            margin-top: 3rem;
            flex-wrap: wrap;
        }

        .red-social {
            text-align: center;
            transition: transform 0.3s ease;
        }

        .red-social:hover {
            transform: translateY(-10px);
        }

        .red-social a {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            color: var(--blanco);
        }

        .red-icon {
            width: 120px;
            height: 120px;
            background: linear-gradient(135deg, var(--morado), var(--rosa));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 4rem;
            border: 4px solid var(--amarillo);
            margin-bottom: 1rem;
            transition: all 0.3s ease;
        }

        .red-social:hover .red-icon {
            box-shadow: 0 15px 40px rgba(228, 0, 124, 0.5);
            border-color: var(--naranja);
        }

        .red-social h3 {
            color: var(--amarillo);
            font-size: 1.5rem;
        }

/* Footer */
        footer {
            background: #191919;
            padding: 3rem 5%;
            text-align: center;
            border-top: 3px solid var(--morado);
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 3rem;
            margin-bottom: 2rem;
        }

        .footer-section h4 {
            color: var(--amarillo);
            margin-bottom: 1rem;
        }

        .footer-menu {
            list-style: none;
        }

        .footer-menu a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-menu a:hover {
            color: var(--rosa);
        }

        .copyright {
            color: rgba(255, 255, 255, 0.5);
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* NUEVAS REGLAS PARA MEJORAR TIPOGRAFÍA */

        /* Subtítulos dentro de las secciones */
        .nosotros-text h3,
        .expo-content h3,
        .piece-info h3,
        .info-contacto h3,
        .red-social h3,
        .footer-section h4 {
            font-family: var(--fuente-titulo-seccion);
            font-size: 1.8rem !important;
            font-style: italic;
            font-weight: 500;
            color: var(--amarillo);
            margin-bottom: 1.2rem;
            letter-spacing: 0.5px;
        }

        /* Títulos de tarjetas de valores */
        .valor-card h4 {
            font-family: var(--fuente-titulo-seccion);
            font-size: 1.5rem !important;
            font-style: italic;
            font-weight: 500;
            color: var(--blanco);
            margin-bottom: 0.8rem;
        }

        /* Títulos en la galería */
        .item-title {
            font-family: var(--fuente-titulo-seccion);
            font-size: 1.4rem !important;
            font-style: italic;
            font-weight: 500;
        }

        /* Títulos en el modal */
        .modal-title {
            font-family: var(--fuente-titulo-principal);
            font-size: 2.2rem !important;
            font-weight: 600;
            color: var(--amarillo);
        }

        /* Mejorar contraste y legibilidad del texto */
        .hero-content p,
        .nosotros-text p,
        .expo-content p,
        .piece-description,
        .footer-menu a,
        .info-contacto div,
        .red-social p {
            color: rgba(255, 255, 255, 0.9);
            font-size: 1.1rem;
            line-height: 1.8;
            font-weight: 400;
        }

        /* Botones con texto más grande */
        .btn-primary {
            font-family: var(--fuente-titulo-seccion);
            font-size: 1.2rem !important;
            font-weight: 500;
            letter-spacing: 0.5px;
        }

        /* Mejorar legibilidad en navegación */
        nav a {
            font-family: var(--fuente-texto);
            font-size: 1.1rem !important;
            font-weight: 500;
            letter-spacing: 0.5px;
        }

        /* Aumentar contraste en algunos elementos */
        .detail-label,
        .detail-value,
        .price {
            font-size: 1.1rem !important;
            font-weight: 500;
        }

        /* Aumentar tamaño de fuente general */
        p, li, a, span, div:not(.icon) {
            font-size: 1.05rem;
            letter-spacing: 0.3px;
        }

    .hero-content h2 {
        font-family: 'Playfair Display', serif !important;
        font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
        font-weight: 500 !important;
        font-style: italic !important;
        color: var(--morado) !important;
        margin-bottom: 2rem !important;
        line-height: 1.4 !important;
        letter-spacing: 0.8px !important;
        text-align: center !important;
    }

    /* Subtítulos elegantes */
    .nosotros-text h3,
    .expo-content h3,
    .piece-info h3,
    .info-contacto h3 {
        font-family: 'Playfair Display', serif !important;
        font-size: 1.9rem !important;
        font-style: italic !important;
        font-weight: 500 !important;
        color: var(--amarillo) !important;
        margin-bottom: 1.2rem !important;
        letter-spacing: 0.6px !important;
    }

    /* Títulos de tarjetas */
    .valor-card h4 {
        font-family: 'Playfair Display', serif !important;
        font-size: 1.6rem !important;
        font-style: italic !important;
        font-weight: 500 !important;
        color: var(--blanco) !important;
        margin-bottom: 0.8rem !important;
    }

    /* Títulos de galería */
    .galeria-item .item-title {
        font-family: 'Playfair Display', serif !important;
        font-size: 1.5rem !important;
        font-style: italic !important;
        font-weight: 500 !important;
    }

    /* Títulos en redes sociales */
    .red-social h3 {
        font-family: 'Playfair Display', serif !important;
        font-size: 1.8rem !important;
        font-style: italic !important;
        font-weight: 500 !important;
        color: var(--amarillo) !important;
    }

    /* Títulos en footer */
    .footer-section h4 {
        font-family: 'Playfair Display', serif !important;
        font-size: 1.7rem !important;
        font-style: italic !important;
        font-weight: 500 !important;
        color: var(--amarillo) !important;
    }

    /* Título en modal */
    .modal-title {
        font-family: 'Dancing Script', cursive !important;
        font-size: 2.4rem !important;
        font-weight: 600 !important;
        font-style: italic !important;
        color: var(--amarillo) !important;
    }

    /* Línea decorativa bajo títulos principales */
    .section-title::after {
        content: '';
        position: absolute;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        width: 150px;
        height: 4px;
        background: linear-gradient(90deg, var(--rosa), var(--naranja), var(--amarillo)) !important;
        border-radius: 2px;
        display: block !important;
    }

    /* Reset de Comic Sans si existe */
    * {
        font-family: inherit !important;
    }

/* RESPONSIVE */
@media (max-width: 992px) {
    .modal-body {
        flex-direction: column;
        padding: 1rem;
    }
    
    .piece-info {
        flex: 0 0 auto;
        max-height: 40vh;
    }
    
    .carousel-container {
        height: 50vh;
    }
    
    .nosotros-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .valores {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
    }

    nav ul.active {
        left: 0;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    #inicio {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
        margin-bottom: 2rem;
    }

    .valores {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .modal-content {
        width: 95%;
        height: 90vh;
        margin: 5vh auto;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .piece-info {
        padding: 1rem;
    }
    
    .piece-info h3 {
        font-size: 1.5rem;
    }

    .price {
        font-size: 1.3rem;
        padding: 0.8rem;
    }
    
    .redes-container {
        gap: 2rem;
    }
    
    .red-social {
        min-width: 150px;
    }
}

@media (max-width: 480px) {
    .galeria-grid {
        grid-template-columns: 1fr;
    }
    
    .galeria-item {
        height: 250px;
    }
    
    .modal-header {
        padding: 1rem;
    }

    .modal-title {
        font-size: 1.4rem;
    }
    
    .expo-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
/* Ocultar botones de navegación de la galería de historia */
.gallery-prev, .gallery-next {
    display: none !important;
}