.contact-section {
    padding: 100px 20px;
    background: #0f172a;
    color: white;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.contact-header p {
    opacity: .7;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255,255,255,.03);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.05);
    transition: all .25s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,140,83,.4);
}

.info-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,140,83,.1);
    border-radius: 10px;
    color: var(--bs-primary);
}

.info-icon svg {
    width: 20px;
    height: 20px;
}

.contact-form {
    background: rgba(255,255,255,.02);
    padding: 30px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    padding: 14px;
    border-radius: 8px;
    color: white;
    transition: all .25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #ff8e53;
    box-shadow: 0 0 0 3px rgba(255,140,83,.15);
}

.contact-form button {
    justify-content: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.error-message {
    font-size: 13px;
    color: #ff6b6b;
    height: 14px;
    opacity: 0;
    transition: opacity .2s ease;
}

/* Estados */
.input-error {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 3px rgba(255,107,107,.15);
}

.input-success {
    border-color: #22c55e !important;
    box-shadow: 0 0 0 3px rgba(34,197,94,.15);
}


/* Estilos para sección light (fondo blanco) */
.contact-section.section-light .info-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
}

.contact-section.section-light .info-card:hover {
    border-color: #2f9fb8;
    box-shadow: 0 4px 12px rgba(47, 159, 184, 0.1);
}

.contact-section.section-light .info-icon {
    background: rgba(47, 159, 184, 0.1);
    color: #2f9fb8;
}

.contact-section.section-light .contact-form {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
}

.contact-section.section-light .contact-form input,
.contact-section.section-light .contact-form textarea {
    background: #ffffff;
    border: 1px solid #d0d0d0;
    color: #222;
}

.contact-section.section-light .contact-form input::placeholder,
.contact-section.section-light .contact-form textarea::placeholder {
    color: #666;
}

.contact-section.section-light .contact-form input:focus,
.contact-section.section-light .contact-form textarea:focus {
    border-color: #2f9fb8;
    box-shadow: 0 0 0 3px rgba(47, 159, 184, 0.15);
}


/* RESPONSIVE */
@media (max-width: 768px) {
    .contact-grid {
      grid-template-columns: 1fr;
    }

    .contact-info .at-specialist-img {
        max-height: 300px;
    }

    .contact-info .at-specialist-name {
        padding: 30px 15px 15px;
    }

    .contact-info .at-specialist-name h5 {
        font-size: 1rem;
    }

    .contact-info .at-specialist-name p {
        font-size: 0.85rem;
    }

    .contact-info .at-contact-icons {
        left: 15px;
        gap: 10px;
    }

    .contact-info .contact-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-info .at-specialist-img {
        max-height: 250px;
    }

    .contact-info .at-specialist-name {
        padding: 25px 12px 12px;
    }

    .contact-info .at-specialist-name h5 {
        font-size: 0.9rem;
    }

    .contact-info .at-specialist-name p {
        font-size: 0.8rem;
    }

    .contact-info .at-contact-icons {
        left: 10px;
        gap: 8px;
    }

    .contact-info .contact-icon {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
}






/* ===== PROGRESS BAR PREMIUM ===== */
.form-progress {
    position: relative;
    height: 4px;
    width: 0%;
    border-radius: 4px;
    overflow: hidden;
    background: linear-gradient(90deg, #2f9fb8, #38bdf8);
    transition: width .4s ease;
    margin-bottom: 20px;
}

.form-progress::after {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,.5) 50%,
        rgba(255,255,255,0) 100%
    );
    animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
    100% { left: 120%; }
}

/* ===== BUTTON LOADING EFFECT ===== */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: .8;
}

.btn-loading::after {
    content: "";
    position: absolute;
    right: 18px;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin .6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== AT IMAGE BOX IN CONTACT SECTION ===== */
.contact-info .at-image-box {
    margin-top: 10px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.05);
    transition: all 0.3s ease;
}

.contact-info .at-image-box:hover {
    transform: translateY(-4px);
    border-color: rgba(255,140,83,.4);
    box-shadow: 0 15px 40px rgba(47, 159, 184, 0.3);
}

.contact-info .at-specialist-img {    
    height: auto;
    max-height: 400px;
    display: block;    
    border-radius: 12px;
}

.contact-info .at-specialist-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7), transparent);
    padding: 40px 20px 20px;
    color: white;
}

.contact-info .at-specialist-name h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: white;
    letter-spacing: 0.5px;
}

.contact-info .at-specialist-name p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
    color: var(--accent-color);
    font-weight: 500;
}

.contact-info .at-contact-icons {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-info .contact-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(47, 159, 184, 0.4);
    text-decoration: none;
}

.contact-info .contact-icon:hover {
    background: #258a9e;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(47, 159, 184, 0.6);
    color: white;
}

/* Light theme */
.contact-section.section-light .at-image-box {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
}

.contact-section.section-light .at-image-box:hover {
    border-color: #2f9fb8;
    box-shadow: 0 4px 20px rgba(47, 159, 184, 0.15);
}

.contact-section.section-light .at-specialist-name {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9), transparent);
}

.contact-section.section-light .at-specialist-name h5 {
    color: #1a1a1a;
}

.contact-section.section-light .at-specialist-name p {
    color: var(--accent-color);
}
