:root {
    --primary-color: #FF9F1C;
    --secondary-color: #8B4513;
    --bg-color: #FFFFFF;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-color: #333;
    --text-light: #666;
    --white: #FFFFFF;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    --gradient: linear-gradient(135deg, #FF9F1C, #FFBF69);
    --border-radius: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.bg-light {
    background-color: #FDFBF0;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.header.visible {
    transform: translateY(0);
}

.nav {
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-home {

    animation: pulse 3s infinite ease-in-out;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.25));
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.logo img {
    height: 80px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
    font-size: 1.05rem;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding-top: 80px;
    /* Reducido a la mitad aproximadamente */
    padding-bottom: 60px;
    text-align: center;
}

.hero-content {
    margin-bottom: 50px;
}

.hero-logo {
    max-width: 650px;
    /* Aumentado de 480px */
    width: 90%;
    height: auto;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 650px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Consistent Image Wrappers */
.main-image-wrapper {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 40px;
    background: #ffffff;
    /* Blanco puro */
    display: flex;
    flex-direction: column;
}

.receta-image {
    width: 100%;
    margin-top: 0;
    background: transparent;
    /* Eliminamos el fondo blanco */
    box-shadow: none;
    /* Eliminamos la sombra del contenedor */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.receta-main-img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    /* Esquinas redondeadas aplicadas aquí */
    box-shadow: var(--shadow);
    /* La sombra se queda en la imagen */
    margin-bottom: 40px;
}

.receta-logo-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.receta-bottom-logo {
    width: 100%;
    /* Ahora ocupa el mismo ancho que la foto */
    height: auto;
    opacity: 1;
    /* Aumentada opacidad para que se vea claro */
    mix-blend-mode: multiply;
    background: transparent;
}

.main-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.main-image-wrapper:hover img {
    transform: scale(1.02);
}

/* Receta Layout (PC) */
.receta-container {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.mt-huge {
    margin-top: 120px;
    /* Aumentado de 80px */
}

/* Ajuste específico para el segundo título dentro de la receta */
.receta-header:nth-of-type(2) {
    margin-top: 50px;
}

.receta-content {
    flex: 1;
}

.receta-image {
    flex: 1;
    margin-top: 0;
    /* Reset margin for PC layout */
}

/* Cards & Elements */
.grid {
    display: grid;
    gap: 30px;
}

.elementos-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    box-shadow: var(--shadow);
}

.optional-tag {
    color: var(--text-color);
    font-size: 0.8em;
    font-weight: 500;
    display: inline-block;
    margin-left: 5px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 25px;
}

/* Stepper */
.montaje-stepper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.step-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-img {
    height: 280px;
    background: #f9f9f9;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.step-info {
    padding: 30px;
    position: relative;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 30px;
    background: var(--gradient);
    color: var(--white);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
}

/* Receta Detailed Styles */
.receta-content.card {
    text-align: left;
}

.receta-header {
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(255, 159, 28, 0.1);
    padding-bottom: 10px;
}

.badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: inline-block;
}

.receta-list,
.receta-steps {
    list-style: none;
}

.receta-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.receta-list li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 12px;
}

.receta-steps li {
    counter-increment: step-counter;
    padding: 12px 0;
    display: flex;
    gap: 15px;
}

.receta-steps li::before {
    content: counter(step-counter);
    background: var(--secondary-color);
    color: var(--white);
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 159, 28, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    animation: fadeIn 0.8s forwards;
    opacity: 0;
}

.fade-in-delay {
    animation: fadeIn 0.8s 0.3s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeIn 0.8s 0.6s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.footer {
    padding: 60px 0;
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
}

/* Hamburger & Responsive Nav */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1100;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 3px;
    transition: 0.3s;
}

@media (max-width: 992px) {
    .receta-container {
        flex-direction: column;
    }

    .receta-image {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .container {
        padding: 0 20px;
    }
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}