/* =============================================
   LA POBLANITA — Replica exacta del sitio live
   ============================================= */

/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
img { display: block; max-width: 100%; }
a { text-decoration: none; }
ul { list-style: none; }

body {
    font-family: 'Poppins', Arial, sans-serif;
    background: #ffffff;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* ─── WRAPPER (ANCHO COMPLETO — SIN BARRAS LATERALES) ─── */
.site-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: #fff;
    box-shadow: none;
}

/* ─── HEADER TOP ─── */
.header-top {
    background: url('../wp-content/uploads/2022/01/Fondo-1024x685.jpg') center / cover no-repeat;
    padding: 18px 20px;
    text-align: center;
    position: relative;
    width: 100%;
}

.logo { max-width: 170px; margin: 0 auto; }

.lang-selector {
    position: absolute;
    top: 18px;
    right: 25px;
    display: flex;
    gap: 8px;
    align-items: center;
    z-index: 100;
}
.lang-btn {
    display: inline-block;
    transition: transform .2s, opacity .2s, filter .2s;
    cursor: pointer;
    opacity: 0.55;
}
.lang-btn.active {
    opacity: 1;
    transform: scale(1.12);
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.35));
}
.lang-btn:hover {
    transform: scale(1.18);
    opacity: 1;
}
.lang-btn img {
    width: 24px;
    height: 24px;
    display: block;
}


/* ─── NAV ─── */
.main-nav {
    background: #c41229;
    position: sticky; top: 0; z-index: 900;
    box-shadow: 0 3px 8px rgba(0,0,0,.25);
    width: 100%;
}
.nav-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 11px 0;
}
.nav-links a {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .5px;
    padding: 4px 8px;
    transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: #fdb813; }

/* ─── HERO SLIDER (ASPECT RATIO 1263:600 EXACTO) ─── */
.hero-section {
    position: relative;
    width: 100%;
    aspect-ratio: 1263 / 600;
    max-height: 580px;
    overflow: hidden;
    background: #000;
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: none;
    width: 100%;
    height: 100%;
}
.hero-slide.active {
    display: block;
}

.slide-bg {
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

/* ── Hero Text Overlay (centrado milimétrico en cada recuadro) ── */
.hero-text-box {
    position: absolute;
    color: #ffffff;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8px 14px;
    box-sizing: border-box;
}
.hero-text-box h1 {
    font-size: clamp(18px, 2.2vw, 28px);
    font-weight: 800;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
    text-align: center;
    line-height: 1.2;
}
.hero-text-box p {
    font-size: clamp(11px, 1.1vw, 13.5px);
    line-height: 1.55;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
    max-width: 440px;
    margin: 0 auto;
    text-align: center;
}

/* Slide 1: centrado matemático exacto dentro del recuadro verde */
.box-right {
    top: 51.25%;
    left: 75.2%;
    transform: translate(-50%, -50%);
    width: 38%;
    max-width: 470px;
}

/* Slide 2: centrado matemático exacto dentro del recuadro blanco */
.box-left {
    top: 49.25%;
    left: 19.4%;
    transform: translate(-50%, -50%);
    width: 33%;
    max-width: 410px;
}

/* Slide 3: centrado matemático exacto dentro del recuadro rojo */
.box-center {
    top: 48.33%;
    left: 48.7%;
    transform: translate(-50%, -50%);
    width: 34%;
    max-width: 440px;
}

/* ── Hero dots bar (centrados abajo) ── */
.hero-bar {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.hero-dots {
    display: flex;
    gap: 9px;
    align-items: center;
}
.hero-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #ffffff;
    cursor: pointer;
    transition: background .2s, transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.hero-dots .dot.active,
.hero-dots .dot:hover {
    background: #ffffff;
    transform: scale(1.15);
}


/* ─── CATEGORIES (MARBLE BACKGROUND MATCHING REFERENCE) ─── */
.cat-section {
    background: url('../wp-content/uploads/2022/01/Fondo-1024x685.jpg') center / cover no-repeat;
    padding: 55px 20px 65px;
    text-align: center;
    width: 100%;
}
.cat-title {
    font-size: 32px;
    font-weight: 400;
    color: #0a0a0a;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 38px;
    font-family: inherit;
}
.cat-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    max-width: 960px;
    margin: 0 auto;
}
.cat-item {
    display: inline-block;
    transition: transform .25s ease;
    line-height: 0;
}
.cat-item:hover {
    transform: translateY(-6px) scale(1.06);
}
.cat-img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    display: block;
}

/* ─── PARALLAX BANNER SECTION ─── */
.parallax-section {
    width: 100%;
    height: 350px;
    background-image: url('../wp-content/uploads/2022/01/parallax.jpg');
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    box-shadow: inset 0 6px 14px rgba(0,0,0,0.22), inset 0 -6px 14px rgba(0,0,0,0.22);
}

/* ─── MENU SECTION ─── */
.menu-section {
    background-color: #000000;
    position: relative;
    padding: 48px 18px 66px;
    overflow: hidden;
}
/* Floral pattern overlay — más grande y translúcido */
.menu-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../wp-content/uploads/2022/01/patron-menu.png');
    background-repeat: repeat;
    background-size: 420px auto;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}
