:root {
    --menta: #E7F2E1;
    --salvia: #B4D3B2;
    --musgo: #62a376;
    --eucalipto: #488074;
    --bosque: #3F5E5A;
    --blanco: #ffffff;
    --texto: #2d3436;
    --gradiente: linear-gradient(135deg, var(--musgo), var(--eucalipto));
    --bg-sec-1: var(--menta);
    --bg-sec-2: var(--salvia);
    --bg-sec-3: #d1e5cd;
}


* {
    box-sizing: border-box;
}

@media (prefers-color-scheme: dark) {
    :root {
        --menta: #1a1a1a;
        --salvia: #222e21;
        --blanco: #242424;
        --texto: #e0e0e0;
        --bg-sec-1: #121212;
        --bg-sec-2: #1e261d;
        --bg-sec-3: #161d15;
    }
    body { background-color: var(--bg-sec-1); }
    .main-header { background: #1e1e1e !important; }
    .main-footer { background: #103b39 !important; }
    .main-footer, .footer-col a { color: rgb(219, 219, 219) !important; }
    .footer-col a:hover { color: #B4D3B2 !important; }
}

body {
    font-family: 'Lora', sans-serif;
    margin: 0;
    overflow-x: hidden;
    background-color: var(--bg-sec-1);
    color: var(--texto);
    line-height: 1.6;
}

h2 {
    text-align: center;
    width: 100%;
    margin: 40px 0;
    font-size: clamp(1.8rem, 5vw, 2.5rem); 
    color: var(--bosque);
    padding: 0 20px;
}

.main-header {
    display: flex;
    justify-content: space-between;
    padding: 1rem 5%;
    background: var(--blanco);
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap; 
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 5%; 
    min-height: 60vh;
    gap: 30px; 
    max-width: 1600px;
    margin: 0 auto;
    background-image: radial-gradient(circle at 10% 20%, rgba(180, 211, 178, 0.2) 0%, transparent 40%);
}

.hero-content, .hero-image-container {
    flex: 1;
    min-width: 300px; 
    max-width: 600px;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    color: var(--bosque);
    line-height: 1.1;
    margin-bottom: 30px;
}

@media (prefers-color-scheme: dark) {
    h1, h2, h3 { color: #beecbb !important; }
}

.logo{
    padding-right: 4px;
}

.search-button {
    background: var(--gradiente);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(72, 128, 116, 0.3);
}

.search-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(72, 128, 116, 0.4);
}

.hero-content button, .start-btn { 
    background: var(--gradiente);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(72, 128, 116, 0.3);
}

.hero-content button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(72, 128, 116, 0.4);
}

.hero-image-container {
    display: flex;
    justify-content: center;
}

.hero-image-container img {
    width: 100%;
    max-width: 450px;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
    border: clamp(8px, 2vw, 15px) solid var(--blanco);
    outline: clamp(4px, 1vw, 8px) solid var(--eucalipto);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transition: transform 0.5s ease;
}

.hero-image-container img:hover {
    transform: scale(1.03) rotate(2deg);
}

.recipes-grid { 
    display: flex; 
    flex-direction: column; 
    max-width: 1600px;
    margin: 0 auto;
}

.recipe-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 80px 5%; 
    gap: clamp(30px, 5vw, 80px);
}

.recipe-card:nth-child(1) { background-color: var(--bg-sec-1); }
.recipe-card:nth-child(2) { background-color: var(--bg-sec-2); }
.recipe-card:nth-child(3) { background-color: var(--bg-sec-3); }

.recipe-card:nth-child(odd) { flex-direction: row; }
.recipe-card:nth-child(even) { flex-direction: row-reverse; }

.card-body {
    flex: 1;
    max-width: 550px;
}

.recipe-thumb {
    width: 100%;
    max-width: 400px; 
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
    border: clamp(6px, 1.5vw, 12px) solid var(--blanco);
    outline: clamp(3px, 1vw, 6px) solid var(--salvia);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.recipe-thumb:hover {
    transform: scale(1.08) rotate(-3deg);
    outline-color: var(--eucalipto);
}

.card-body h3 { font-size: clamp(1.6rem, 4vw, 2.8rem); color: var(--bosque); margin-bottom: 20px; }

.desserts-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 20px 5% 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.dessert-item {
    flex: 1 1 300px; 
    max-width: 400px;
    height: 380px;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.dessert-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.dessert-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(63, 94, 90, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.4s ease;
    padding: 20px;
    text-align: center;
}

.dessert-item:hover .dessert-overlay { opacity: 1; }
.dessert-item:hover img { transform: scale(1.1); }

.dessert-overlay h4 { color: white; font-size: 1.6rem; margin-bottom: 10px; }

.stars {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #173f41;
}

@media (prefers-color-scheme: dark) {
    .stars { color: #beecbb; }
}

.view-btn {
    background: var(--gradiente);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.3s;
}

.dessert-overlay .view-btn {
    background: white;
    color: var(--bosque);
}

.view-btn:hover { transform: scale(1.05); filter: brightness(1.1); }

.main-footer {
    background: var(--bosque);
    color: var(--blanco);
    padding: 60px 5%;
    margin-top: 50px;
}


.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-col h4 { margin-bottom: 20px; font-size: 1.2rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 10px; }

.footer-col a {
    text-decoration: none;
    color: var(--menta);
    font-size: 0.95rem;
    transition: 0.3s;
}

.footer-col a:hover { color: var(--blanco); }

.footer-logo {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.footer-logo img { max-width: 120px; filter: brightness(0) invert(1); }



@media (max-width: 900px) {
    .main-header { 
        justify-content: center;
        text-align: center;
    }
    
    .hero-section { 
        flex-direction: column; 
        text-align: center;
        padding-top: 40px;
    }

    .recipe-card, .recipe-card:nth-child(even) {
        flex-direction: column !important;
        text-align: center;
        padding: 40px 5%;
        gap: 30px;
    }

    .recipe-thumb { 
        max-width: 80%; 
    }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2rem; }
    
    .hero-image-container img {
        max-width: 260px;
    }

    .recipe-thumb { 
        max-width: 240px; 
    }

    .dessert-item { 
        flex: 1 1 100%; 
        height: 320px; 
    }
    
    .main-header {
        padding: 1rem 2%;
    }
}
