* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #F0E7D6; /* Crema vintage */
    min-height: 100vh;
    color: #333;
}

/* HEADER AZUL - CAMBIADO A TEAL */
.header-footer-container {
    background: linear-gradient(135deg, #004B51 0%, #006D77 50%, #004B51 100%); /* Teal profundo */
    color: white;
}

.header-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.logo-container {
    flex-shrink: 0;
}

.logo, .detail-logo {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(0,75,81,0.5)); /* Sombra teal */
    transition: transform 0.3s ease;
    border: 3px solid #004B51; /* Borde teal */
    border-radius: 15px;
    padding: 5px;
    background: rgba(255,255,255,0.1);
}

.logo:hover, .detail-logo:hover {
    transform: scale(1.05);
}

.detail-logo {
    width: 160px;
    margin-bottom: 15px;
    border-radius: 12px;
    padding: 4px;
}

.header-text {
    flex: 1;
    min-width: 300px;
}

.header-text h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-text p {
    font-size: 1.2em;
    line-height: 1.5;
    opacity: 0.95;
}

/* CONTENIDO PRINCIPAL - CREMA VINTAGE */
.main-content {
    background: linear-gradient(135deg, #F8F4F0 0%, #F0E7D6 100%); /* Variaciones crema */
    min-height: calc(100vh - 320px);
    padding: 50px 20px;
}

/* Botones del menú - VERSIÓN CORREGIDA */
.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 35px;
    max-width: 1000px;
    margin: 0 auto;
}

.button-row {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.menu-btn {
    display: flex;
    flex-direction: column;
    width: 260px;
    height: 320px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,75,81,0.25);
    transition: all 0.4s ease;
    text-decoration: none;
    position: relative;
    background: white;
    border: 3px solid #E0D7C3;
}

.btn-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.btn-image {
    width: 100%;
    height: 75%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.btn-title {
    height: 25%;
    background: linear-gradient(135deg, rgba(0,75,81,0.95) 0%, rgba(0,109,119,0.95) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
    padding: 8px 12px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* 🎉 SOLUCIÓN DEFINITIVA PARA TEXTOS LARGOS */
    word-break: break-word;
    hyphens: auto;
    max-height: 80px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.btn-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.menu-btn:hover {
    transform: translateY(-15px) scale(1.08);
    box-shadow: 0 30px 60px rgba(0,109,119,0.4);
    border-color: #004B51;
}

.menu-btn:hover .btn-image {
    transform: scale(1.15);
}

.menu-btn:hover .btn-title {
    background: linear-gradient(135deg, rgba(0,109,119,1) 0%, rgba(0,75,81,1) 100%);
    transform: scale(1.02);
}

.menu-btn:hover .btn-title::after {
    left: 100%;
}

/* PÁGINAS DE DETALLE */
.detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 320px);
}

.detail-main {
    background: linear-gradient(135deg, #F8F4F0 0%, #F0E7D6 100%);
    padding: 50px 30px;
    border-radius: 25px;
    margin: 20px 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border: 2px solid #E0D7C3;
}

.food-image {
    width: 100%;
    max-width: 600px;
    height: 450px;
    object-fit: cover;
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0,75,81,0.3);
    margin: 0 auto 40px;
    display: block;
    border: 4px solid #004B51;
}

.detail-info h1 {
    font-size: 3em;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #004B51, #006D77);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0,75,81,0.3);
    text-align: center;
}

/* RADIO BUTTONS - PERFECTAMENTE INTEGRADOS */
.price-options {
    margin: 25px 0;
    padding: 25px;
    background: linear-gradient(135deg, rgba(248,244,240,0.9) 0%, rgba(240,231,214,0.9) 100%);
    border: 3px solid #E0D7C3;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,75,81,0.15);
    backdrop-filter: blur(10px);
}

.price-options h3 {
    margin: 0 0 20px 0;
    color: #004B51;
    font-size: 1.4em;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,75,81,0.2);
}

.price-radio {
    display: block;
    margin-bottom: 16px;
    cursor: pointer;
    padding: 18px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid #E0D7C3;
    background: rgba(255,255,255,0.7);
    position: relative;
    overflow: hidden;
}

.price-radio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,109,119,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.price-radio:hover::before {
    opacity: 1;
}

.price-radio:hover {
    background: linear-gradient(135deg, rgba(0,75,81,0.05) 0%, rgba(0,109,119,0.05) 100%);
    border-color: #006D77;
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0,75,81,0.2);
}

.price-radio input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.3);
    accent-color: #006D77;
    cursor: pointer;
}

