/* ===== VARIABLES Y RESET ===== */
:root {
    --ocean-deep: #0a3d62;
    --ocean-mid: #1e5f8a;
    --ocean-light: #3498db;
    --sand: #f5deb3;
    --sand-light: #fff8e7;
    --coral: #ff6b6b;
    --coral-dark: #ee5a5a;
    --sunset-orange: #ff9f43;
    --sunset-yellow: #feca57;
    --tropical-green: #26de81;
    --palm-green: #20bf6b;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --shadow: rgba(0, 0, 0, 0.15);
    --glass: rgba(255, 255, 255, 0.95);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ===== FONDO GENERAL (MÓVIL: IMAGEN REPETIDA) ===== */
body {
    font-family: 'Poppins', sans-serif;

    background-image: url('imagen1.jpeg');
    background-size: auto;           /* tamaño original */
    background-repeat: repeat-y;     /* se repite hacia abajo en móvil */
    background-position: center top;
    /* sin background-attachment: fixed */

    min-height: 100vh;
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
}

/* ===== ESCRITORIO / LAPTOP: SOLO DEGRADADO LIMPIO ===== */
@media (min-width: 992px) {
    body {
        background-image: none;
        background-color: #f5f5f5;
        background-image: linear-gradient(180deg, #0a3d62 0%, #1e5f8a 30%, #f5f5f5 100%);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center top;
    }
}

/* ===== BARRA DE CONTACTO SUPERIOR ===== */
.top-contact-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #0a1628 0%, #1a3a5c 100%);
    padding: 15px 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.top-logo {
    flex-shrink: 0;
}

.top-logo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #d4a84b;
    object-fit: cover;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.contact-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.contact-link svg {
    width: 18px;
    height: 18px;
    fill: white;
    flex-shrink: 0;
}

.contact-link.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.contact-link.facebook {
    background: #1877f2;
}

.contact-link.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* ===== FONDO ANIMADO DEL OCÉANO ===== */
.ocean-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 200px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.1' d='M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
    animation: wave 15s linear infinite;
}

.wave1 { opacity: 0.3; animation-duration: 15s; }
.wave2 { opacity: 0.2; animation-duration: 20s; bottom: 20px; }
.wave3 { opacity: 0.15; animation-duration: 25s; bottom: 40px; }

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== BURBUJAS FLOTANTES ===== */
.bubbles {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bubbles span {
    position: absolute;
    bottom: -100px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: bubble 15s infinite;
}

.bubbles span:nth-child(1) { width: 40px; height: 40px; left: 10%; animation-duration: 8s; }
.bubbles span:nth-child(2) { width: 20px; height: 20px; left: 20%; animation-duration: 5s; animation-delay: 1s; }
.bubbles span:nth-child(3) { width: 50px; height: 50px; left: 35%; animation-duration: 7s; animation-delay: 2s; }
.bubbles span:nth-child(4) { width: 80px; height: 80px; left: 50%; animation-duration: 11s; animation-delay: 0s; }
.bubbles span:nth-child(5) { width: 35px; height: 35px; left: 55%; animation-duration: 6s; animation-delay: 1s; }
.bubbles span:nth-child(6) { width: 45px; height: 45px; left: 65%; animation-duration: 8s; animation-delay: 3s; }
.bubbles span:nth-child(7) { width: 25px; height: 25px; left: 70%; animation-duration: 12s; animation-delay: 2s; }
.bubbles span:nth-child(8) { width: 60px; height: 60px; left: 80%; animation-duration: 7s; animation-delay: 5s; }
.bubbles span:nth-child(9) { width: 30px; height: 30px; left: 85%; animation-duration: 9s; animation-delay: 1s; }
.bubbles span:nth-child(10) { width: 55px; height: 55px; left: 90%; animation-duration: 10s; animation-delay: 4s; }

@keyframes bubble {
    0%   { transform: translateY(0) scale(1);   opacity: 0.5; }
    50%  { opacity: 0.3; }
    100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

/* ===== HEADER ===== */
.header {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem 1rem 3rem;

    background: rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.header-content {
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.shrimp-icon {
    font-size: 3rem;
    animation: bounce 2s infinite;
}

.shrimp-icon.flip { transform: scaleX(-1); }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

.shrimp-icon.flip {
    animation: bounceFlip 2s infinite;
}

@keyframes bounceFlip {
    0%, 100% { transform: scaleX(-1) translateY(0); }
    50%      { transform: scaleX(-1) translateY(-10px); }
}

.logo {
    font-family: 'Lobster', cursive;
    font-size: 3.5rem;
    color: var(--white);
    text-shadow:
        3px 3px 0 var(--ocean-deep),
        6px 6px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.logo .highlight {
    color: var(--sand-light);
    display: block;
    font-size: 4rem;
    margin-top: -0.5rem;
}

.tagline {
    font-family: 'Pacifico', cursive;
    font-size: 1.2rem;
    color: var(--white);
    opacity: 0.95;
    margin-top: 0.5rem;
}

.helm-wheel {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 3rem;
    animation: rotate 20s linear infinite;
    opacity: 0.6;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ===== CONTENEDOR DEL MENÚ ===== */
.menu-container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem 3rem;
    display: grid;
    gap: 2rem;
}

/* ===== SECCIONES DEL MENÚ ===== */
.menu-section {
    background: rgba(255, 255, 255, 0.78);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
    border: 1px solid rgba(224,224,224,0.7);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.menu-section::before {
    content: none;
}

.menu-section:nth-child(1) { animation-delay: 0.1s; }
.menu-section:nth-child(2) { animation-delay: 0.2s; }
.menu-section:nth-child(3) { animation-delay: 0.3s; }
.menu-section:nth-child(4) { animation-delay: 0.4s; }
.menu-section:nth-child(5) { animation-delay: 0.5s; }
.menu-section:nth-child(6) { animation-delay: 0.6s; }
.menu-section:nth-child(7) { animation-delay: 0.7s; }
.menu-section:nth-child(8) { animation-delay: 0.8s; }
.menu-section:nth-child(9) { animation-delay: 0.9s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== HEADERS DE SECCIÓN ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.section-header h2 {
    font-family: 'Lobster', cursive;
    font-size: 2.2rem;
    color: #333333;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.section-header .icon {
    font-size: 1.8rem;
    animation: none;
}

/* ===== ITEMS DEL MENÚ ===== */
.menu-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.menu-items.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.menu-items.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem 1.2rem;
    background: rgba(249, 249, 249, 0.85);
    border-radius: 10px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    border-left: 3px solid rgba(221, 221, 221, 0.9);
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border-left-color: rgba(187, 187, 187, 0.9);
}

.menu-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.2rem;
}

.menu-item .description {
    font-size: 0.85rem;
    color: #777777;
    width: 100%;
    margin-top: 0.3rem;
    font-style: italic;
}

.menu-item .item-info {
    flex: 1;
    min-width: 200px;
}

/* ===== PRECIOS ===== */
.prices {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.price {
    background: #0b4468;
    color: #ffffff;
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

.price em {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.9;
    font-style: normal;
}

.price.single,
.price.single.big {
    background: #0b4468;
    padding: 0.55rem 1.2rem;
    font-size: 0.95rem;
    border-radius: 999px;
}

/* ===== ITEMS ESPECIALES ===== */
.menu-item.featured {
    background: rgba(245, 245, 245, 0.9);
    border-left-color: #bbbbbb;
}

.menu-item.special {
    background: rgba(245, 245, 245, 0.9);
    border-left-color: #bbbbbb;
}

.menu-item.premium {
    background: rgba(233, 233, 233, 0.9);
    border-left-color: #999999;
    color: #222222;
}

.menu-item.premium h3 {
    color: #222222;
    font-size: 1.1rem;
}

.menu-item.mini {
    padding: 0.7rem 1rem;
}

.menu-item.mini h3 {
    font-size: 0.95rem;
}

/* sin barras de color por sección */
.cocteleria::before,
.tostadas::before,
.molcajete::before,
.callos::before,
.barra-caliente::before,
.especialidades::before,
.kids::before,
.extras::before,
.bebidas::before {
    content: none;
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
    z-index: 10;
    background: linear-gradient(135deg, var(--ocean-deep), #061f33);
    color: var(--white);
    text-align: center;
    padding: 3rem 1rem 2rem;
    margin-top: 2rem;
}

.footer-content { position: relative; z-index: 2; }

.footer .thanks {
    font-family: 'Pacifico', cursive;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--sunset-yellow);
}

.footer .copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.wave-footer {
    position: absolute;
    top: -50px;
    left: 0;
    width: 200%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.05' d='M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,197.3C1248,203,1344,149,1392,122.7L1440,96L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
    animation: wave 20s linear infinite reverse;
}

/* ===== RESPONSIVE: MÓVILES (≤ 767px) ===== */
@media (max-width: 767px) {
    .top-contact-bar {
        position: relative;
        padding: 10px 12px;
    }

    .contact-container {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .top-logo {
        display: none;
    }

    .contact-links {
        width: 100%;
        justify-content: center;
        gap: 6px;
    }

    .contact-link {
        padding: 6px 10px;
        font-size: 0.75rem;
        border-radius: 999px;
    }

    .contact-link svg {
        width: 18px;
        height: 18px;
    }

    .header {
        clip-path: none;
        padding: 1.5rem 0.5rem 2.5rem;
        margin-bottom: 0;
    }

    .header-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .header-content::after {
        content: '';
        display: block;
        width: 120px;
        height: 120px;
        margin-top: 1.5rem;
        background: url('Chon2.jpg') center/cover no-repeat;
        border-radius: 50%;
        border: 4px solid #d4a84b;
        box-shadow: 0 5px 25px rgba(0,0,0,0.4);
    }

    .logo {
        font-size: 2.2rem;
    }

    .logo .highlight {
        font-size: 2.7rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .menu-container {
        padding: 0.5rem 0.8rem 2rem;
    }

    .menu-section {
        padding: 1rem;
        border-radius: 16px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .menu-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .menu-item h3 {
        font-size: 0.95rem;
    }

    .prices {
        width: 100%;
        justify-content: flex-start;
    }

    .helm-wheel {
        display: none;
    }

    .menu-items.grid-2,
    .menu-items.grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ===== SCROLL SUAVE Y SELECCIÓN ===== */
::selection {
    background: var(--coral);
    color: var(--white);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--ocean-deep);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--coral), var(--sunset-orange));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--sunset-orange), var(--sunset-yellow));
}
