/**
 * SkySales Pro - Estilos base (compartidos por todas las vistas)
 * Variables, reset, header, footer, navegación, formularios de contacto
 */

:root {
    --primary: #c5a059;
    --bg-dark: #ffffff;
    --bg-card: #ffffff;
    --bg-lighter: #ffffff;
    --text: #4A5568;
    --text-muted: #9ca3af;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', 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;
}

/* Header / Nav */
@font-face {
    font-family: 'Kontora';
    src: url('../res/fonts/Kontora-SemiBold.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Kontora';
    src: url('../res/fonts/Kontora-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Kontora Black';
    src: url('../res/fonts/Kontora-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Kontora Regular';
    src: url('../res/fonts/Kontora-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100vw;
    padding-left: 3.5rem;
    padding-right: 3.5rem;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Sombra para separar */
    border-bottom: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
    min-height: 95px;
    /* Un poco mas ancha/alta */
    display: flex;
    align-items: stretch;
}

header nav.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    /* Más espaciosa */
    margin: 0 auto;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 40px;
    text-decoration: none;
}

.nav-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.nav-links {
    display: flex;
    gap: 4.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: flex;
    align-items: stretch;
}

.nav-links a {
    color: #606060;
    font-family: 'Kontora', 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    text-transform: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
    border-radius: 0;
    position: relative;
    transition: color 0.2s, font-weight 0.2s;
}

.nav-links a:hover {
    color: #185480;
    background: transparent;
    opacity: 1;
}

.nav-links a.active {
    background: transparent;
    color: #185480;
    font-weight: 800;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 5px;
    background-color: #80A8CB;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.lang-selector-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #606060;
    font-family: 'Kontora', 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
}

.lang-selector {
    color: #606060;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-weight: 600;
}

.lang-selector.is-active {
    font-weight: 600;
    color: #1a5e8d;
}

.lang-selector:not(.is-active) {
    color: #606060;
    opacity: 0.8;
}

.lang-selector-sep {
    opacity: 0.5;
    color: #A0AEC0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #185480;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-mobile-panel {
    display: none;
}

@media (max-width: 900px) {

    .nav-center,
    .nav-right {
        display: none;
    }

    .nav-mobile-panel {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 320px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        gap: 0.5rem;
        z-index: 999;
    }

    .nav-mobile-panel .nav-item {
        color: #4A5568;
        font-family: 'Kontora', 'Outfit', sans-serif;
        font-weight: 600;
        text-transform: none;
        justify-content: flex-start;
        padding: 0.5rem 0;
        border-radius: 0;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
    }

    .nav-mobile-panel .nav-item.active {
        color: #185480;
        background: transparent;
    }

    .nav-mobile-panel .lang-selector-wrap {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e1e8f0;
    }

    .nav-mobile-panel.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* 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;
}