:root {
    --naranja: #ea5b1f;
    --naranja-dark: #c94814;
    --negro: #1a1a1a;
    --crema: #fff8f0;
    --texto: #2b2b2b;
}

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

html { scroll-behavior: smooth; }

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', system-ui, sans-serif;
    color: var(--texto);
    background: var(--crema);
}

h1, h2, h3 {
    font-family: 'Fredoka', 'Poppins', sans-serif;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

img { display: block; max-width: 100%; }

/* ---------------- Topbar ---------------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

.logo img {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav a {
    text-decoration: none;
    color: var(--negro);
    font-weight: 600;
    font-size: 14px;
}

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

.nav-factura {
    background: var(--negro);
    color: #fff !important;
    padding: 9px 16px;
    border-radius: 30px;
    font-size: 13px !important;
}

.nav-factura:hover { background: var(--naranja); }

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    color: #fff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,10,5,0.55) 0%, rgba(20,10,5,0.75) 100%);
}

.hero-content {
    position: relative;
    padding: 90px 20px 60px;
    text-align: center;
}

.hero h1 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.15;
    text-shadow: 0 3px 12px rgba(0,0,0,0.4);
}

.hero h1 span { color: #ffb27a; }

.hero p {
    max-width: 480px;
    margin: 18px auto 0;
    font-size: 16px;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 30px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 36px;
    margin-top: 46px;
    flex-wrap: wrap;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stats strong {
    font-family: 'Fredoka', sans-serif;
    font-size: 24px;
    color: #ffb27a;
}

.hero-stats span {
    font-size: 12px;
    opacity: 0.85;
}

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.15s, background 0.15s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: var(--naranja);
    color: #fff;
}

.btn-primary:hover { background: var(--naranja-dark); }

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover { background: #fff; color: var(--negro); }

.btn-whatsapp {
    background: #25d366;
    color: #fff;
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
}

.btn-whatsapp:hover { background: #1ebe5a; }

.btn-facebook {
    background: #1877f2;
    color: #fff;
}

.btn-facebook:hover { background: #145dc4; }

/* ---------------- Menu ---------------- */
.menu {
    padding: 70px 0 50px;
    text-align: center;
}

.menu h2, .sucursales h2 {
    font-size: 32px;
    color: var(--negro);
}

.menu-sub {
    color: #777;
    margin-top: 8px;
    margin-bottom: 36px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.menu-item {
    position: relative;
    min-width: 0;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3/4;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

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

.menu-item figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 14px 10px 10px;
    background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-align: left;
}

/* ---------------- Sucursales ---------------- */
.sucursales {
    padding: 60px 0;
    text-align: center;
    background: #fff;
}

.suc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.suc-card {
    background: var(--crema);
    border: 2px solid #f1ddce;
    border-radius: 16px;
    padding: 26px 16px;
}

.suc-card h3 {
    font-size: 19px;
    color: var(--negro);
}

.suc-dir {
    font-size: 13px;
    color: #777;
    margin: 8px 0 4px;
    min-height: 34px;
}

.suc-tel {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--naranja-dark);
    text-decoration: none;
    margin-bottom: 14px;
}

.suc-tel:hover { text-decoration: underline; }

/* ---------------- Factura CTA ---------------- */
.factura-cta {
    position: relative;
}

.factura-cta-inner {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    background:
        repeating-conic-gradient(#241d19 0% 25%, #2e2621 0% 50%) 0 0 / 56px 56px;
}

.factura-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 70px 20px;
    background: linear-gradient(180deg, rgba(20,10,5,0.82), rgba(20,10,5,0.88));
}

.factura-content h2 {
    font-size: 28px;
}

.factura-content p {
    max-width: 460px;
    margin: 14px 0 26px;
    opacity: 0.95;
}

/* ---------------- Contacto ---------------- */
.contacto {
    padding: 60px 0 70px;
    text-align: center;
    background: var(--crema);
}

.contacto-form {
    max-width: 480px;
    margin: 30px auto 0;
    text-align: left;
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.contacto-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin: 14px 0 6px;
    color: var(--negro);
}

.contacto-form label:first-of-type { margin-top: 0; }

.contacto-form input,
.contacto-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: var(--texto);
}

.contacto-form input:focus,
.contacto-form textarea:focus {
    outline: none;
    border-color: var(--naranja);
    box-shadow: 0 0 0 3px rgba(234,91,31,0.15);
}

.contacto-form textarea { resize: vertical; }

.contacto-form button {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    border: none;
    border-radius: 30px;
    background: var(--naranja);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.contacto-form button:hover { background: var(--naranja-dark); }
.contacto-form button:disabled { background: #aaa; cursor: not-allowed; }

.contacto .alert {
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

.contacto .alert.error {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6c1;
}

.contacto-exito {
    max-width: 480px;
    margin: 30px auto 0;
    background: #fff;
    border-radius: 16px;
    padding: 40px 28px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.contacto-exito h3 { color: #1e8449; margin-bottom: 10px; }

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* ---------------- Footer ---------------- */
.footer {
    background: var(--negro);
    color: #fff;
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-logo {
    height: 56px;
    width: 56px;
    border-radius: 50%;
}

.footer-copy {
    font-size: 13px;
    opacity: 0.7;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 720px) {
    .hero h1 { font-size: 32px; }
    .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .suc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav { gap: 12px; }
    .nav a:not(.nav-factura) { display: none; }
}

@media (max-width: 420px) {
    .suc-grid { grid-template-columns: minmax(0, 1fr); }
}
