/* sección principal de contacto */
.contact-section {
    padding: 8rem 5%;
    background-color: var(--light-cream);
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* contenedor general con información y formulario */
.contact-main-container {
    display: grid;
    grid-template-columns: 0.8fr 1.5fr; 
    gap: 4rem;
    max-width: 1400px;
    width: 100%;
    align-items: start;
}

/* bloque izquierdo de información */
.contact-info {
    text-align: left;
    padding-top: 1rem;
}

.contact-info h2 {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.contact-info p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 3rem;
}

/* filas de datos de contacto */
.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
}

.info-item i {
    font-size: 1.3rem;
    color: var(--gold-accent);
    background: white;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.info-item h3 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 0.2rem;
}

/* tarjeta del formulario */
.contact-card {
    background: white;
    padding: 4rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    width: 100%;
}

/* formulario en columna */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--primary-blue);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* estilos generales de campos */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    font-size: 1rem;
    background-color: #fcfcfc;
    transition: all 0.3s ease;
    font-family: inherit;
}

/* efecto al seleccionar un campo */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-accent);
    background-color: white;
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.15);
}

.form-group textarea {
    min-height: 200px;
    resize: vertical;
}

/* botón principal de envío */
.contact-btn {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 1.3rem;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    width: 100%;
}

.contact-btn:hover {
    background-color: var(--gold-accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}

/* aviso flotante de contacto enviado */
.contact-toast {
    position: fixed;
    top: 110px; 
    right: -450px; 
    background-color: #2ecc71;
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    z-index: 10005;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    width: 350px;
}

/* muestra el toast desplazándolo hacia dentro */
.contact-toast.show {
    right: 30px; 
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toast-content i {
    font-size: 2.5rem;
}

.toast-message h4 {
    margin: 0;
    font-size: 1.2rem;
}

.toast-message p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* responsive para tablets */
@media (max-width: 1024px) {
    .contact-section {
        padding: 5rem 5% 3rem;
        overflow-x: hidden;
    }

    .contact-main-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 800px;
    }

    .contact-info {
        text-align: center;
        padding-top: 0;
    }

    .info-item {
        justify-content: center;
    }

    .contact-card {
        padding: 2.5rem 1.5rem;
    }
}

/* responsive para móvil */
@media (max-width: 600px) {
    .contact-section {
        padding: 4rem 1rem 2rem;
        display: block;
    }

    .contact-main-container {
        width: 100%;
        max-width: 100%;
        gap: 2rem;
    }

    .contact-info h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .contact-info > p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    /* información en formato más compacto para móvil */
    .info-item {
        display: grid;
        grid-template-columns: 55px 1fr;
        gap: 1rem;
        justify-content: initial;
        text-align: left;
        margin-bottom: 1.6rem;
        width: 100%;
    }

    .info-item i {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }

    .info-item h3 {
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
    }

    .info-item p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    /* mapa adaptado al ancho del móvil */
    .map-container {
        width: 100%;
        overflow: hidden;
        border-radius: 12px;
        margin-top: 1rem;
    }

    .map-container iframe {
        width: 100% !important;
        height: 220px !important;
        display: block;
    }

    .contact-card {
        width: 100%;
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }

    .contact-form {
        gap: 1.3rem;
    }

    .form-group label {
        font-size: 0.75rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 1rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .form-group textarea {
        min-height: 160px;
    }

    .contact-btn {
        padding: 1rem;
        font-size: 0.75rem;
        border-radius: 10px;
    }

    /* toast ajustado para pantallas pequeñas */
    .contact-toast {
        top: 80px;
        left: 1rem;
        right: 1rem;
        width: auto;
        padding: 1rem;
        transform: translateY(-150%);
    }

    .contact-toast.show {
        right: 1rem;
        transform: translateY(0);
    }
}