.menu-title-wrap {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}
.menu-title-img { max-width: 270px; filter: drop-shadow(0 6px 16px rgba(0,0,0,.9)); margin: 0 auto; }

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    max-width: 1050px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
/* Card: card image + Lineal.jpg strip at bottom */
.menu-card {
    overflow: hidden;
    border-radius: 3px;
    box-shadow: 0 4px 16px rgba(0,0,0,.7);
    transition: transform .25s, box-shadow .25s;
    background: #1a0000;
    display: flex;
    flex-direction: column;
}
.menu-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.9); }
.menu-card img { width: 100%; height: auto; display: block; }
/* Product name bar */
.card-name {
    background: #6e0108;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 7px 10px;
    line-height: 1.2;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
/* Decorative Mexican folk strip at the bottom of each card */
.card-strip {
    height: 22px;
    background: url('../wp-content/uploads/2022/01/Lineal.jpg') left center / auto 100% repeat-x;
    flex-shrink: 0;
}

/* ─── RECOMMENDED DISHES CAROUSEL ─── */
.dishes-section {
    background: #006837;
    padding: 50px 24px 45px;
    text-align: center;
    color: #fff;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.dishes-title {
    font-size: clamp(20px, 2.2vw, 27px);
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 35px;
    letter-spacing: 0.3px;
    line-height: 1.35;
}
.dishes-carousel-wrapper {
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.dishes-carousel-track-container {
    flex: 1;
    overflow: hidden;
}
.dishes-carousel-track {
    display: flex;
    gap: 26px;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}
.dish-card {
    flex: 0 0 calc((100% - 52px) / 3);
    overflow: hidden;
    line-height: 0;
    user-select: none;
}
.dish-card img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

/* Arrows */
.carousel-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    padding: 10px 6px;
    transition: transform .2s, opacity .2s;
    user-select: none;
    z-index: 10;
    line-height: 1;
    opacity: 0.9;
}
.carousel-btn:hover {
    transform: scale(1.2);
    opacity: 1;
}

/* Dots */
.dishes-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin-top: 25px;
}
.dishes-dots .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background .25s, transform .25s;
}
.dishes-dots .dot.active {
    background: #ffffff;
    transform: scale(1.3);
}

@media (max-width: 900px) {
    .dish-card {
        flex: 0 0 calc((100% - 26px) / 2);
    }
}
@media (max-width: 600px) {
    .dish-card {
        flex: 0 0 100%;
    }
}

/* ─── FOOTER ─── */
footer {
    background: #006837;
    color: #fff;
    width: 100%;
}

.footer-banner {
    width: 100%;
    min-height: 380px;
    background: url('../wp-content/uploads/2022/01/SOPACONLOGO.jpg') center / cover no-repeat;
}

.footer-content {
    background: #006837;
    padding: 50px 24px 35px;
}

.footer-container {
    max-width: 1150px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-col {
    flex: 1;
    min-width: 280px;
}

/* Col 1: Social & Info */
.footer-social {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
}
.social-icon {
    width: 36px;
    height: 36px;
    background: #ffffff;
    color: #006837;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    text-decoration: none;
    transition: transform .2s, background .2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.social-icon:hover {
    transform: translateY(-3px);
    background: #fdb813;
    color: #111;
}

.footer-info-list {
    list-style: disc inside;
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.85;
    color: #ffffff;
    font-weight: 500;
}
.footer-info-list li {
    margin-bottom: 4px;
}

/* Titles */
.footer-col-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

/* Col 2: Map */
.footer-map-col {
    max-width: 300px;
}
.footer-map-wrapper {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    line-height: 0;
}
.footer-map-wrapper iframe {
    display: block;
    width: 100%;
}

/* Col 3: Form */
.footer-form-col {
    max-width: 420px;
}
.footer-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-row {
    display: flex;
    gap: 8px;
}
.form-input {
    flex: 1;
    background: #2d2d2d;
    border: 1px solid #3d3d3d;
    border-radius: 2px;
    padding: 9px 12px;
    color: #ffffff;
    font-size: 13px;
    font-family: inherit;
    outline: none;
}
.form-input::placeholder,
.form-textarea::placeholder {
    color: #b0b0b0;
}
.form-input:focus,
.form-textarea:focus {
    border-color: #fdb813;
}
.form-textarea {
    width: 100%;
    background: #2d2d2d;
    border: 1px solid #3d3d3d;
    border-radius: 2px;
    padding: 9px 12px;
    color: #ffffff;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    resize: vertical;
    box-sizing: border-box;
}

.form-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-top: 4px;
}

/* Fake Captcha */
.fake-captcha {
    background: #222222;
    border: 1px solid #444444;
    border-radius: 3px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 220px;
    height: 58px;
    box-sizing: border-box;
}
.captcha-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
}
.captcha-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.captcha-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 8px;
    color: #999;
}
.captcha-icon {
    font-size: 16px;
    line-height: 1;
}

