@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Lato:wght@300;400;700&display=swap');

:root {
    --degradado-oscuro: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    --degradado-medio: linear-gradient(135deg, #4a4a4a 0%, #666666 100%);
    --amarillo-dorado: #ffd700;
    --blanco: #ffffff;
    --gris-claro: #f5f5f5;
    --negro-transparente: rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--blanco);
    background: var(--degradado-medio);
}

header {
    background: var(--degradado-oscuro);
    padding: 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

header h1 {
    color: var(--amarillo-dorado);
    font-size: 1.5em;
    margin: 0;
}

.logo {
    max-width: 200px;
    height: auto;
}

.hero {
    background: url('../img/restaurante_mariamulata_001.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero > div {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4em;
    font-weight: 900;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    color: var(--amarillo-dorado);
}

.hero p {
    font-size: 1.3em;
    margin: 0 0 30px 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    font-weight: 300;
    color: var(--blanco);
}

.buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    background: var(--degradado-oscuro);
    color: var(--blanco);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin: 10px;
    border: 2px solid var(--amarillo-dorado);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: var(--degradado-medio);
}

.btn-secondary {
    background: transparent;
    color: var(--amarillo-dorado);
    border: 2px solid var(--amarillo-dorado);
}

.section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3em;
    color: var(--amarillo-dorado);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--amarillo-dorado);
}

.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.menu-item {
    width: 30%;
    margin: 10px;
    text-align: center;
}

.menu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social {
    text-align: center;
    background: var(--degradado-medio);
    padding: 40px 20px;
    border-radius: 10px;
}

.social h2 {
    color: var(--amarillo-dorado);
}

.social a {
    margin: 0 15px;
    font-size: 2.5em;
    color: var(--blanco);
    transition: transform 0.3s ease;
    display: inline-block;
}

.social a:hover {
    transform: scale(1.2);
}

footer {
    background: var(--degradado-oscuro);
    color: var(--amarillo-dorado);
    text-align: center;
    padding: 40px 20px;
    border-top: 3px solid var(--amarillo-dorado);
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

.especialidad-seccion {
    background: var(--degradado-medio);
}

.especialidad-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.especialidad-texto h2 {
    color: var(--amarillo-dorado);
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.especialidad-texto h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    color: var(--amarillo-dorado);
    margin: 0 0 20px 0;
}

.especialidad-texto p {
    color: #555;
    font-size: 1.05em;
    line-height: 1.8;
    margin: 15px 0;
}

.centrado {
    text-align: center;
}

.precio-especialidad {
    font-size: 1.5em !important;
    color: var(--amarillo-dorado) !important;
    font-weight: bold !important;
    margin-top: 20px !important;
}

.especialidad-imagen {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.especialidad-imagen img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.especialidad-imagen:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .especialidad-content {
        grid-template-columns: 1fr;
    }
    
    .especialidad-texto h3 {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
    }
    
    .hero h1 {
        font-size: 2.5em;
    }
    
    .hero p {
        font-size: 1em;
    }
    
    .buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .menu-item {
        width: 100%;
    }
    
    .section h2 {
        font-size: 2em;
    }
}

nav {
    background: var(--degradado-oscuro);
    color: var(--amarillo-dorado);
    padding: 15px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

nav a {
    color: var(--amarillo-dorado);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--blanco);
}

.hero-carta {
    background: url('../img/restaurante_mariamulata_001.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 80px 20px;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-carta h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5em;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    color: var(--amarillo-dorado);
}

.hero-carta p {
    font-size: 1.2em;
    margin: 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    color: var(--blanco);
}

.menu-section {
    margin-bottom: 60px;
}

.menu-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 25px;
}

.menu-item {
    background: var(--gris-claro);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border-left: 4px solid var(--amarillo-dorado);
    flex: 1 1 300px;
    max-width: 350px;
}

.menu-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.menu-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.menu-item-content {
    padding: 20px;
}

.menu-item h3 {
    margin: 0 0 10px 0;
    color: #2b2117;
    font-family: 'Playfair Display', serif;
    font-size: 1.3em;
}

.menu-item p {
    margin: 8px 0;
    color: #666;
    font-size: 0.95em;
}

.price {
    font-weight: bold;
    color: var(--amarillo-dorado);
    font-size: 1.1em;
    margin-top: 12px;
}

/* ============================= */
/* Corrección de contraste textos */
/* ============================= */

:root {
    --texto-sobre-oscuro: #f7efe2;
    --texto-suave-sobre-oscuro: #d8c8ad;
    --texto-sobre-claro: #2b2117;
    --texto-suave-sobre-claro: #5f554a;
    --dorado-texto-claro: #8a6112;
    --dorado-elegante: #d6a840;
    --fondo-tarjeta: #fffaf0;
}

/* Texto general sobre fondos oscuros */
body {
    color: var(--texto-sobre-oscuro);
}

/* Secciones oscuras */
.section {
    color: var(--texto-sobre-oscuro);
}

.section p {
    color: var(--texto-suave-sobre-oscuro);
}

/* Especialidad de la home */
.especialidad-texto p {
    color: var(--texto-suave-sobre-oscuro);
}

.especialidad-texto strong {
    color: var(--texto-sobre-oscuro);
}

.precio-especialidad {
    color: var(--dorado-elegante) !important;
}

/* Tarjetas de carta */
.menu-item {
    background: var(--fondo-tarjeta);
    color: var(--texto-sobre-claro);
}

.menu-item h3 {
    color: var(--texto-sobre-claro);
}

.menu-item p {
    color: var(--texto-suave-sobre-claro);
}

.menu-item .price,
.price {
    color: var(--dorado-texto-claro);
    font-weight: 700;
}

/* Enlaces sociales */
.social a {
    color: var(--texto-sobre-oscuro);
}

.social a:hover {
    color: var(--dorado-elegante);
}

/* Botones */
.btn {
    color: var(--texto-sobre-oscuro);
}

.btn-secondary:hover {
    color: #1a1a1a;
}

/* Hero carta: mejora la legibilidad sobre foto */
.hero-carta {
    position: relative;
    overflow: hidden;
}

.hero-carta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-carta h1,
.hero-carta p {
    position: relative;
    z-index: 2;
}

/* Ubicación: corrige el gris inline si no lo quitas del HTML */
#ubicacion p {
    color: var(--texto-suave-sobre-oscuro) !important;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.social-icons a {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--amarillo-dorado);
    color: #1a1a1a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.social-icons a:hover {
    transform: translateY(-4px) scale(1.05);
    background: #ffffff;
    color: #1a1a1a;
}

.social-icons i {
    line-height: 1;
}

.menu-item-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.menu-item-gallery-img {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.menu-item-gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Evita que el estilo general .menu-item img fuerce otra altura */
.menu-item .menu-item-gallery img {
    height: 100%;
}

.menu-item-gallery-img span {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.68);
    color: #fffaf0;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 9px;
    border-radius: 999px;
}

.logo-conocenos {
    background: radial-gradient(circle at center, #173b59 0%, #07111d 75%);
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(214, 168, 64, 0.25);
}

.logo-conocenos img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}