/* =========================================================
   ATABEY CREATIONS — Home
   Paleta oficial del manual de identidad:
   - Aguamarina (principal):  #009999
   - Marino     (secundario): #004E6B
   - Naranja    (acento):     #FF9248
   Tipografía: Work Sans
   ========================================================= */

:root {
    --aguamarina: #009999;
    --aguamarina-soft: #0bb;
    --marino: #004E6B;
    --marino-deep: #00293a;
    --naranja: #FF9248;
    --blanco: #ffffff;
    --negro: #000000;

    --font: "Work Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-display: "Poppins", "Work Sans", system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    min-height: 100vh;
}

body {
    font-family: var(--font);
    color: var(--blanco);
    background: #06121a;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* Cursor personalizado — personaje Yuki.
       Hotspot 10,8 ≈ esquina superior izquierda, manteniendo el feel
       de un puntero normal. Fallback a auto si el navegador no carga el PNG. */
    cursor: url("../img/cursor-32.png") 10 8, auto;
}

/* En elementos interactivos mantenemos el mismo cursor (consistencia visual)
   pero forzamos el fallback "pointer" para que el SO/lectores asistivos
   sepan que es clicable. */
a, button, .btn, .hero__social a, [role="button"] {
    cursor: url("../img/cursor-32.png") 10 8, pointer;
}

/* ========== Banner de fondo ========== */

.banner {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.banner__image {
    position: absolute;
    inset: -2%;
    background-image: url("../img/banner.jpg");
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    /* Parallax sutil con animación lenta */
    animation: bannerDrift 28s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes bannerDrift {
    0%   { transform: scale(1.06) translate(0, 0); }
    100% { transform: scale(1.1)  translate(-1.2%, -0.8%); }
}

/* Capa de oscurecimiento / tinte marino encima del banner.
   Más fuerte en el lado izquierdo para asegurar legibilidad del texto
   y dejar respirar la ilustración a la derecha. */
.banner__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(0, 41, 58, 0.92) 0%,
            rgba(0, 41, 58, 0.78) 22%,
            rgba(0, 41, 58, 0.45) 48%,
            rgba(0, 41, 58, 0.15) 72%,
            rgba(0, 41, 58, 0)    100%
        ),
        linear-gradient(
            180deg,
            rgba(0, 20, 30, 0.55) 0%,
            rgba(0, 20, 30, 0)   30%,
            rgba(0, 20, 30, 0)   70%,
            rgba(0, 20, 30, 0.65) 100%
        );
}

/* Viñeta para enfocar el centro y dar profundidad */
.banner__vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 65% 55%,
        transparent 0%,
        transparent 45%,
        rgba(0, 15, 25, 0.55) 100%
    );
    pointer-events: none;
}

/* ========== Topbar ========== */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 48px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.topbar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
}

.topbar__logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s ease;
}

.topbar__brand:hover .topbar__logo {
    transform: scale(1.06) rotate(-4deg);
}

.topbar__label {
    white-space: nowrap;
}

.topbar__right {
    display: flex;
    align-items: center;
    gap: 22px;
}

/* ===== Redes sociales (cabecera) ===== */

