/* Contact Section Styles */
.contact-section {
    background-color: #f8f9fa00;
    padding: 3rem 1rem;
    min-height: 80vh;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.contact-section .container {
    max-width: 100%;
    margin: 0 auto;
    position: relative; /* Importante para el contexto de posicionamiento */
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h1 {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary-green);
    line-height: 1.3;
    margin-bottom: 1rem;

}

.contact-header p {
    font-size: 1.1rem;
    color: var(--color-secondary-light-blue);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* SOLUCION: Nuevo contenedor para elementos decorativos */
.contact-decorative-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-unified-container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 2rem;
    margin-top: 2rem;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--color-primary-green);
    zoom: 80%;
    position: relative;
    z-index: 1;
}

/* SOLUCION PRINCIPAL: Elementos decorativos mejorados */
.decor-box {
    position: absolute;
    border-radius: 20px;
    z-index: 2; /* Cambiado a 2 para estar encima del contenedor */
    pointer-events: none;
    transition: transform 0.5s ease-in-out;
    
    /* Tamaño fijo en lugar de responsivo */
    width: 120px;
    height: 120px;
}

.decor-box-1 {
    background-color: var(--color-primary-dark-blue);
    /* Posicionamiento fijo desde el contenedor padre */
    top: 80px; /* Ajustado para ser más visible */
    left: -20px; /* Posición negativa para que sobresalga */
}

.decor-box-2 {
    background-color: var(--color-primary-green);
    /* Posicionamiento fijo desde el contenedor padre */
    bottom: 40px; /* Ajustado para ser más visible */
    right: -20px; /* Posición negativa para que sobresalga */
}

/* Contact Form Styles */
.contact-form-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
}

.contact-form-container h2 {
    font-size: 1.7rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary-dark-blue);
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary-dark-blue);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 95%;
    padding: 0.9rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-green);
    box-shadow: 0 0 0 3px rgba(105, 198, 36, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group.required label::after {
    content: ' *';
    color: #e53e3e;
}

.submit-btn {
    width: 100%;
    background: var(--color-primary-green);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: #5ab01f;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(105, 198, 36, 0.3);
}

/* Map Container Styles */
.map-container {
    background: white;
    border-radius: 16px;
}

.map-header {
    padding: .8rem;
    width: 100%;
    height: 10%;
    background: var(--color-primary-dark-blue);
    border-top-right-radius: 14px;
    color: white;
}

.map-header h2 {
    font-size: 1.7rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0;
}

.map-header p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

.map-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 350px;
    background: #f0f0f0;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 4px 3px 4px 4px rgb(204, 203, 203);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 2rem;
    margin-top: 2rem;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    zoom: 80%;
    position: relative;
    z-index: 1;
}

.contact-info-item {
    display: grid;
    align-items: center;
    gap: 0.05rem;
    padding: 1rem;
    width: 100%;
    height: 10%;
}

.contact-info-item i {
    font-size: 1.2rem;
    color: var(--color-primary-green);
    width: 20px;
    text-align: center;
}

.contact-info-item span {
    font-size: 1.4rem;
    line-height: 1.5;
    gap: 0.75rem;
    margin-bottom: 0.1rem;
}

.contact-info-list {
    list-style-type: none;
    padding-left: 0;
    margin-top: .5rem;
    margin-bottom: 4rem;
}

.contact-info-list li {
    margin-bottom: 0.1rem;
    color: #333;
    font-size: 1.2rem;
}

h1, h3, h4, h5, h6 {
    color: var(--color-primary-dark-blue);
}

h2 {
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-unified-container {
        grid-template-columns: 1fr;
    }

    /* Ajustes para móvil - elementos decorativos más pequeños */
    .decor-box {
        width: 80px;
        height: 80px;
    }

    .decor-box-1 {
        top: -25px;
        left: -16px;
        z-index: 0;

    }

    .decor-box-2 {
        bottom: -25px;
        right: -16px;
        z-index: 0;
    }

    .contact-info {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }

    .contact-info-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.75rem;
        height: auto;
        margin-left: -4px !important;
    }

    .contact-info-item i {
        font-size: 1.2rem;
        width: 24px;
        margin-top: 0.2rem;
        margin-left: -4px !important;
    }

    .contact-info-item span {
        font-size: 1.3rem;
        line-height: 1.6;
        margin: 0;
    }

    .contact-info-list li {
        padding-right: .8rem;
    }
}

@media (min-width: 768px) {
    .contact-section {
        padding: 4rem 2rem;
    }
    
    .container {
        width: 90%;
        max-width: var(--container-max-width);
        margin: 0 auto;
    }
    
    .contact-header h1 {
        font-size: 2.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .contact-form-container {
        padding: 2.5rem;
    }
    
    .map-wrapper {
        height: 400px;
    }

    /* Elementos decorativos tamaño mediano */
    .decor-box {
        width: 110px;
        height: 110px;
    }

    .decor-box-1 {
        top: -26px;
        left: -18px;
        z-index: 0;
    }

    .decor-box-2 {
        bottom: -26px;
        right: -18px;
        z-index: 0;
    }
}

@media (min-width: 1024px) {
    .contact-section {
        padding: 5rem 2rem;
    }
    
    .contact-header h1 {
        font-size: 3rem;
    }
    
    .contact-content {
        gap: 4rem;
    }
    
    .contact-form-container {
        padding: 3rem;
    }
    
    .map-wrapper {
        height: 450px;
    }

    /* Elementos decorativos tamaño completo */
    .decor-box {
        width: 130px;
        height: 130px;
    }

    .decor-box-1 {
        top: -30px;
        left: -25px;
        z-index: 0;
    }

    .decor-box-2 {
        bottom: -30px;
        right: -25px;
        z-index: 0;
    }
}

/* Form Validation Styles */
.form-group input:invalid,
.form-group textarea:invalid {
    border-color: #69C624;
}

.form-group input:valid,
.form-group textarea:valid {
    border-color: var(--color-primary-green);
}

/* Loading state for submit button */
.submit-btn:disabled {
    background: #a0a0a0;
    cursor: not-allowed;
    transform: none;
}

.submit-btn:disabled:hover {
    background: #a0a0a0;
    transform: none;
    box-shadow: none;
}
.alert-success {
    background-color: #d4edda;
    padding: 1rem;
    border-radius: 5px;
    color: #155724;
}

@media (max-width: 600px) {
    .contact-form-container {
        padding: 1rem;
        max-width: 90%;
        margin-left: 1rem;
    }
}

@media (max-width: 500px) {
    .contact-form-container {
        padding: 1rem;
        max-width: 90%;
        margin-right: 1.5rem;
    }
}
