/* ============================================
   CONTACTO - Página de Contacto
   FONDO CELESTE: #2A9D8F
   ============================================ */

/* Hero Section - VERSIÓN CORREGIDA (SIN IMAGEN EN CSS) */
.contacto-hero {
    background: linear-gradient(135deg, 
                rgba(0, 0, 0, 0.6), 
                rgba(3, 4, 94, 0.7));
    background-attachment: fixed; /* Efecto parallax opcional */
    background-position: center 30%;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 150px 0 100px;
    margin-top: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    isolation: isolate;
}

/* Overlay adicional para mejorar legibilidad */
.contacto-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Línea decorativa con el color correcto */
.contacto-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #2A9D8F, #ffffff, #2A9D8F, transparent);
    z-index: 3;
}

.contacto-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.contacto-hero-content h1 {
    color: #ffffff;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.contacto-hero-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 400;
    line-height: 1.6;
}


/* Responsive */
@media (max-width: 992px) {
    .contacto-hero {
        padding: 130px 0 80px;
        min-height: 400px;
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    .contacto-hero {
        padding: 120px 0 60px;
        min-height: 350px;
        background-position: center 20%;
    }
    
    .contacto-hero-content h1 {
        font-size: 2.2rem;
    }
    
    .contacto-hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .contacto-hero {
        padding: 100px 0 50px;
        min-height: 300px;
    }
    
    .contacto-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .contacto-hero-content p {
        font-size: 1rem;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contenedor principal con fondo celeste */
.contacto-page {
    background: #2A9D8F;
}

.contacto-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

/* ============================================
   COLUMNA DE INFORMACIÓN - FONDO MÁS OSCURO PARA CONTRASTE
   ============================================ */

.contacto-info {
    background: rgba(3, 4, 94, 0.85);
    border-radius: 20px;
    padding: 40px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.contacto-info h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #ffffff;
    position: relative;
    padding-bottom: 15px;
}

.contacto-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #2A9D8F;
    border-radius: 2px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(5px);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(42, 157, 143, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(42, 157, 143, 0.3);
    flex-shrink: 0;
}

.info-icon i {
    color: #2A9D8F;
    font-size: 1.3rem;
}

.info-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #2A9D8F;
    font-weight: 600;
}

.info-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 5px;
}

.info-content a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.info-content a:hover {
    color: #2A9D8F;
    text-decoration: underline;
}

/* Redes sociales */
.contacto-social {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(42, 157, 143, 0.3);
}

.contacto-social h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #2A9D8F;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(42, 157, 143, 0.3);
    color: #ffffff;
    font-size: 1.2rem;
}

.social-link:hover {
    background: #2A9D8F;
    transform: translateY(-5px);
    border-color: #2A9D8F;
}

/* ============================================
   FORMULARIO DE CONTACTO
   ============================================ */

.contacto-formulario {
    background: rgba(3, 4, 94, 0.85);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(42, 157, 143, 0.3);
    backdrop-filter: blur(10px);
}

.contacto-formulario h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #ffffff;
    position: relative;
    padding-bottom: 15px;
}

.contacto-formulario h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #2A9D8F;
    border-radius: 2px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-group label i {
    color: #2A9D8F;
    margin-right: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(42, 157, 143, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2A9D8F;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(42, 157, 143, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input[readonly] {
    background: rgba(42, 157, 143, 0.2);
    cursor: default;
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: #03045E;
    color: #ffffff;
}

.form-group optgroup {
    color: #2A9D8F;
    font-weight: 600;
}

/* Checkbox de términos */
.form-checkbox {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #2A9D8F;
    cursor: pointer;
}

.form-checkbox label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.form-checkbox a {
    color: #2A9D8F;
    text-decoration: none;
}

.form-checkbox a:hover {
    text-decoration: underline;
}

/* Botón de envío */
.btn-submit {
    background: linear-gradient(135deg, #2A9D8F, #1e7a6f);
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(42, 157, 143, 0.4);
}

.btn-submit i {
    transition: transform 0.3s ease;
}

.btn-submit:hover i {
    transform: translateX(5px);
}

/* Nota de seguridad */
.form-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(42, 157, 143, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(42, 157, 143, 0.2);
}

.form-notice i {
    color: #2A9D8F;
    font-size: 1.1rem;
}

.form-notice span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Mapa */
.contacto-mapa {
    margin-top: 0;
    padding: 0 20px 60px;
    background: #2A9D8F;
}

.contacto-mapa iframe {
    display: block;
    width: 100%;
    height: 450px;
    border-radius: 20px;
    filter: grayscale(30%) brightness(0.9);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contacto-mapa iframe:hover {
    filter: grayscale(0) brightness(1);
}

/* Animaciones */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .contacto-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .contacto-hero {
        padding: 100px 0 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contacto-info,
    .contacto-formulario {
        padding: 30px 20px;
    }
    
    .info-item {
        gap: 15px;
    }
    
    .info-icon {
        width: 40px;
        height: 40px;
    }
    
    .info-icon i {
        font-size: 1.1rem;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contacto-mapa {
        padding: 0 15px 40px;
    }
}

@media (max-width: 480px) {
    .contacto-hero-content h1 {
        font-size: 2rem;
    }
    
    .contacto-hero-content p {
        font-size: 1rem;
    }
    
    .contacto-info h2,
    .contacto-formulario h2 {
        font-size: 1.5rem;
    }
    
    .info-content h3 {
        font-size: 1rem;
    }
    
    .info-content p {
        font-size: 0.9rem;
    }
    
    .btn-submit {
        padding: 12px 25px;
        font-size: 1rem;
    }
}