.topbar__social {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.topbar__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 30, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.topbar__social a:hover {
    /* Misma animación de icono que tenían antes: se elevan y se tiñen */
    transform: translateY(-3px) scale(1.08);
    background: var(--aguamarina);
    border-color: var(--aguamarina);
    box-shadow: 0 8px 18px rgba(0, 153, 153, 0.4);
}

.topbar__social a:focus-visible {
    outline: 2px solid var(--aguamarina);
    outline-offset: 3px;
}

/* ===== Selector de idioma ===== */

.lang {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(0, 20, 30, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lang__btn {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.65);
    background: none;
    border: none;
    /* Área de pulsado más amplia y cómoda */
    min-width: 48px;
    padding: 9px 14px;
    line-height: 1;
    text-transform: uppercase;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.lang__btn:hover {
    color: var(--blanco);
    background: rgba(255, 255, 255, 0.08);
}

.lang__btn.is-active {
    color: #ffffff;
    background: var(--aguamarina);
}

.lang__btn:focus-visible {
    outline: 2px solid var(--aguamarina);
    outline-offset: 3px;
}

/* ========== Hero — contenido abajo a la izquierda ========== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 120px 32px 90px 80px;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    max-width: 680px;
    margin-bottom: 4vh;
    animation: rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

/* H1 — titular */

.hero__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(36px, 5.6vw, 74px);
    letter-spacing: -0.02em;
    line-height: 1.02;
    margin: 0 0 22px;
    color: var(--blanco);
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

/* Párrafo de apoyo */

.hero__subtitle {
    font-weight: 300;
    font-size: clamp(16px, 1.7vw, 21px);
    letter-spacing: 0.01em;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    max-width: 540px;
    margin: 0 0 34px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

/* ========== Botones de acción ========== */

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 36px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 999px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    border: 1px solid transparent;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    white-space: nowrap;
}

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

.btn__icon {
    flex-shrink: 0;
}

/* Primario — naranja del manual (color complementario para contraste) */
.btn--primary {
    background: linear-gradient(135deg, #ffae6f 0%, var(--naranja) 60%, #ff7a2a 100%);
    color: #2a1300;
    box-shadow:
        0 10px 28px rgba(255, 146, 72, 0.35),
        0 2px 0 rgba(255, 255, 255, 0.25) inset;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 36px rgba(255, 146, 72, 0.5),
        0 2px 0 rgba(255, 255, 255, 0.3) inset;
}

.btn--primary:active {
    transform: translateY(0);
}

/* Secundario — ghost con borde aguamarina */
.btn--ghost {
    background: rgba(0, 41, 58, 0.45);
    color: var(--blanco);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
    background: rgba(0, 153, 153, 0.25);
    border-color: var(--aguamarina);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 153, 153, 0.25);
}

/* ========== Redes sociales ========== */

.hero__social {
    list-style: none;
    display: flex;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.hero__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(0, 30, 42, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
    text-decoration: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero__social a:hover {
    transform: translateY(-3px);
    color: var(--blanco);
    background: rgba(0, 153, 153, 0.85);
    border-color: var(--aguamarina);
    box-shadow: 0 10px 20px rgba(0, 153, 153, 0.35);
}

.hero__social a:focus-visible {
    outline: 2px solid var(--aguamarina);
    outline-offset: 3px;
}

/* ========== Indicador de scroll ========== */

.hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 7px;
    z-index: 5;
    transition: border-color 0.25s ease;
}

.hero__scroll span {
    width: 3px;
    height: 8px;
    background: var(--aguamarina);
    border-radius: 3px;
    animation: scrollDot 1.8s ease-in-out infinite;
}

.hero__scroll:hover {
    border-color: var(--aguamarina);
}

@keyframes scrollDot {
    0%   { transform: translateY(0);   opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* ========== Promise ========== */

.promise {
    position: relative;
    z-index: 2;
    padding: 120px 48px;
    background:
        linear-gradient(180deg, rgba(0, 25, 36, 0.92) 0%, #021a26 25%, #01141d 100%);
    box-shadow: inset 0 1px 0 rgba(0, 153, 153, 0.4);
}

.promise__inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 64px;
}

.promise__eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--naranja);
    margin-bottom: 18px;
}

.promise__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(34px, 4.6vw, 60px);
    line-height: 1.04;
    letter-spacing: -0.02em;
    margin-bottom: 26px;
    color: var(--blanco);
}

.promise__body {
    font-size: clamp(16px, 1.6vw, 19px);
    font-weight: 300;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
    margin-bottom: 34px;
}

.promise__media img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.promise__media img:hover {
    transform: translateY(-6px) rotate(-1deg);
}

/* ========== Secret Sauce ========== */

.sauce {
    position: relative;
    z-index: 2;
    padding: 120px 48px;
    background: #01141d;
    overflow: hidden;
}

.sauce__inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
}

.sauce__eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--naranja);
    margin-bottom: 18px;
}

.sauce__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.06;
    letter-spacing: -0.02em;
    margin-bottom: 26px;
    color: var(--blanco);
}

.sauce__body {
    font-size: clamp(16px, 1.5vw, 19px);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    max-width: 520px;
}

/* Rejilla de avatares — 2x2 con animación constante */

.sauce__grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    justify-items: center;
}

.sauce__avatar {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    background: #008b8b;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.45),
        0 0 0 2px rgba(255, 255, 255, 0.08);
    will-change: transform;
    /* Movimiento constante: cada avatar tiene un ritmo y desfase distintos
       para que el conjunto se vea vivo y nunca sincronizado. */
    animation: float 6s ease-in-out infinite;
}

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

.sauce__avatar:hover {
    animation-play-state: paused;
}

.sauce__avatar--1 { animation-duration: 5.2s; animation-delay: 0s;    }
.sauce__avatar--2 { animation-duration: 6.5s; animation-delay: -1.3s; }
.sauce__avatar--3 { animation-duration: 5.8s; animation-delay: -2.2s; }
.sauce__avatar--4 { animation-duration: 7.1s; animation-delay: -0.6s; }

@keyframes float {
    0%   { transform: translateY(0)     rotate(0); }
    25%  { transform: translateY(-10px) rotate(-1.5deg); }
    50%  { transform: translateY(0)     rotate(0); }
    75%  { transform: translateY(-6px)  rotate(1.5deg); }
    100% { transform: translateY(0)     rotate(0); }
}

/* Respeta a quien desactiva animaciones por accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .sauce__avatar {
        animation: none;
    }
}

/* ========== Contacto ========== */

