/* Estilos para la sección Contact */
.contact-section {
    padding: 8rem 2rem;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Encabezado */
.contact-header {
    text-align: center;
    margin-bottom: 6rem;
}

.contact-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 4.5rem;
    color: #111;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 2rem;
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.decoration-line {
    width: 80px;
    height: 2px;
    background-color: #4a6fa5;
}

.decoration-dot {
    width: 8px;
    height: 8px;
    background-color: #4a6fa5;
    border-radius: 50%;
}

/* Contenido principal */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    margin-bottom: 6rem;
}

/* Lado izquierdo - Información */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.info-card {
    background-color: #f8f9fa;
    padding: 2.5rem;
    border-radius: 16px;
    border-left: 4px solid #4a6fa5;
}

.info-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #111;
    margin-bottom: 1rem;
}

.info-description {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.detail-item {
    display: flex;
    gap: 1.2rem;
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4a6fa5, #2c3e50);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon i {
    color: white;
    font-size: 1.2rem;
}

.detail-content {
    flex: 1;
}

.detail-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #111;
    margin-bottom: 0.3rem;
}

.detail-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* Mapa visual */
.map-visual {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    position: relative;
    height: 250px;
    overflow: hidden;
}

.map-placeholder {
    width: 100%;
    height: 150px;
    position: relative;
    margin-bottom: 1.5rem;
}

.map-dots {
    position: absolute;
    width: 100%;
    height: 100%;
}

.map-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #4a6fa5;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(74, 111, 165, 0.5);
}

.dot-1 {
    top: 20%;
    left: 15%;
}

.dot-2 {
    top: 60%;
    left: 25%;
}

.dot-3 {
    top: 30%;
    right: 20%;
}

.dot-4 {
    top: 70%;
    right: 30%;
}

.map-lines {
    position: absolute;
    width: 100%;
    height: 100%;
}

.map-line {
    position: absolute;
    background-color: rgba(74, 111, 165, 0.2);
    border-radius: 1px;
}

.line-1 {
    width: 40%;
    height: 2px;
    top: 25%;
    left: 20%;
    transform: rotate(30deg);
}

.line-2 {
    width: 35%;
    height: 2px;
    top: 65%;
    left: 30%;
    transform: rotate(-20deg);
}

.line-3 {
    width: 30%;
    height: 2px;
    top: 50%;
    right: 25%;
    transform: rotate(15deg);
}

.map-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.center-dot {
    width: 24px;
    height: 24px;
    background-color: #ff6b6b;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.7);
}

.center-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
}

.map-note {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: #777;
}

/* Redes sociales */
.contact-social {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
}

.social-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #111;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #4a6fa5, #2c3e50);
}

.social-icon:hover i {
    color: white;
}

.social-icon i {
    color: #4a6fa5;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.icon-tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #111;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.social-icon:hover .icon-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -30px;
}

/* Lado derecho - Formulario */
.contact-form-section {
    background-color: #f8f9fa;
    padding: 2.5rem;
    border-radius: 16px;
}

.form-container {
    max-width: 100%;
}

.form-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #111;
    margin-bottom: 0.8rem;
}

.form-description {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: #666;
    margin-bottom: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-label::after {
    content: '*';
    color: #ff6b6b;
    margin-left: 0.2rem;
    display: inline;
}

.input-container {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    z-index: 2;
    transition: color 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.form-input:focus {
    outline: none;
    border-color: #4a6fa5;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

.form-input:focus + .input-line {
    width: 100%;
}

.form-input:focus ~ .input-icon {
    color: #4a6fa5;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4a6fa5;
    transition: width 0.3s ease;
    z-index: 2;
}

/* Select personalizado */
.form-select {
    appearance: none;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    pointer-events: none;
    z-index: 2;
}

/* Textarea */
.textarea-input {
    resize: vertical;
    min-height: 120px;
    padding-top: 1.2rem;
}

.char-count {
    text-align: right;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.3rem;
}

/* Checkbox personalizado */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
    accent-color: #4a6fa5;
    cursor: pointer;
}

.checkbox-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    cursor: pointer;
}

/* Botón de enviar */
.form-submit {
    margin-top: 1rem;
}

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #4a6fa5, #2c3e50);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-button:hover {
    background: linear-gradient(135deg, #2c3e50, #4a6fa5);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(74, 111, 165, 0.3);
}

.submit-button:hover .button-icon {
    transform: translateX(5px);
}

.button-icon {
    transition: transform 0.3s ease;
}

.button-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4a6fa5, #2c3e50);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.submit-button.loading .button-text,
.submit-button.loading .button-icon {
    opacity: 0;
}

.submit-button.loading .button-loading {
    opacity: 1;
    visibility: visible;
}

.form-note {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    color: #999;
    text-align: center;
    margin-top: 0.8rem;
}

/* Mensaje de éxito */
.form-success {
    background-color: #e8f5e9;
    border-left: 4px solid #4CAF50;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.form-success.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.success-icon {
    color: #4CAF50;
    font-size: 2rem;
}

.success-content {
    flex: 1;
}

.success-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #2e7d32;
    margin-bottom: 0.3rem;
}

.success-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: #388e3c;
}

/* Mensajes de error */
.error-message {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    color: #ff6b6b;
    margin-top: 0.3rem;
    min-height: 1.2rem;
}

/* CTA adicional */
.contact-cta {
    background: linear-gradient(135deg, #2c3e50, #1a2530);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-content {
    flex: 1;
    z-index: 2;
}

.cta-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: white;
    margin-bottom: 1rem;
}

.cta-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 500px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    background-color: #4a6fa5;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #5a8fcd;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(74, 111, 165, 0.4);
}

.cta-button:hover .cta-button-icon {
    transform: translateX(8px);
}

.cta-button-icon {
    transition: transform 0.3s ease;
}

.cta-image {
    width: 300px;
    height: 200px;
    position: relative;
    z-index: 2;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    position: relative;
}

.floating-element {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.el-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.el-2 {
    width: 40px;
    height: 40px;
    top: 60%;
    right: 15%;
    animation: float 8s ease-in-out infinite 1s;
}

.el-3 {
    width: 30px;
    height: 30px;
    top: 40%;
    right: 30%;
    animation: float 7s ease-in-out infinite 0.5s;
}

/* Responsive */
@media (max-width: 1200px) {
    .contact-title {
        font-size: 3.8rem;
    }
    
    .contact-content {
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-title {
        font-size: 3.2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .contact-cta {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .cta-image {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 6rem 1.5rem;
    }
    
    .contact-title {
        font-size: 2.5rem;
    }
    
    .contact-subtitle {
        font-size: 1.1rem;
    }
    
    .info-card,
    .contact-form-section {
        padding: 2rem;
    }
    
    .map-visual {
        height: 200px;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .social-icons {
        gap: 1rem;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 2rem;
    }
    
    .form-title {
        font-size: 1.6rem;
    }
    
    .detail-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .detail-icon {
        margin: 0 auto;
    }
    
    .contact-cta {
        padding: 2rem 1.5rem;
    }
}

button {
    margin: 20px;
    padding: 10px 15px;
    font-size: 16px;
    background-color: #4a6fa5;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #2c3e50;
}