@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

:root {
    --white: #ffffff;
    --cream: #fdfaf0;
    --dark: #2c2c2c;
    --gold: #D9A74A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--white);
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: transparent;
    transition: 0.4s;
    z-index: 1000;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: var(--white);
    margin-left: 30px;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo {
    font-weight: bold;
    color: var(--white);
    font-size: 1.2rem;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}



.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-color: #333;
    animation: fadeIn 1.5s ease-in-out;
    padding: 0 20px;
    /* Padding lateral para móvil */
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

/* Animaciones de entrada escalonadas */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 5rem);
    letter-spacing: clamp(2px, 1vw, 4px);
    font-weight: 700;
    margin-bottom: 15px;
    animation: slideUp 1s ease-out 0.2s both;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    letter-spacing: 2px;
    margin-bottom: 30px;
    animation: slideUp 1s ease-out 0.4s both;
}

.hero-btns {
    animation: slideUp 1s ease-out 0.6s both;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.btn {
    padding: 15px 35px;
    text-decoration: none;
    margin: 10px;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s;
    font-size: 0.9rem;
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
}

.btn-solid {
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--white);
}

.btn-solid:hover {
    background: transparent;
    color: var(--white);
}

.container {
    padding: 80px 8%;
}

.image-features {
    display: flex;
    gap: 20px;
    height: 350px;
    transition: transform 1.2s ease-out, opacity 1.2s ease-out;
}

.hidden {
    opacity: 0;
    transform: translateY(50px);
}

.show {
    opacity: 1;
    transform: translateY(0);
}

.feature-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item span {
    color: var(--white);
    font-size: 2rem;
    font-weight: 800;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.feature-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.description-section {
    padding: 100px 10%;
    background-color: var(--cream);
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
}

.desc-title,
.desc-content {
    flex: 1;
    min-width: 300px;
}

.desc-title h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--dark);
}

.desc-content p {
    margin-bottom: 25px;
    line-height: 1.8;
    color: #555;
    font-size: 1.05rem;
}

.parallax-bg {
    height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.parallax-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    text-align: center;
    padding: 20px;
}

.parallax-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.gallery-carousel {
    padding: 80px 0;
    background: var(--white);
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-track img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5);
    border: none;
    color: var(--dark);
    font-size: 2rem;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, color 0.3s;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.talleres-header {
    padding-top: 120px;
    padding-bottom: 40px;
    text-align: center;
    background-color: var(--cream);
}

.talleres-header h1 {
    font-size: 3rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.talleres-header p {
    font-size: 1.2rem;
    color: #666;
}

.talleres-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 60px 10px;
    background-color: var(--white);
    min-height: 60vh;
}

.flip-card {
    background-color: transparent;
    width: 280px;
    height: 320px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    padding: 20px;
}

.flip-card-front {
    background-color: #ffffff;
    color: #333;
    border: 2px solid var(--gold);
}

.flip-card-front i {
    font-size: 50px;
    margin-bottom: 15px;
    color: var(--gold);
}

.flip-card-front h3 {
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.flip-card-back {
    background-color: var(--gold);
    color: white;
    transform: rotateY(180deg);
}

.flip-card-back p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.btn-taller {
    padding: 10px 20px;
    background: white;
    color: var(--gold);
    text-decoration: none;
    font-weight: bold;
    border-radius: 2px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .image-features {
        flex-direction: column;
        height: auto;
    }

    .feature-item {
        height: 250px;
    }

    .parallax-bg {
        background-attachment: scroll;
        height: 300px;
    }

    .container {
        padding: 40px 5%;
    }

    /* Hero optimizado para móvil */
    .hero {
        background-position: center center;
        min-height: 100vh;
        padding: 80px 15px 40px 15px;
        /* Espacio para navbar */
    }

    .hero h1 {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
        letter-spacing: 2px;
        line-height: 1.2;
    }

    .hero p {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        padding: 0 10px;
    }

    .btn {
        width: 100%;
        padding: 16px 30px;
        font-size: 0.85rem;
        text-align: center;
    }

    .carousel-track img {
        height: 250px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        padding: 0;
    }

    /* Mobile Navigation */
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 60px 0;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links li a {
        margin-left: 0;
        font-size: 1.2rem;
        color: var(--dark) !important;
    }

    .navbar {
        padding: 15px 5% !important;
    }
}