.contact {
    position: relative;
    z-index: 2;
    padding: 110px 32px 120px;
    background: #01141d;
}

.contact__inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.contact__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(30px, 4.4vw, 52px);
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 14px;
    color: var(--blanco);
}

.contact__sub {
    font-size: clamp(15px, 1.5vw, 18px);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.72);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.55;
}

/* Icono de correo grande con halo aguamarina y bote sutil */
.contact__icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aguamarina);
    border-radius: 50%;
    background: rgba(0, 153, 153, 0.1);
    border: 1px solid rgba(0, 153, 153, 0.3);
    box-shadow: 0 0 60px rgba(0, 153, 153, 0.25);
    animation: contactBob 5s ease-in-out infinite;
}

@keyframes contactBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* CTA con flecha que se desliza al hover */
.contact__cta {
    font-size: 15px;
}

.contact__arrow {
    display: inline-block;
    margin-left: 2px;
    transition: transform 0.25s ease;
}

.contact__cta:hover .contact__arrow {
    transform: translateX(6px);
}

.contact__email {
    margin-top: 22px;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.contact__email a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    padding-bottom: 1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.contact__email a:hover {
    color: var(--aguamarina);
    border-color: var(--aguamarina);
}

@media (prefers-reduced-motion: reduce) {
    .contact__icon { animation: none; }
}

/* ========== Footer ========== */

.footer {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 26px 24px;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    background: #01141d;
}

.footer__dot {
    color: var(--aguamarina);
}

/* ========== Responsive ========== */

@media (max-width: 1024px) {
    .hero {
        padding-left: 56px;
    }
}

@media (max-width: 860px) {
    /* En pantallas medianas ocultamos el texto de la marca (deja el logo)
       para que quepan logo + redes + idioma sin agobios. */
    .topbar__label {
        display: none;
    }
}

@media (max-width: 720px) {
    .topbar {
        padding: 14px 16px;
    }
    .topbar__logo {
        width: 36px;
        height: 36px;
    }
    .topbar__brand {
        gap: 8px;
    }
    .topbar__right {
        gap: 10px;
    }
    .topbar__social {
        gap: 4px;
    }
    .topbar__social a {
        width: 32px;
        height: 32px;
    }
    .topbar__social a svg {
        width: 15px;
        height: 15px;
    }
    .lang__btn {
        min-width: 38px;
        padding: 7px 9px;
        font-size: 11px;
    }

    /* En móvil quitamos el movimiento lento del banner (puede marearse)
       y reposicionamos para que se vean los personajes con el overlay
       reforzado para mantener la legibilidad. */
    .banner__image {
        background-position: 70% center;
        animation: none;
        transform: scale(1.04);
    }
    .banner__overlay {
        background:
            linear-gradient(
                180deg,
                rgba(0, 41, 58, 0.85) 0%,
                rgba(0, 41, 58, 0.55) 40%,
                rgba(0, 41, 58, 0.75) 100%
            );
    }

    .hero {
        padding: 110px 24px 96px;
    }
    .hero__content {
        align-items: flex-start;
        max-width: 100%;
        margin-bottom: 0;
    }
    .hero__actions {
        width: 100%;
    }
    .btn {
        flex: 1 1 auto;
        justify-content: center;
        padding: 13px 18px;
        font-size: 12px;
    }

    /* En móvil el hero ocupa la pantalla con el contenido abajo;
       ocultamos el indicador de scroll para no solaparlo. */
    .hero__scroll {
        display: none;
    }

    .promise {
        padding: 80px 24px 90px;
    }
    .contact {
        padding: 80px 24px 90px;
    }

    .footer {
        font-size: 9px;
        letter-spacing: 0.16em;
    }
}

/* Promise / Sauce: apilar (imagen/grid arriba, texto debajo) en pantallas medianas/pequeñas */
@media (max-width: 860px) {
    .promise__inner,
    .sauce__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .promise__media,
    .sauce__grid {
        order: -1;
        max-width: 460px;
        margin: 0 auto;
    }
    .promise__body,
    .sauce__body {
        max-width: 100%;
    }
    .sauce {
        padding: 80px 24px 90px;
    }
}

/* En móviles muy estrechos, reducir aún más para que todo quepa */
@media (max-width: 420px) {
    .topbar {
        padding: 12px 12px;
    }
    .topbar__logo {
        width: 32px;
        height: 32px;
    }
    .topbar__right {
        gap: 8px;
    }
    .topbar__social {
        gap: 3px;
    }
    .topbar__social a {
        width: 30px;
        height: 30px;
    }
    .topbar__social a svg {
        width: 14px;
        height: 14px;
    }
    .lang__btn {
        min-width: 34px;
        padding: 6px 8px;
        font-size: 11px;
    }
}
