/* Estilos modernos para la sección de contacto */

/* Sección general */
#contact {
    padding: 80px 0;
    background-color: #1e1e1e;
    position: relative;
}

/* Título de la sección */
#contact .section-heading {
    text-align: center;
    margin-bottom: 50px;
}

#contact .section-heading h2 {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

#contact .section-heading h2 em {
    color: #ed563b;
    font-style: normal;
}

/* Mapa a pantalla completa */
.contact-map-wrapper {
    position: relative;
    width: 100vw;
    height: 400px;
    margin-left: calc(-50vw + 50%);
    margin-bottom: -80px;
    z-index: 1;
}

.contact-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.contact-map-wrapper:hover iframe {
    filter: grayscale(0%);
}

/* Overlay del mapa */
.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, #1e1e1e 0%, transparent 100%);
    pointer-events: none;
}

/* Contenedor del contenido */
.contact-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 60px 40px;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

/* Información de contacto */
.contact-info {
    padding-right: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(237, 86, 59, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.info-item i {
    font-size: 24px;
    color: #ed563b;
    margin-right: 20px;
    margin-top: 5px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(237, 86, 59, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-item .info-content h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.info-item .info-content p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

/* Formulario moderno */
.contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 25px;
}

.form-group.form-row {
    display: flex;
    gap: 20px;
}

.form-group.form-row > div {
    flex: 1;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #ed563b;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(237, 86, 59, 0.2);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
    font-family: inherit;
}

/* Label flotante */
.form-floating {
    position: relative;
}

.form-floating label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    background: #1e1e1e;
    padding: 0 5px;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
    top: -10px;
    font-size: 12px;
    color: #ed563b;
}

/* Texto legal mejorado */
.legal-text {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.legal-text b {
    color: #fff;
    font-weight: 600;
}

/* Checkbox personalizado */
.custom-checkbox {
    display: flex;
    align-items: flex-start;
    margin: 20px 0;
}

.custom-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #ed563b;
}

.custom-checkbox label {
    cursor: pointer;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.custom-checkbox a {
    color: #ed563b;
    text-decoration: none;
    font-weight: 500;
}

.custom-checkbox a:hover {
    text-decoration: underline;
}

/* Botón de envío moderno */
.submit-button {
    background: linear-gradient(135deg, #ed563b 0%, #f09433 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 20px rgba(237, 86, 59, 0.3);
    width: 100%;
    margin-top: 20px;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(237, 86, 59, 0.4);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Estados del formulario */
.form-message {
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.loading {
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    color: #64b5f6;
    display: block;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #ef5350;
    display: block;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #81c784;
    display: block;
}

/* Modal mejorado */
#terms-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

#terms-modal > div {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

#terms-modal h2 {
    color: #232d39;
    font-size: 28px;
    margin-bottom: 20px;
}

#terms-modal p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

#terms-modal button {
    background: #ed563b;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#terms-modal button:hover {
    background: #d94527;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .contact-content {
        padding: 40px 20px;
    }
    
    .contact-info {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .form-group.form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .contact-map-wrapper {
        height: 300px;
    }
}

@media (max-width: 576px) {
    #contact .section-heading h2 {
        font-size: 28px;
    }
    
    .contact-content {
        margin-top: -30px;
        padding: 30px 15px;
    }
    
    .info-item {
        padding: 15px;
    }
    
    .info-item i {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .form-control {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .submit-button {
        padding: 12px 30px;
        font-size: 14px;
    }
}

/* Animaciones de entrada */
.contact-content {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto ripple para el botón */
.submit-button {
    position: relative;
    overflow: hidden;
}

.submit-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-button:active::after {
    width: 300px;
    height: 300px;
}