:root {
    --primary: #0d7185;
    --primary-dark: #0a4f5d;
    --secondary: #97bf0d;
    --tertiary: #ffad20;
    --white: #ffffff;
    --text: #3b4a4f;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: aliceblue;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    color: var(--text);
    overflow-x: hidden;
}

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

/* ---------- Navegación ---------- */
.nav-container {
    position: sticky;
    top: 0;
    z-index: 60;
    box-shadow: 0 2px 10px rgba(13, 113, 133, 0.12);
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background-color: var(--white);
    padding: 4px 30px;
}

.nav-logo {
    display: block;
    flex-shrink: 0;
}

.nav-logo img {
    width: 80px;
    height: 80px;
}

.head-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    border: none;
    color: rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 400;
    transition: all .3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    font-family: inherit;
    background: transparent;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    border-radius: 5px;
    z-index: -2;
}

.btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--secondary);
    transition: all .3s;
    border-radius: 5px;
    z-index: -1;
}

.btn:hover,
.btn:focus-visible {
    color: #fff;
}

.btn:hover::before,
.btn:focus-visible::before {
    width: 100%;
}

/* ---------- Hero ---------- */
.hero-container {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #eaf6f8 55%, #e3f1d2 100%);
}

.hero {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 48px) 0;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
    gap: clamp(16px, 4vw, 48px);
    min-height: clamp(520px, 60vw, 700px);
}

.hero-content {
    align-self: center;
    padding-bottom: clamp(90px, 15vw, 210px);
}

.hero h1 {
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 18px;
}

.hero h2 {
    display: inline-block;
    font-size: clamp(0.95rem, 1.8vw, 1.25rem);
    font-weight: 700;
    color: var(--primary-dark);
    background-color: var(--tertiary);
    padding: 8px 18px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.hero p {
    font-size: clamp(1rem, 1.9vw, 1.3rem);
    margin-bottom: 26px;
}

/* ---------- Botón de delivery (WhatsApp) ---------- */
.btn-delivery {
    display: inline-block;
    width: clamp(220px, 28vw, 340px);
    border-radius: 18px;
    transition: transform .25s ease, filter .25s ease;
    animation: latido 2.6s ease-in-out infinite;
    -webkit-tap-highlight-color: transparent;
}

.btn-delivery img {
    width: 100%;
    filter: drop-shadow(0 6px 10px rgba(13, 113, 133, 0.25));
}

.btn-delivery:hover,
.btn-delivery:focus-visible {
    transform: scale(1.06);
    animation: none;
    filter: brightness(1.05);
}

.btn-delivery:active {
    transform: scale(0.97);
}

.btn-delivery:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
}

.delivery-hint {
    display: block;
    margin-top: 6px;
    margin-left: 6px;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--primary-dark);
}

/* ---------- Botón de sugerencias y quejas (WhatsApp) ---------- */
.btn-sugerencias {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 12px 22px;
    border-radius: 999px;
    background-color: var(--white);
    color: var(--primary-dark);
    border: 2px solid var(--primary);
    font-size: clamp(0.9rem, 1.6vw, 1.05rem);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(13, 113, 133, 0.18);
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-sugerencias:hover,
.btn-sugerencias:focus-visible {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-sugerencias:active {
    transform: scale(0.97);
}

.btn-sugerencias:focus-visible {
    outline: 3px solid var(--tertiary);
    outline-offset: 3px;
}

@keyframes latido {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.04); }
}

/* ---------- Imagen del cadete ---------- */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.img-cadete {
    width: 100%;
    max-width: 460px;
    height: auto;
    margin-bottom: -2px;
}

/* ---------- Ondas (abajo del hero, por encima del cadete) ---------- */
.img-onda {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: auto;
    z-index: 2;
    pointer-events: none;
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
    .nav-menu {
        padding: 4px 16px;
    }

    .nav-logo img {
        width: 64px;
        height: 64px;
    }

    .btn {
        padding: 9px 10px;
        font-size: 11px;
    }

    .hero {
        grid-template-columns: 1fr 0.8fr;
    }
}

