/* ========================================
   VARIABLES Y ESTILOS GLOBALES
   ======================================== */
:root {
    --primary-dark: #0a0a0a;
    --secondary-dark: #1a1a1a;
    --accent-gold: #d4af37;
    --accent-red: #8b0000;
    --text-light: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primary-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

/* ========================================
   NAVEGACIÓN
   ======================================== */
.navbar {
    background: linear-gradient(to bottom, rgba(10,10,10,0.95), rgba(10,10,10,0.7));
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10,10,10,0.98);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.navbar-brand {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-gold) !important;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 400;
    margin: 0 1rem;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-gold) !important;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><rect fill="%23000" width="1920" height="1080"/><path fill="%23111" d="M0 0h1920v1080H0z" opacity=".5"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(139,0,0,0.2) 100%);
}

.hero-content {
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 5rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    letter-spacing: 3px;
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-btn {
    background: linear-gradient(45deg, var(--accent-red), #b30000);
    color: white;
    padding: 1rem 3rem;
    border: 2px solid var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.hero-btn:hover::before {
    left: 100%;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    color: white;
}

/* ========================================
   SECCIONES GENERALES
   ======================================== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: var(--accent-gold);
    margin: 1rem auto;
}

/* ========================================
   CAROUSEL SECTION
   ======================================== */
.carousel-section {
    padding: 60px 0;
    background: var(--primary-dark);
    position: relative;
}

.carousel-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.carousel-wrapper {
    position: relative;
    height: 500px;
    overflow: hidden;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    background: var(--secondary-dark);
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
    z-index: 1;
}

.carousel-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.carousel-video-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    border: none;
    opacity: 0.7;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    padding: 3rem 2rem 2rem;
    z-index: 2;
    animation: slideUp 0.6s ease-out;
}

.carousel-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.carousel-text {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: -70px;
}

.carousel-btn-next {
    right: -70px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.3);
    border: 2px solid var(--accent-gold);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--accent-gold);
    transform: scale(1.3);
}

.indicator:hover {
    background: rgba(212, 175, 55, 0.6);
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
    background: var(--secondary-dark);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ========================================
   PORTFOLIO SECTION
   ======================================== */
.portfolio-card {
    background: var(--secondary-dark);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
    margin-bottom: 2rem;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s ease;
}

.portfolio-card:hover::before {
    left: 100%;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
}

.portfolio-img {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--accent-gold);
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
    background: var(--secondary-dark);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-light);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-gold);
    color: var(--text-light);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.form-control::placeholder {
    color: rgba(224, 224, 224, 0.5);
}

.btn-submit {
    background: linear-gradient(45deg, var(--accent-red), #b30000);
    color: white;
    padding: 1rem 3rem;
    border: 2px solid var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    background: linear-gradient(45deg, #b30000, var(--accent-red));
    color: white;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--primary-dark);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.social-links a {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: white;
    transform: translateY(-5px);
}

/* ========================================
   ANIMACIONES
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
        letter-spacing: 4px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    /* Carousel responsive */
    .carousel-wrapper {
        height: 350px;
    }

    .carousel-btn-prev {
        left: 10px;
    }

    .carousel-btn-next {
        right: 10px;
    }

    .carousel-title {
        font-size: 1.4rem;
    }

    .carousel-text {
        font-size: 0.9rem;
    }

    .carousel-content {
        padding: 2rem 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .carousel-wrapper {
        height: 280px;
    }

    .carousel-title {
        font-size: 1.2rem;
    }

    .carousel-text {
        font-size: 0.85rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-indicators {
        gap: 8px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }
}
