/* --- RESET Y BASE (Copiado de index.html para consistencia) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #000;
    color: #fff;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

/* --- FONDO INTERACTIVO (El Globo - Reutilizado) --- */
#globeViz {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    transform: translateX(25%);
    opacity: 0.3;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

@media (max-width: 768px) {
    #globeViz {
        transform: translateX(0);
        opacity: 0.2;
    }
}

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

/* --- CAPA DE CONTENIDO (Full Viewport - Sin Scroll) --- */
.content-overlay {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.9) 100%);
    overflow: hidden;
    pointer-events: none;
}

/* Permite interacción en elementos clicables */
header,
.contacto-container {
    pointer-events: auto;
}

/* --- HEADER (Idéntico a index.html) --- */
header {
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #fff;
    text-transform: uppercase;
    transition: color 0.3s, border-bottom 0.3s;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
}

.logo a:hover .logo-text {
    color: #0066ff;
    border-bottom: 1px solid #0066ff;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s, border-bottom 0.3s;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
}

nav a:hover,
nav a.active {
    color: #0066ff;
    border-bottom: 1px solid #0066ff;
}

/* --- CONTENIDO PRINCIPAL CONTACTO (Ajustado para una pantalla sin scroll) --- */
.contacto-container {
    padding: 30px 50px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 25px;
    border-left: 5px solid #0066ff;
    padding-left: 20px;
    flex-shrink: 0;
}

.contacto-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    flex: 1;
    align-content: center;
}

/* --- SECCIÓN DE INFORMACIÓN --- */
.info-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    backdrop-filter: blur(3px);
    height: fit-content;
}

.info-section h2 {
    font-size: 1.2rem;
    margin-bottom: 18px;
    color: #0066ff;
    font-weight: 600;
}

.info-item {
    margin-bottom: 18px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item h3 {
    font-size: 0.9rem;
    color: #0066ff;
    margin-bottom: 6px;
    font-weight: 600;
}

.info-item p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    font-size: 0.85rem;
}

/* --- SECCIÓN DE FORMULARIO --- */
.form-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
}

.form-section h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #0066ff;
    font-weight: 600;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 12px;
    border-radius: 5px;
    color: #fff;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066ff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: #1a1a1a;
    color: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 60px;
}

.submit-btn {
    grid-column: 1 / -1;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 12px 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
}

.submit-btn:hover {
    background: rgba(0, 102, 255, 0.1);
    border-color: #0066ff;
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.3);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* --- MENSAJE DE FORMULARIO --- */
.form-message {
    display: none;
    padding: 12px;
    border-radius: 5px;
    margin-top: 12px;
    font-size: 0.85rem;
    text-align: center;
}

.form-message.success {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #00ff00;
}

.form-message.error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff0000;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .contacto-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }

    .content-overlay {
        height: auto;
        max-height: none;
        overflow: visible;
    }

    header {
        padding: 20px;
        flex-direction: column;
        gap: 20px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    nav a {
        font-size: 14px;
        padding: 10px 0;
        display: block;
        width: 100%;
        text-align: center;
    }

    .contacto-container {
        padding: 30px 20px;
    }

    .page-title {
        font-size: 2rem;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .info-section,
    .form-section {
        padding: 20px;
    }
}