/* ===== CONTACTO SVINUM - CSS PROFESIONAL (DOS COLUMNAS) ===== */

:root {
    --primary-color: #000;
    --secondary-color: #666;
    --accent-color: #28a745;
    --light-gray: #f8f9fa;
    --border-light: #f0f0f0;
    --border-medium: #e0e0e0;
    --border-dark: #ddd;
    --shadow-light: 0 4px 20px rgba(0,0,0,0.05);
    --shadow-medium: 0 8px 30px rgba(0,0,0,0.1);
    --shadow-heavy: 0 10px 30px rgba(0,0,0,0.2);
    --transition-fast: 0.3s ease;
    --transition-medium: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.6s ease;
}

/* ===== LAYOUT PRINCIPAL ===== */
.contacto-main {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    min-height: 100vh;
    padding: 60px 0;
    font-family: 'Montserrat', sans-serif;
}

.contacto-main .container {
    max-width: 1200px;
}

/* ===== ESTRUCTURA DE DOS COLUMNAS ===== */
.contacto-row {
    min-height: 70vh;
    display: flex;
    align-items: stretch;
    box-shadow: var(--shadow-heavy);
    border-radius: 16px;
    overflow: hidden;
    background: white;
    position: relative;
    margin: 0 !important;
}

.contacto-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    z-index: 3;
}

/* ===== RESET BOOTSTRAP PARA COLUMNAS ===== */
.contacto-row .col-12.col-md-6 {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
}

.contacto-row .d-flex {
    width: 100% !important;
    height: 100% !important;
}

/* ===== COLUMNA IZQUIERDA - FORMULARIO ===== */
.contacto-form {
    background: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100% !important;
    height: 100%;
    border-radius: 0;
    margin: 0;
}

.contacto-form h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
}

.contacto-form h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* ===== COLUMNA DERECHA - INFORMACIÓN ===== */
.contacto-info {
    background: linear-gradient(135deg, var(--primary-color) 0%, #333 100%);
    color: white;
    padding: 4.1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100% !important;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    margin: 0;
}

.contacto-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.contacto-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.contacto-info h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

.contacto-info p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* ===== DETALLES DE CONTACTO ===== */
.contact-details {
    position: relative;
    z-index: 2;
    margin-bottom: 2.5rem;
}

.contacto-info .contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
    padding: 15px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
    border: 1px solid rgba(255,255,255,0.1);
}

.contacto-info .contact-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(5px);
    border-color: rgba(255,255,255,0.2);
}

.contacto-info .contact-item i {
    font-size: 1.3rem;
    width: 25px;
    text-align: center;
    color: rgba(255,255,255,0.9);
    flex-shrink: 0;
}

.contacto-info .contact-item .contact-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contacto-info .contact-item .contact-label {
    font-size: 0.85rem;
    opacity: 0.7;
    font-weight: 500;
}

.contacto-info .contact-item .contact-value {
    font-size: 1rem;
    font-weight: 600;
}

/* ===== REDES SOCIALES ===== */
.contacto-info .social-section {
    position: relative;
    z-index: 2;
}

.contacto-info .social-section h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contacto-info .social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.contacto-info .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    transition: all var(--transition-medium);
    backdrop-filter: blur(10px);
}

.contacto-info .social-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: white;
}

.contacto-info .social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.contacto-info .social-link.facebook:hover {
    background: #1877f2;
}

.contacto-info .social-link.twitter:hover {
    background: #1da1f2;
}

.contacto-info .social-link.linkedin:hover {
    background: #0077b5;
}

.contacto-info .social-link.youtube:hover {
    background: #ff0000;
}

/* ===== ESTILOS DEL FORMULARIO ===== */
#contactForm {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.form-group {
    position: relative;
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: block;
    transition: color var(--transition-fast);
}

.form-control {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid var(--border-medium);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    background: white;
    transition: all var(--transition-medium);
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0,0,0,0.1);
    outline: none;
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: #999;
    font-style: italic;
}

.form-control:hover {
    border-color: var(--border-dark);
    box-shadow: var(--shadow-light);
}

/* ===== TEXTAREA ESPECÍFICO ===== */
textarea.form-control {
    resize: vertical;
    min-height: 120px;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.5;
}

