/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #FFFCF8;
    color: #2C2A29;
    line-height: 1.5;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, .logo span, .nav-links a {
    font-family: 'Playfair Display', serif;
}

:root {
    --gold: #C6A15B;
    --gold-dark: #A67C45;
    --gold-bright: #e2b612;
    --rose: #E9D9D0;
    --cream: #FFF7F0;
    --brown: #5E3E2B;
    --dark-brown: #3E2A1F;
    --footer-bg: #606c38;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

/* Navbar */
nav {
    background: rgba(255, 247, 240, 0.98);
    backdrop-filter: blur(8px);
    padding: 0.8rem 7%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

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

.logo-text {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--brown);
    font-family: 'Poppins', sans-serif;
}

@media (max-width: 768px) {
    .logo-img { height: 50px; }
    .logo-text { font-size: 1.1rem; }
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: var(--brown);
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--gold);
    bottom: -6px;
    left: 0;
    transition: 0.3s;
}

.nav-links a:hover:after, .nav-links a.active:after {
    width: 100%;
}

.nav-btn-reserva {
    background: var(--gold-bright);
    padding: 8px 20px;
    border-radius: 40px;
    color: white !important;
}

.nav-btn-reserva:after { display: none !important; }
.nav-btn-reserva:hover { background: #c49d0e; transform: translateY(-2px); }

.menu-icon {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--brown);
}

/* Mobile Navbar */
@media (max-width: 768px) {
    .menu-icon { display: block; z-index: 1001; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 247, 240, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 1.5rem;
        transition: right 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 5rem 2rem 2rem;
    }
    .nav-links::before {
        content: '';
        position: absolute;
        top: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 50px;
        background-image: url('img/italatinas_circular.png');
        background-size: contain;
        background-repeat: no-repeat;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .nav-links.active::before { opacity: 0.8; }
    .nav-links.active { right: 0; }
    .nav-links li {
        opacity: 0;
        transform: translateX(30px);
        transition: all 0.3s ease;
        width: 100%;
        text-align: center;
    }
    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.5s; }
    .nav-links a { font-size: 1.1rem; }
    .nav-btn-reserva { margin-top: 0.5rem; }
}

/* Hero Gallery */
.hero-gallery {
    position: relative;
    height: 60vh;
    min-height: 450px;
    background: linear-gradient(135deg, #2C2A29 0%, #5E3E2B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay-gallery {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1523906834658-6e24ef2386f9?w=1600') center/cover no-repeat;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .hero-gallery { height: 50vh; min-height: 400px; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; }
    .stat-number { font-size: 1.8rem; }
    .hero-stats { gap: 1.5rem; }
}

/* Tabs */
.gallery-tabs {
    padding: 2rem 7% 0;
    background: #FFFCF8;
}

.tabs-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 2px solid var(--gold);
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: var(--brown);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn i {
    font-size: 1.1rem;
}

.tab-btn:hover {
    background: var(--gold);
    color: white;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--gold);
    color: white;
    box-shadow: 0 5px 15px rgba(198, 161, 91, 0.3);
}

/* Gallery Sections */
.gallery-section {
    padding: 4rem 7%;
    display: none;
}

.gallery-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--brown);
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--gold);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #6c5a4b;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    aspect-ratio: 1 / 1;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.2);
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.video-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.15);
}

.video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(198, 161, 91, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.play-icon i {
    font-size: 1.8rem;
    color: white;
    margin-left: 5px;
}

.video-card:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--gold);
}

.video-info {
    padding: 1.5rem;
}

.video-info h4 {
    font-size: 1.1rem;
    color: var(--brown);
    margin-bottom: 0.5rem;
}

.video-info p {
    font-size: 0.85rem;
    color: #6c5a4b;
    margin-bottom: 0.5rem;
}

.video-date {
    font-size: 0.75rem;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Gallery Message */
.gallery-message {
    text-align: center;
    padding: 4rem;
    background: #F9F4EF;
    border-radius: 28px;
    margin-top: 2rem;
}

.gallery-message i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.gallery-message p {
    color: #6c5a4b;
    font-size: 1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #F9F4EF, #FFF7F0);
    margin: 2rem 7% 4rem;
    padding: 4rem;
    border-radius: 48px;
    text-align: center;
}

.cta-container h3 {
    font-size: 1.8rem;
    color: var(--brown);
    margin-bottom: 1rem;
}

.cta-container p {
    color: #6c5a4b;
    margin-bottom: 2rem;
}

.btn-primary {
    background: var(--gold);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background: var(--gold-dark);
    transform: translateY(-3px);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.video-modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 900px;
    animation: modalSlideUp 0.3s ease;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 35px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.video-modal-close:hover {
    color: var(--gold);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

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

/* Footer */
footer {
    background: var(--footer-bg);
    color: #EDE6DC;
    padding: 3rem 7% 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .footer-content { flex-direction: column; text-align: center; gap: 1.5rem; }
}

.footer-col h3, .footer-col h4 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    color: #e9d6a7;
}

.footer-col p, .footer-col a {
    color: #f0ede8;
    text-decoration: none;
    margin: 0.5rem 0;
    display: block;
    transition: 0.2s;
}

.footer-col a:hover {
    color: var(--gold-bright);
    transform: translateX(5px);
    display: inline-block;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .footer-logo-container { justify-content: center; }
}

.footer-logo {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

.footer-logo-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: #e9d6a7;
    font-family: 'Poppins', sans-serif;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .social-icons { justify-content: center; }
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    transition: all 0.3s ease;
}

.social-link i { font-size: 1.4rem; }
.social-link.whatsapp i { color: #25D366; }
.social-link.instagram i { color: #E4405F; }
.social-link.facebook i { color: #1877F2; }
.social-link.tiktok i { color: #ffffff; }
.social-link.youtube i { color: #FF0000; }
.social-link.beacon i { color: #f0ede8; }

.social-link:hover { transform: translateY(-5px); }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-section { padding: 3rem 5%; }
    .section-title { font-size: 2rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
    .videos-grid { grid-template-columns: 1fr; }
    .cta-section { margin: 2rem 5% 3rem; padding: 2rem; }
    .cta-container h3 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .hero-gallery { height: auto; min-height: 350px; padding: 3rem 1rem; }
    .hero-content h1 { font-size: 1.8rem; }
    .stat-number { font-size: 1.5rem; }
    .tab-btn { padding: 8px 16px; font-size: 0.85rem; }
    .gallery-grid { grid-template-columns: 1fr; }
}