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

:root {
    --primary: #c5a059;
    --bg-dark: #0a0e14;
    --bg-card: #12161f;
    --bg-lighter: #1a1f2c;
    --glass: rgba(255, 255, 255, 0.05);
    --text: #ffffff;
    --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 */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100vw;
    padding-left: var(--container-padding, 1.25rem);
    padding-right: var(--container-padding, 1.25rem);
    background: #212121;
    box-sizing: border-box;
    transition: all 0.3s ease;
    min-height: 100px;
    display: flex;
    align-items: stretch;
}

header nav {
    width: 100%;
}

nav {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 72px;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-right {
    justify-content: flex-end;
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
}

.logo-block {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 65px;
    min-width: 150px;
    text-decoration: none;
    color: #ffffff;
}

.logo-block img {
    height: 100%;
    width: auto;
    min-width: 130px;
    max-width: none;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    image-rendering: -moz-crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
    text-align: center;
}

.nav-item:hover {
    opacity: 0.9;
}

.nav-item.active {
    background: #ffffff;
    color: #444444;
}

.nav-links {
    display: flex;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s, color 0.2s;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
}

.nav-links a:hover {
    opacity: 0.9;
}

.nav-links a.active {
    background: #ffffff;
    color: #444444;
}

.lang-selector-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lang-selector {
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
}

.lang-selector:hover {
    opacity: 0.9;
}

.lang-selector.is-active {
    font-weight: 600;
}

.lang-selector:not(.is-active) {
    opacity: 0.7;
}

.lang-selector-sep {
    opacity: 0.5;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

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

@media (max-width: 768px) {
    .nav-left,
    .nav-right {
        display: none;
    }

    .nav-mobile-panel {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 320px;
        height: 100vh;
        background: #282828;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        gap: 0.5rem;
        z-index: 999;
    }

    .nav-mobile-panel .nav-item {
        justify-content: flex-start;
    }

    .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;
}

/* Footer - mismo aspecto, espaciado fluido */
body .footer {
    background-color: #212121;
    width: 100%;
    padding: var(--section-padding-y, 3rem) var(--container-padding, 10%);
}

body .footer * {
    box-sizing: border-box;
}

body .footer-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 2rem;
}

body .footer-column {
    display: flex;
    flex-direction: column;
    width: 100%;
}

body .footer-column-logo .footer-logo-link {
    display: block;
    width: fit-content;
}

body .footer-logo {
    width: 10rem;
    max-width: 100%;
    height: auto;
    display: block;
}

body .footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 1rem 0 0.5rem;
    padding: 0;
}

body .footer-legal {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    padding: 0;
}

body .footer-legal-link {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: underline;
}

body .footer-legal-link:hover {
    color: white !important;
}

body .footer-contact-block {
    margin-bottom: 1.25rem;
}

body .footer-contact-block:last-child {
    margin-bottom: 0;
}

body .footer-contact-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.25rem;
}

body .footer-contact-value {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

body .footer-contact-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

body .footer-contact-link:hover {
    color: white !important;
}

body .footer-support-section {
    margin-bottom: 1.5rem;
}

body .footer-social-section .footer-title {
    padding-top: 0;
}

body .footer-social-icons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

body .footer-title {
    font-size: 1rem;
    color: #00b8f2;
    padding: 1rem 0 0.5rem;
}

body .footer-column-support .footer-title:first-child {
    padding-top: 0;
}

body .footer-a {
    font-size: 0.9rem;
    color: white !important;
    font-weight: 700;
    padding: 0.5rem 0 0;
    display: block;
}

body .footer .social {
    margin: 0;
    width: 3rem;
    height: auto;
}

@media (min-width: 1024px) {
    body .footer-content {
        flex-direction: row;
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    body .footer-column {
        flex: 1;
        min-width: 0;
        padding: 0;
    }

    body .footer-logo {
        width: 12rem;
    }

    body .footer-title {
        font-size: 1rem;
    }

    body .footer-a {
        font-size: 0.9rem;
    }

    body .footer-contact-label {
        font-size: 0.85rem;
    }

    body .footer-contact-value {
        font-size: 0.85rem;
    }
}
