/* ================================================= */
/* ===== SECCIÓN CONTACTO ===== */
/* ================================================= */
.contacto {
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(
        rgba(0, 0, 0, .75),
        rgba(0, 0, 0, .75)
    ),
    url("../img/petra.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ===== TÍTULO Y SUBTÍTULO ===== */
.contacto h2 {
    font-size: 4rem;
    color: white;
    margin-bottom: 1rem;
}

.contacto-subtitulo {
    color: #ddd;
    margin-bottom: 4rem;
    line-height: 1.8;
}

/* ================================================= */
/* ===== GRID PRINCIPAL ===== */
/* ================================================= */
.contacto-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: auto;
}

/* ===== TARJETAS ===== */
.contacto-formulario,
.contacto-info {
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .1);
    padding: 3rem;
    text-align: left;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .3);
    transition: transform .4s ease;
}

.contacto-formulario:hover,
.contacto-info:hover {
    transform: translateY(-5px);
}

/* ===== TÍTULOS DE TARJETAS ===== */
.contacto-formulario h3,
.contacto-info h3 {
    color: white;
    margin-bottom: 2rem;
}

.contacto-formulario span {
    color: var(--secundario);
}

.contacto-info h4 {
    margin-bottom: 2rem;
    color: white;
}

/* ===== DATOS DE INFORMACIÓN ===== */
.contacto-info p {
    margin-bottom: 1rem;
    color: #ddd;
    line-height: 1.8;
}

/* ================================================= */
/* ===== FORMULARIO ===== */
/* ================================================= */
.contacto-formulario form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contacto-formulario input,
.contacto-formulario textarea {
    background: rgba(0, 0, 0, .4);
    border: none;
    outline: none;
    padding: 1.3rem;
    color: white;
    border-radius: 10px;
    font-size: 1.4rem;
    transition: border .3s ease, box-shadow .3s ease;
}

.contacto-formulario input:focus,
.contacto-formulario textarea:focus {
    border: 1px solid var(--secundario);
    box-shadow: 0 0 10px rgba(51, 243, 3, .3);
}

.contacto-formulario textarea {
    resize: none;
    height: 120px;
}

/* ===== BOTÓN ENVIAR ===== */
.contacto-formulario button {
    margin-top: 1rem;
    border: none;
    background: var(--secundario);
    color: black;
    padding: 1.3rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: transform .4s ease, box-shadow .4s ease;
}

.contacto-formulario button:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(51, 243, 3, .4);
}

/* ===== TURNSTILE ===== */
.cf-turnstile {
    margin-top: 10px;
    margin-bottom: 15px;
}

/* ================================================= */
/* ===== MAPA DE CONTACTO ===== */
/* ================================================= */
.mapa-contacto {
    grid-column: 1 / 3;
    overflow: hidden;
    margin-top: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .4);
}

.mapa-contacto iframe {
    display: block;
    width: 100%;
}

/* ================================================= */
/* ===== TOAST NOTIFICACIONES ===== */
/* ================================================= */
.toast-exito,
.toast-error {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 15px 25px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    z-index: 99999;
    animation: toastEntrada .4s ease;
    transition: opacity .5s ease, transform .5s ease;
}

.toast-exito {
    background: #28a745;
}

.toast-error {
    background: #dc3545;
}

@keyframes toastEntrada {
    from {
        opacity: 0;
        transform: translateX(120%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================================================= */
/* ===== RESPONSIVE ===== */
/* ================================================= */
@media (max-width: 768px) {
    .contacto {
        padding: 4rem 1rem;
    }

    .contacto-container {
        grid-template-columns: 1fr;
    }

    .mapa-contacto {
        grid-column: auto;
    }

    .contacto-formulario,
    .contacto-info {
        text-align: center;
        padding: 2rem;
    }

    .contacto-redes {
        justify-content: center;
    }
}