/* =========================================================
   FUENTES
   ========================================================= */

@font-face {
    font-family: "Montserrat Custom";
    src: url("../../public/fonts/montserrat-medium.ttf")
        format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat Custom";
    src: url("../../public/fonts/montserrat-bold.OTF")
        format("opentype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Avenir Next Condensed Custom";
    src: url("../../public/fonts/avenir-next-condensed-demibold-italic.ttf")
        format("truetype");
    font-style: italic;
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: "Avenir Next Condensed Custom";
    src: url("../../public/fonts/avenir-next-condensed-heavy-italic.ttf")
        format("truetype");
    font-style: italic;
    font-weight: 900;
    font-display: swap;
}

/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --color-green: #75ba21;
    --color-magenta: #b60087;
    --color-purple: #908899;
    --color-purple-dark: #811f8c;
    --color-orange: #fa4515;

    --color-white: #ffffff;
    --color-black: #171717;
    --color-focus: #ffe600;

    /* Degradados principales */
    --gradient-hero: linear-gradient(
        180deg,
        #aa0788 0%,
        #a70989 22%,
        #9b108a 50%,
        #8e188c 76%,
        #881c8a 100%
    );

    --gradient-wave: linear-gradient(
        180deg,
        #801b81 0%,
        #971395 24%,
        #b60087 50%,
        #a70989 76%,
        #aa0788 100%
    );

    /* Fondos decorativos */
    --gradient-purple-highlight: linear-gradient(
        90deg,
        transparent 0%,
        rgb(129 31 140 / 75%) 18%,
        rgb(129 31 140 / 88%) 35%,
        rgb(129 31 140 / 88%) 65%,
        rgb(129 31 140 / 75%) 82%,
        transparent 100%
    );

    --gradient-steps-wave: linear-gradient(
        180deg,
        #b60087 0%,
        #b60087 38%,
        #9f0d89 55%,
        #9b108a 72%,
        #8e188c 87%,
        #811f8c 100%
    );

    --gradient-steps-wave-desktop: linear-gradient(
        90deg,
        #8f1a85 0%,
        #8f1a85 40%,
        #9a1684 80%,
        #9a1684 100%
    );

    --gradient-desktop-darkness: linear-gradient(
        180deg,
        #a70d84 0%,
        #911a87 30%,
        #71298b 55%,
        #702a91 72%,
        #702a91 100%
    );

    --font-primary: "Montserrat Custom", Montserrat, Arial, sans-serif;

    --font-display:
        "Avenir Next Condensed Custom",
        "Arial Narrow",
        sans-serif;

    --container-sm: 720px;
    --container-md: 960px;
    --container-lg: 1200px;
    --container-xl: 1320px;

    --page-gutter: clamp(1rem, 4vw, 3rem);

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;

    --transition-fast: 160ms ease;
    --transition-normal: 280ms ease;

    --header-z-index: 100;
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

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

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

@supports not (overflow: clip) {
    html,
    body {
        overflow-x: hidden;
    }
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;

    overflow-x: hidden;

    color: var(--color-white);
    background-color: var(--color-magenta);

    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.5;

    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body,
h1,
h2,
h3,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

h1,
h2,
h3 {
    line-height: 1.05;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    color: inherit;
    font: inherit;
}

button {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

img,
picture,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

iframe {
    border: 0;
}


/* =========================================================
   ESTRUCTURA
   ========================================================= */

.container {
    width: min(
        calc(100% - (var(--page-gutter) * 2)),
        var(--container-lg)
    );
    margin-inline: auto;
}

.container--wide {
    width: min(
        calc(100% - (var(--page-gutter) * 2)),
        var(--container-xl)
    );
    margin-inline: auto;
}

.section {
    position: relative;
    isolation: isolate;
}

.full-width {
    width: 100%;
}


/* =========================================================
   UTILIDADES
   ========================================================= */

.visually-hidden {
    position: absolute;

    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;

    border: 0;
}

.skip-link {
    position: fixed;
    top: var(--space-3);
    left: var(--space-3);
    z-index: 1000;

    padding: var(--space-3) var(--space-4);

    color: var(--color-black);
    background-color: var(--color-white);
    border-radius: 0.25rem;

    font-weight: 700;

    transform: translateY(-200%);
    transition: transform var(--transition-fast);
}

.skip-link:focus {
    transform: translateY(0);
}

.gtm-noscript {
    position: absolute;
    width: 0;
    height: 0;
    visibility: hidden;
}


/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 4px;
}

::selection {
    color: var(--color-white);
    background-color: var(--color-orange);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (min-width: 48rem) {
    :root {
        --page-gutter: clamp(1.5rem, 5vw, 4rem);
    }
}

@media (min-width: 64rem) {
    :root {
        --page-gutter: clamp(2rem, 5vw, 5rem);
    }
}

@media (min-width: 90rem) {
    :root {
        --page-gutter: 5rem;
    }
}


/* =========================================================
   PREFERENCIAS DEL DISPOSITIVO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   BOTÓN DE DESCARGA DE APP
   ========================================================= */

.container-btn-app {
    position: fixed;
    bottom: 220px;
    right: 20px;
    z-index: 9998;
    display: block;
    animation: slideInApp 0.5s ease-out;
}

@keyframes slideInApp {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-app {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-app:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.5);
}

.btn-app .fa-mobile-alt {
    font-size: 28px;
    color: white;
}

#span-app {
    position: absolute;
    right: 70px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    display: none;
    font-family: 'Montserrat', sans-serif;
}

.app-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #4CAF50;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid white;
    animation: pulseApp 2s infinite;
    z-index: 1;
}

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

@media (max-width: 768px) {
    .container-btn-app {
        top: 120px;
        right: 15px;
    }

    .btn-app {
        width: 55px;
        height: 55px;
    }

    .btn-app .fa-mobile-alt {
        font-size: 24px;
    }

    #span-app {
        font-size: 12px;
        padding: 8px 12px;
    }
}