/**
 * SkySales Pro - Estilos base (compartidos por todas las vistas)
 * Variables, reset, header, footer, navegación, formularios de contacto
 */

:root {
    --primary: #ffffff;
    --bg-dark: #ffffff;
    --bg-card: #ffffff;
    --bg-lighter: #ffffff;
    --text: #4A5568;
    --text-muted: #9ca3af;
    --nav-bg: transparent;
    --nav-pill-bg: #ffffff;
    --nav-link: #1a1a3e;
    --nav-underline: #2727e1;
    --nav-height: 88px;
    --nav-logo-height: clamp(40px, 5vw, 52px);
    --nav-height-mobile: 72px;
    --nav-logo-height-mobile: clamp(36px, 9vw, 46px);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* ── Transición de página ── */
@keyframes pageIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

body {
    animation: pageIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.page-leaving {
    animation: pageOut 0.25s ease forwards;
}

body {
    font-family: 'Helvetica Neue', sans-serif;
    background: radial-gradient(circle at top right, var(--bg-lighter), var(--bg-dark));
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    min-width: 0;
}

main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    min-width: 0;
}

/* Fuente Archivo */
@font-face {
    font-family: 'Archivo';
    src: url('../res/fonts/Archivo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Archivo';
    src: url('../res/fonts/Archivo-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Archivo';
    src: url('../res/fonts/Archivo-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Archivo';
    src: url('../res/fonts/Archivo-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Archivo';
    src: url('../res/fonts/Archivo-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Archivo';
    src: url('../res/fonts/Archivo-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Tipografías */
@font-face {
    font-family: 'Helvetica Neue';
    src: url('../res/fonts/HelveticaNeueLight.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('../res/fonts/HelveticaNeueRoman.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('../res/fonts/HelveticaNeueMedium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('../res/fonts/HelveticaNeueBold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('../res/fonts/HelveticaNeueHeavy.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('../res/fonts/HelveticaNeueHeavy.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Aliases para compatibilidad con estilos existentes (Kontora → Helvetica Neue) */
@font-face {
    font-family: 'Kontora';
    src: url('../res/fonts/HelveticaNeueMedium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kontora';
    src: url('../res/fonts/HelveticaNeueBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kontora Black';
    src: url('../res/fonts/HelveticaNeueHeavy.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kontora Regular';
    src: url('../res/fonts/HelveticaNeueRoman.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kontora SemiBold';
    src: url('../res/fonts/HelveticaNeueMedium.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Kontora Extra';
    src: url('../res/fonts/HelveticaNeueHeavy.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Animación de entrada navbar */
@keyframes navSlideDown {
    from {
        opacity: 0;
        transform: translateY(-28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body > header {
    position: fixed;
    top: 1.25rem;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100vw;
    padding: 0 clamp(3rem, 8vw, 9rem);
    background: transparent;
    box-shadow: none;
    border-bottom: none;
    box-sizing: border-box;
    min-height: var(--nav-height);
    display: flex;
    align-items: center;
    animation: navSlideDown 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body > header nav.navbar {
    width: 100%;
    max-width: 100%;
    background: var(--nav-pill-bg);
    border-radius: 999px;
    padding: 1.1rem 0.75rem 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1rem, 2.5vw, 2.5rem);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    position: relative;
    transition: box-shadow 0.35s ease, background 0.35s ease;
}

/* Estado al hacer scroll */
body > header.is-scrolled nav.navbar {
    box-shadow: 0 8px 32px rgba(39, 39, 225, 0.13), 0 2px 8px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: clamp(0.5rem, 1.8vw, 1.75rem);
    flex: 1;
    justify-content: center;
    position: relative;
}

/* Pill deslizante entre ítems del menú (desktop) */
.nav-links::after {
    content: '';
    position: absolute;
    top: 50%;
    left: var(--nav-ind-x, 0);
    width: var(--nav-ind-w, 0);
    height: 2.25rem;
    transform: translateY(-50%);
    background: #2727e1;
    border-radius: 999px;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition:
        left 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.25s ease;
}

.nav-links.is-indicator-ready::after {
    opacity: 1;
}

.nav-links.is-indicator-no-transition::after {
    transition: none;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    line-height: 0;
}

.nav-logo img {
    height: var(--nav-logo-height);
    width: auto;
    object-fit: contain;
}

.nav-links a {
    color: #2727E1;
    font-family: 'Helvetica Neue', sans-serif;
    font-size: clamp(0.75rem, 1.05vw, 0.95rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    position: relative;
    z-index: 1;
    white-space: nowrap;
    background: transparent;
    transition: color 0.28s ease, opacity 0.2s ease;
}

.nav-links a:hover {
    color: #2727E1;
    opacity: 0.65;
}

.nav-links a.is-indicator-active {
    color: #ffffff;
    font-weight: 600;
    opacity: 1;
}

.nav-links a.is-indicator-active:hover {
    color: #ffffff;
    opacity: 1;
}

/* Pill activo — marcador en HTML; el fondo lo anima ::after */
.nav-links a.nav-link--pill {
    background: transparent;
    color: #2727E1;
    font-weight: 500;
    opacity: 1;
}

.nav-links a.nav-link--pill.is-indicator-active {
    color: #ffffff;
    font-weight: 600;
}

/* Botón "GET A PROPOSAL" */
.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
    color: #ffffff;
    font-family: 'Helvetica Neue', sans-serif;
    font-size: clamp(0.72rem, 1vw, 0.9rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    border: none;
    background-color: transparent;
    background-image: url('../res/img/get_a_proposal.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
    min-width: 140px;
}

.nav-cta:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    background-color: transparent;
}

.lang-selector-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--nav-link);
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.lang-selector {
    color: var(--nav-link);
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-weight: 500;
}

.lang-selector.is-active {
    font-weight: 700;
    color: var(--nav-link);
}

.lang-selector:not(.is-active) {
    color: var(--nav-link);
    opacity: 0.55;
}

.lang-selector-sep {
    opacity: 0.35;
    color: var(--nav-link);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--nav-link);
    font-size: 1.35rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.nav-mobile-panel {
    display: none;
}

@media (max-width: 900px) {

    html {
        scroll-padding-top: var(--nav-height-mobile);
    }

    body > header {
        min-height: var(--nav-height-mobile);
        padding: 0.6rem 1rem;
    }

    .nav-logo img {
        height: var(--nav-logo-height-mobile);
    }

    body > header nav.navbar {
        border-radius: 999px;
        padding: 0.35rem 0.45rem 0.35rem 0.9rem;
        gap: 0;
    }

    .nav-links::after {
        display: none;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-logo {
        flex: 1;
    }

    .nav-mobile-panel {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 72%;
        max-width: 300px;
        height: 100vh;
        background: var(--nav-pill-bg);
        flex-direction: column;
        padding: 4.5rem 1.75rem 2rem;
        transition: right 0.3s;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        gap: 0.15rem;
        z-index: 999;
    }

    .nav-mobile-panel .nav-item {
        color: #2727E1;
        font-family: 'Helvetica Neue', sans-serif;
        font-weight: 500;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        justify-content: flex-start;
        padding: 0.65rem 0;
        border-radius: 0;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        position: relative;
    }

    .nav-mobile-panel .nav-item.nav-link--pill {
        margin-top: 1rem;
        padding: 0.7rem 1.2rem;
        border-radius: 999px;
        color: #ffffff;
        font-weight: 600;
        background-color: transparent;
        background-image: url('../res/img/get_a_proposal.svg');
        background-size: 100% 100%;
        background-repeat: no-repeat;
        background-position: center;
        display: flex;
        justify-content: center;
    }

    .nav-mobile-panel.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
        margin-left: auto;
        z-index: 1;
    }
}

@media (min-width: 2000px) {
    :root {
        --nav-height: 106px;
        --nav-logo-height: 64px;
    }

    body > header {
        padding: 1rem 5rem;
    }

    .nav-links {
        gap: 2.5rem;
    }

    .nav-links a {
        font-size: 1.05rem;
        letter-spacing: 0.06em;
    }

    .nav-cta {
        font-size: 1rem;
        padding: 0.85rem 2rem;
        min-width: 180px;
    }
}

@media (min-width: 2560px) {
    :root {
        --nav-height: 120px;
        --nav-logo-height: 72px;
    }

    body > header {
        padding: 1.25rem 6rem;
    }

    .nav-links {
        gap: 3rem;
    }

    .nav-links a {
        font-size: 1.15rem;
    }

    .nav-cta {
        font-size: 1.1rem;
    }
}

/* Botones base */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: #0a0e14;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.btn-outline {
    background: #ffffff;
    color: #00b8f2;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-outline:hover,
.btn-outline:focus {
    background: #f0f0f0;
    color: #000000;
}

/* Section Titles (compartidos) */
.section-title-wrap {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #374151;
    margin: 0 0 0.75rem 0;
}

.section-title-underline {
    display: block;
    width: 60px;
    height: 5px;
    background: #0CB7F2;
    margin: 0 auto;
}

section {
    padding: var(--section-padding-y, 5rem) 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.section-inner {
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    padding-left: var(--container-padding, 2rem);
    padding-right: var(--container-padding, 2rem);
    width: 100%;
    box-sizing: border-box;
}

/* Contacto (compartido) */
.contacto-section {
    background: #00b8f2;
    padding: 4rem 2rem;
}

.contacto-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 900px) {
    .contacto-inner {
        grid-template-columns: 1fr;
    }
}

.contacto-heading {
    padding-left: 2rem;
}

.contacto-title {
    font-family: "Poppins", sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 0 0;
    line-height: 1.2;
}

.contacto-subtitle {
    font-family: "Poppins", sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.contacto-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .contacto-form-row {
        grid-template-columns: 1fr;
    }
}

.contacto-form .form-group {
    margin-bottom: 1rem;
}

.contacto-form input,
.contacto-form textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    background: #ffffff;
    border: none;
    color: #1f2937;
    font-family: inherit;
    font-size: 1rem;
    border-radius: 12px;
    box-sizing: border-box;
}

.contacto-form input::placeholder,
.contacto-form textarea::placeholder {
    color: var(--text-muted);
}

.contacto-form input:focus,
.contacto-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.contacto-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contacto-form-actions {
    text-align: right;
    margin-top: 0.5rem;
}

.btn-contacto {
    padding: 0.6rem 1.75rem;
    background: #ffffff;
    color: #6b7280;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 1rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-contacto:hover {
    background: #f3f4f6;
    color: #4b5563;
}