.radio-label {
    font-size: 1.2em;
    font-weight: 600;
    color: #2c5530;
    display: inline-block;
}

.selected-price {
    margin-top: 20px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #E8F5E8 0%, #D4EDDA 100%);
    border: 2px solid #C3E6CB;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.3em;
    color: #155724;
    text-align: center;
    text-shadow: 0 1px 3px rgba(21,87,36,0.2);
    box-shadow: 0 8px 20px rgba(21,87,36,0.15);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 8px 20px rgba(21,87,36,0.15); }
    50% { box-shadow: 0 8px 25px rgba(21,87,36,0.25); }
    100% { box-shadow: 0 8px 20px rgba(21,87,36,0.15); }
}

.detail-info .ingredients {
    font-size: 1.3em;
    line-height: 1.7;
    color: #5D4037;
    max-width: 600px;
    margin: 30px auto 0;
    background: rgba(255,255,255,0.85);
    padding: 30px;
    border-radius: 20px;
    border-left: 6px solid #004B51;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.buttons-section {
    text-align: center;
    margin: 40px 0;
}

.btn-buy, .btn-back {
    display: inline-block;
    padding: 18px 50px;
    margin: 15px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.btn-buy {
    background: linear-gradient(45deg, #004B51, #006D77);
    color: white;
    border: 3px solid #004B51;
}

.btn-buy:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0,75,81,0.5);
}

.btn-back {
    background: linear-gradient(45deg, #757575, #424242);
    color: white;
    border: 3px solid #616161;
}

.btn-back:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(117,117,117,0.4);
}

/* FOOTER */
.footer-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact p {
    font-size: 1.1em;
    margin: 0;
    opacity: 0.95;
}

.footer-copyright {
    font-size: 1em;
    opacity: 0.9;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 15px;
    width: 100%;
}

/* ESTILOS PARA INGREDIENTES */
.ingredients {
    font-size: 1.3em;
    line-height: 1.7;
    color: #5D4037;
    max-width: 600px;
    margin: 30px auto 0;
    background: rgba(255,255,255,0.95);
    padding: 35px;
    border-radius: 20px;
    border-left: 6px solid #004B51;
    text-align: left;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    position: relative;
    overflow: hidden;
}

.ingredients::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #004B51, #006D77, #004B51);
}

.ingredients h3 {
    color: #004B51;
    font-size: 1.6em;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,75,81,0.2);
}

.ingredients ul {
    list-style: none;
    padding: 0;
}

.ingredients li {
    margin-bottom: 15px;
    padding: 12px 0;
    padding-left: 25px;
    position: relative;
    border-bottom: 1px solid rgba(224,215,195,0.3);
    transition: all 0.3s ease;
}

.ingredients li:last-child {
    border-bottom: none;
}

.ingredients li::before {
    position: absolute;
    left: 0;
    top: 12px;
    font-size: 1.1em;
}

.ingredients li:hover {
    background: rgba(0,109,119,0.05);
    padding-left: 35px;
    border-radius: 8px;
    transform: translateX(5px);
}

.ingredients li strong {
    color: #006D77;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .header-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .header-text {
        min-width: auto;
    }
    
    .header-text h1 {
        font-size: 1.8em;
    }
    
    .logo, .detail-logo {
        width: 150px;
    }
    
    .menu-btn {
        width: 220px;
        height: 290px;
    }
    
    .btn-title {
        font-size: 1em;
        padding: 6px 10px;
        line-height: 1.1;
    }
    
    .detail-info h1 {
        font-size: 2.2em;
    }
    
    .price-options {
        padding: 20px 15px;
        margin: 20px 0;
    }
    
    .price-radio {
        padding: 15px;
        margin-bottom: 12px;
    }
    
    .radio-label {
        font-size: 1.1em;
    }
    
    .footer-section {
        flex-direction: column;
        text-align: center;
    }
    
    .ingredients {
        padding: 25px 20px;
        margin: 20px auto 0;
        font-size: 1.1em;
    }
    
    .ingredients h3 {
        font-size: 1.4em;
    }
    
    .ingredients li {
        padding: 10px 0;
        padding-left: 20px;
    }
}

@media (max-width: 480px) {
    .detail-main {
        padding: 30px 20px;
    }
    
    .food-image {
        height: 300px;
    }
    
    .menu-btn {
        width: 200px;
        height: 270px;
    }
    
    .btn-title {
        font-size: 0.95em;
        padding: 5px 8px;
        line-height: 1.1;
    }
    
    .button-row {
        gap: 20px;
    }
    
    .btn-buy, .btn-back {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 10px auto;
    }
}