/* ---------- Celular ---------- */
@media (max-width: 700px) {
    .nav-menu {
        flex-direction: column;
        padding: 6px 12px 10px;
        gap: 6px;
    }

    .nav-logo img {
        width: 56px;
        height: 56px;
    }

    .head-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .btn {
        width: 100%;
        padding: 10px 6px;
        font-size: 11px;
        background-color: #f2f7f8;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0;
        min-height: 0;
        padding-top: 28px;
    }

    .hero-content {
        padding-bottom: 8px;
    }

    .btn-delivery {
        width: min(78vw, 320px);
    }

    .delivery-hint {
        margin-left: 0;
    }

    .hero-visual {
        margin-top: 6px;
    }

    .img-cadete {
        width: min(82vw, 380px);
    }
}

/* ---------- Celulares chicos ---------- */
@media (max-width: 380px) {
    .btn {
        font-size: 10px;
        letter-spacing: -0.2px;
    }
}

/* ---------- Pantallas muy grandes ---------- */
@media (min-width: 1600px) {
    .hero {
        max-width: 1400px;
    }

    .img-cadete {
        max-width: 520px;
    }
}

/* ---------- Accesibilidad: menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
    .btn-delivery {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ---------- Trabaja con nosotros ---------- */
.trabaja {
    background-color: #08768a; /* mismo celeste/azul de las ondas, para que continúen sin corte */
    color: var(--white);
    text-align: center;
    padding: clamp(28px, 5vw, 56px) 20px clamp(48px, 7vw, 84px);
    scroll-margin-top: 90px;
}

.trabaja-inner {
    max-width: 720px;
    margin: 0 auto;
}

.trabaja h2 {
    font-size: clamp(1.6rem, 3.6vw, 2.6rem);
    line-height: 1.15;
    margin-bottom: 10px;
}

.trabaja-sub {
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    color: var(--tertiary);
    font-weight: 700;
    margin-bottom: 22px;
}

.trabaja-mail {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--white);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    text-decoration: none;
    padding: 14px 26px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    transition: transform .25s ease, background-color .25s ease, color .25s ease;
    overflow-wrap: anywhere;
}

.trabaja-mail:hover,
.trabaja-mail:focus-visible {
    background-color: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
}

.trabaja-mail:focus-visible {
    outline: 3px solid var(--tertiary);
    outline-offset: 3px;
}

/* ---------- Ventanas (modales) ---------- */
.modal {
    border: none;
    border-radius: 18px;
    padding: 0;
    width: min(92vw, 460px);
    max-height: 88vh;
    margin: auto;
    background-color: var(--white);
    color: var(--text);
    box-shadow: 0 20px 50px rgba(10, 79, 93, 0.35);
    overflow: hidden;
}

.modal[open] {
    display: flex;
    flex-direction: column;
    animation: modal-in .25s ease;
}

.modal::backdrop {
    background: rgba(10, 79, 93, 0.55);
    backdrop-filter: blur(2px);
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background-color: var(--primary);
    color: var(--white);
    padding: 16px 20px;
    border-bottom: 4px solid var(--secondary);
}

.modal-head h3 {
    font-size: 1.2rem;
}

.modal-close {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s;
}

.modal-close:hover,
.modal-close:focus-visible {
    background-color: var(--tertiary);
    color: var(--primary-dark);
}

.modal-intro {
    padding: 14px 20px 0;
    font-size: .95rem;
}

.modal-list {
    list-style: none;
    padding: 14px 16px 18px;
    display: grid;
    gap: 10px;
    overflow-y: auto;
}

.branch {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background-color: #f2f7f8;
    border-left: 5px solid var(--secondary);
}

.branch-num {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--tertiary);
    color: var(--primary-dark);
    font-weight: 900;
    display: grid;
    place-items: center;
}

.branch-info {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.branch-info strong {
    color: var(--primary-dark);
}

.branch-line,
.branch-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .95rem;
}

.branch-line svg,
.branch-phone svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.branch-phone {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.branch-phone:hover,
.branch-phone:focus-visible {
    color: #6f8f09;
    text-decoration: underline;
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .modal[open] {
        animation: none;
    }
}