/* ===== CHECKBOX PERSONALIZADO ===== */
.custom-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
}

.custom-checkbox-container:hover {
    background: #f0f0f0;
    border-color: var(--border-medium);
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-medium);
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    margin-top: 2px;
}

.custom-checkbox:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
    position: relative;
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.custom-checkbox-container label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    cursor: pointer;
    line-height: 1.4;
    margin: 0;
}

.custom-checkbox-container a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.custom-checkbox-container a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ===== BOTÓN DE ENVÍO ===== */
.contacto-form button[type="submit"] {
    background: linear-gradient(135deg, var(--primary-color) 0%, #333 100%);
    color: white;
    border: none;
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    box-shadow: var(--shadow-medium);
}

.contacto-form button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--transition-slow);
}

.contacto-form button[type="submit"]:hover::before {
    left: 100%;
}

.contacto-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #333 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.contacto-form button[type="submit"]:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

/* ===== EFECTOS DE VALIDACIÓN ===== */
.form-control:valid {
    border-color: var(--accent-color);
}

.form-control:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

/* ===== ANIMACIONES DE ENTRADA ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contacto-form {
    animation: slideInLeft 0.8s ease forwards;
}

.contacto-info {
    animation: slideInRight 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.contacto-form h2 {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.form-group {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.form-group:nth-child(1) { animation-delay: 0.5s; }
.form-group:nth-child(2) { animation-delay: 0.6s; }
.form-group:nth-child(3) { animation-delay: 0.7s; }
.custom-checkbox-container { animation-delay: 0.8s; }
.contacto-form button { animation-delay: 0.9s; }

.contact-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.contact-item:nth-child(1) { animation-delay: 0.6s; }
.contact-item:nth-child(2) { animation-delay: 0.7s; }
.contact-item:nth-child(3) { animation-delay: 0.8s; }

.social-links {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.9s;
    opacity: 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .contacto-info,
    .contacto-form {
        padding: 2.5rem;
    }
}

@media (max-width: 992px) {
    .contacto-main {
        padding: 40px 0;
    }
    
    .contacto-info,
    .contacto-form {
        padding: 2rem;
    }
    
    .contacto-form h2 {
        font-size: 2rem;
    }
    
    .contacto-info h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .contacto-main {
        padding: 30px 0;
    }
    
    .contacto-row {
        flex-direction: column;
        min-height: unset;
        margin: 20px !important;
    }
    
    .contacto-row .col-12.col-md-6 {
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    .contacto-form {
        border-radius: 16px 16px 0 0;
        padding: 2rem;
    }
    
    .contacto-info {
        border-radius: 0 0 16px 16px;
        padding: 2rem;
    }
    
    .contacto-form h2 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .contacto-info h3 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .contacto-info h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .contact-item i {
        font-size: 1.5rem;
    }
    
    .form-control {
        padding: 16px 18px;
    }
    
    .contacto-form button[type="submit"] {
        padding: 18px 35px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .contacto-main .container {
        padding: 0 15px;
    }
    
    .contacto-row {
        margin: 10px !important;
        border-radius: 12px;
    }
    
    .contacto-form {
        border-radius: 12px 12px 0 0;
        padding: 1.5rem;
    }
    
    .contacto-info {
        border-radius: 0 0 12px 12px;
        padding: 1.5rem;
    }
    
    .contacto-form h2 {
        font-size: 1.6rem;
    }
    
    .contacto-info h3 {
        font-size: 1.4rem;
    }
    
    .form-control {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
    
    .contacto-form button[type="submit"] {
        padding: 16px 30px;
        font-size: 1rem;
    }
    
    .custom-checkbox-container {
        padding: 12px;
        gap: 10px;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* ===== ESTADOS ADICIONALES ===== */
.form-control:disabled {
    background-color: var(--light-gray);
    cursor: not-allowed;
    opacity: 0.6;
}

.contacto-form button[type="submit"]:disabled {
    background: var(--secondary-color);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.contacto-form button[type="submit"]:disabled:hover {
    background: var(--secondary-color);
    transform: none;
    box-shadow: none;
}

/* ===== MEJORAS DE ACCESIBILIDAD ===== */
.form-control:focus,
.contacto-form button[type="submit"]:focus,
.custom-checkbox:focus,
.social-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}