/* Button */
.btn-submit {
    background: #c41229;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .2s;
    font-family: inherit;
}
.btn-submit:hover {
    background: #a80018;
    transform: translateY(-2px);
}

/* Bottom bar */
.footer-bar {
    background: #00562d;
    padding: 18px 20px;
    text-align: center;
    font-size: 13px;
    color: #ffffff;
    border-top: 1px solid rgba(255,255,255,0.12);
}

/* ─── WHATSAPP FLOAT ─── */
.wa-btn {
    position: fixed;
    bottom: 24px; right: 24px;
    background: #fff;
    color: #333;
    padding: 6px 14px 6px 18px;
    border-radius: 28px;
    display: flex; align-items: center; gap: 9px;
    font-size: 13px; font-weight: 600;
    box-shadow: 0 6px 20px rgba(0,0,0,.3);
    z-index: 9999;
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
}
.wa-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.4); }
.wa-icon {
    width: 35px; height: 35px;
    border-radius: 50%;
    background: #25d366;
    display: flex; align-items: center; justify-content: center;
}

/* ─── WHATSAPP CHAT POPUP WIDGET ─── */
.wa-chat-popup {
    position: fixed;
    bottom: 84px;
    right: 24px;
    width: 330px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(0.95);
    transform-origin: bottom right;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
    font-family: inherit;
}
.wa-chat-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.wa-chat-header {
    background: #075e54;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
}
.wa-header-left {
    display: flex;
    align-items: center;
    gap: 11px;
}
.wa-avatar-container {
    position: relative;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.wa-avatar {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}
.wa-online-badge {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    background: #25d366;
    border: 2px solid #fff;
    border-radius: 50%;
}
.wa-header-info {
    text-align: left;
}
.wa-header-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.25;
}
.wa-header-status {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.85);
    margin: 3px 0 0;
    line-height: 1;
}
.wa-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color .2s, background .2s;
}
.wa-close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.wa-chat-body {
    background: #efeae2;
    padding: 20px 16px;
    min-height: 125px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.wa-message-bubble {
    background: #ffffff;
    border-radius: 0 12px 12px 12px;
    padding: 10px 14px 8px;
    max-width: 90%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    position: relative;
    text-align: left;
    align-self: flex-start;
}
.wa-message-bubble::before {
    content: "";
    position: absolute;
    top: 0;
    left: -7px;
    width: 0;
    height: 0;
    border-top: 8px solid #fff;
    border-left: 7px solid transparent;
}
.wa-sender-name {
    font-size: 11px;
    font-weight: 700;
    color: #075e54;
    display: block;
    margin-bottom: 3px;
}
.wa-message-text {
    font-size: 13px;
    color: #111b21;
    margin: 0;
    line-height: 1.4;
}
.wa-message-time {
    font-size: 10px;
    color: #667781;
    display: block;
    text-align: right;
    margin-top: 4px;
}

.wa-chat-footer {
    background: #f0f2f5;
    padding: 10px 14px;
    border-top: 1px solid #e9edef;
}
.wa-chat-form {
    display: flex;
    align-items: center;
    gap: 8px;
}
.wa-chat-input {
    flex: 1;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 13px;
    color: #111b21;
    outline: none;
    transition: border-color .2s;
}
.wa-chat-input:focus {
    border-color: #25d366;
}
.wa-send-btn {
    background: #25d366;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.4);
    transition: transform .2s, background .2s;
}
.wa-send-btn:hover {
    background: #20ba59;
    transform: scale(1.08);
}

@media (max-width: 480px) {
    .wa-chat-popup {
        right: 16px;
        left: 16px;
        width: auto;
        bottom: 80px;
    }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .hero-section { height: 360px; }
    .hero-text-box { width: 86% !important; left: 7% !important; right: auto !important; transform: translateY(-50%) !important; }
    .hero-text-box h1 { font-size: 22px; }
    .hero-text-box p  { font-size: 12px; }
    .menu-grid { grid-template-columns: 1fr; }
    .rec-card  { width: 90%; }
    .nav-links { gap: 18px; }
    .footer-container { flex-direction: column; gap: 35px; }
    .footer-col { width: 100%; max-width: 100%; }
    .parallax-section { height: 260px; background-attachment: scroll; }
    .form-bottom-row { flex-direction: column; align-items: stretch; gap: 12px; }
    .btn-submit { width: 100%; }
}

/* ─── GOOGLE TRANSLATE RESET / OVERRIDES ─── */
#google_translate_element {
    display: none !important;
}
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}
body {
    top: 0px !important;
    position: static !important;
}
.skiptranslate > iframe {
    height: 0 !important;
    border: none !important;
    box-shadow: none !important;
    display: none !important;
}
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
}
.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
