/* ============================= */
/* RESET Y CONFIGURACIÓN GLOBAL */
/* ============================= */

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

body.body {
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8f9fa;
    line-height: 1.5;
    color: #333;
}

/* ============================= */
/* CONTENEDOR PRINCIPAL Y FONDO */
/* ============================= */

.main-container {
    width: 100%;
    min-height: 100vh;
}

.contact-section {
    width: 100%;
    min-height: 100vh;
    /* Asegúrate de tener una imagen en esta ruta */
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), 
                url("../img/fondo.jpg") no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.overlay {
    width: 100%;
    max-width: 850px;
}

/* ============================= */
/* TARJETA GLASSMORPHISM */
/* ============================= */

.form-card {
    background: rgba(255, 255, 255, 0.8); /* Mayor opacidad para legibilidad */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px; /* Bordes modernos */
    padding: 50px 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* ============================= */
/* HEADER */
/* ============================= */

.form-header {
    text-align: center;
    margin-bottom: 35px;
}

.form-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.form-subtitle {
    font-size: 16px;
    color: #666;
}

/* ============================= */
/* INPUTS CON ICONOS */
/* ============================= */

.form-row {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative; /* Necesario para los iconos */
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: #444;
}

.input-box, .textarea-box {
    position: relative;
    width: 100%;
}

/* Estilo de los iconos */
.input-box .icon, .textarea-box .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #0d6efd;
    font-size: 16px;
    transition: color 0.3s ease;
    z-index: 10;
}

.textarea-box .icon {
    top: 20px; /* Ajuste para el área de texto */
}

/* Estilo de campos de entrada */
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 15px 12px 45px; /* Padding izquierdo para no tapar el icono */
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 15px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: #0d6efd;
    outline: none;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

/* Cambia color de icono al escribir */
.form-group:focus-within .icon {
    color: #00d2ff;
}

/* ============================= */
/* BOTÓN MODERNO */
/* ============================= */

.button-container {
    text-align: center;
    margin-top: 30px;
}

.submit-button {
    background: linear-gradient(135deg, #0d6efd 0%, #00d2ff 100%);
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(13, 110, 253, 0.3);
    filter: brightness(1.1);
}

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

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .form-card {
        padding: 30px 20px;
    }

    .form-title {
        font-size: 26px;
    }
}
/* ============================= */
/* NAVBAR */
/* ============================= */

.navbar {
    width: 100%;
    background: rgba(0,0,0,0.7);
    padding: 15px 40px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo a {
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}

.navbar-menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: 0.3s;
}

.nav-link:hover {
    color: #0d6efd;
}

/* ============================= */
/* FOOTER */
/* ============================= */

.footer {
    background: #212529;
    color: white;
    padding: 40px 20px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1000px;
    margin: auto;
    text-align: center;
}

.footer-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.footer-text {
    font-size: 14px;
    margin: 5px 0;
}

.footer-copy {
    margin-top: 20px;
    font-size: 13px;
    color: #adb5bd;
}