﻿/* ============================================================================
   COMYVO - Estilos de Página de Contacto
   Archivo: contacto.css
   CORREGIDO V2: Clases alineadas con Contacto.cshtml
   ============================================================================ */

/* Variables específicas de la página */
:root {
    --contact-primary: #4F95A3;
    --contact-primary-dark: #3F7F8C;
    --contact-primary-light: #7AB5C3;
    --contact-secondary: #5AABB8;
    --contact-accent: #2ECC71;
    --contact-bg-light: #f0f7fa;
    --contact-bg-section: #f8fbfc;
    --contact-gradient: linear-gradient(135deg, var(--contact-primary) 0%, var(--contact-secondary) 100%);
    --contact-shadow: 0 10px 40px rgba(79, 149, 163, 0.15);
    --contact-shadow-hover: 0 20px 60px rgba(79, 149, 163, 0.25);
    --contact-radius: 16px;
    --contact-radius-sm: 8px;
    --contact-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   HEADER (estilos específicos para contacto)
   ============================================================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    background: var(--contact-gradient);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: var(--contact-transition);
}

    .header.scrolled {
        padding: 10px 0;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    }

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

/* Navegación */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--contact-transition);
}

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.15);
        color: #fff;
    }

    .nav-link i {
        font-size: 0.9rem;
    }

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--contact-transition);
}

    .language-btn:hover {
        background: rgba(255, 255, 255, 0.25);
    }

.language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 140px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 8px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--contact-transition);
    z-index: 1001;
}

.language-selector:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown li {
    margin: 0;
}

.language-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #3a4a5a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--contact-transition);
}

    .language-dropdown a:hover,
    .language-dropdown a.active {
        background: var(--contact-bg-light);
        color: var(--contact-primary);
    }

.language-dropdown .flag {
    font-size: 1.2rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
}

.hamburger {
    width: 22px;
    height: 2px;
    background: #fff;
    position: relative;
    transition: var(--contact-transition);
}

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 22px;
        height: 2px;
        background: #fff;
        left: 0;
        transition: var(--contact-transition);
    }

    .hamburger::before {
        top: -7px;
    }

    .hamburger::after {
        top: 7px;
    }

/* ============================================================================
   HERO CONTACTO
   ============================================================================ */

.hero-contacto {
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--contact-gradient);
    padding: 140px 20px 80px;
    text-align: center;
}

    .hero-contacto .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        z-index: 1;
    }

    .hero-contacto .hero-content {
        position: relative;
        z-index: 2;
        max-width: 700px;
        color: #fff;
    }

    .hero-contacto .hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        padding: 10px 24px;
        border-radius: 50px;
        font-size: 0.9rem;
        font-weight: 500;
        margin-bottom: 20px;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .hero-contacto .hero-title {
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 16px;
        text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
        color: #fff;
    }

    .hero-contacto .hero-subtitle {
        font-size: clamp(1rem, 2vw, 1.2rem);
        line-height: 1.7;
        opacity: 0.95;
        max-width: 600px;
        margin: 0 auto;
    }

/* ============================================================================
   CONTAINER
   ============================================================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================================
   SECCIÓN CONTACTO
   ============================================================================ */

.section-contacto {
    padding: 80px 0 100px;
    background: #fff;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

/* ============================================================================
   INFORMACIÓN DE CONTACTO
   ============================================================================ */

.contacto-info {
    position: sticky;
    top: 120px;
}

    .contacto-info h2 {
        font-size: 1.75rem;
        font-weight: 700;
        color: #1a2b3c;
        margin-bottom: 16px;
    }

.info-descripcion {
    font-size: 1rem;
    color: #5a6a7a;
    line-height: 1.7;
    margin-bottom: 32px;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 14px;
    background: var(--contact-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 8px 20px rgba(79, 149, 163, 0.25);
}

.info-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a2b3c;
    margin-bottom: 6px;
}

.info-content p {
    font-size: 0.95rem;
    color: #5a6a7a;
    margin: 0;
    line-height: 1.5;
}

.info-content a {
    color: var(--contact-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--contact-transition);
}

    .info-content a:hover {
        color: var(--contact-primary-dark);
    }

/* Social Links */
.social-links {
    padding-top: 24px;
    border-top: 1px solid #e8eef2;
}

    .social-links h3 {
        font-size: 1rem;
        font-weight: 600;
        color: #1a2b3c;
        margin-bottom: 16px;
    }

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--contact-bg-light);
    color: var(--contact-primary);
    border-radius: 12px;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--contact-transition);
}

    .social-icon:hover {
        background: var(--contact-gradient);
        color: #fff;
        transform: translateY(-3px);
    }

/* ============================================================================
   FORMULARIO DE CONTACTO
   ============================================================================ */

.contacto-form-wrapper {
    background: #fff;
    border-radius: var(--contact-radius);
    padding: 40px;
    box-shadow: var(--contact-shadow);
    border: 1px solid #e8eef2;
}

.contacto-form h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a2b3c;
    margin-bottom: 32px;
    text-align: center;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Form Groups */
.contacto-form .form-group {
    margin-bottom: 24px;
}

.contacto-form .form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #3a4a5a;
    margin-bottom: 10px;
}

    .contacto-form .form-label i {
        color: var(--contact-primary);
        font-size: 0.85rem;
        width: 16px;
        text-align: center;
    }

.contacto-form .form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid #e0e8ef;
    border-radius: var(--contact-radius-sm);
    background: #fff;
    transition: var(--contact-transition);
    font-family: inherit;
}

    .contacto-form .form-control:focus {
        outline: none;
        border-color: var(--contact-primary);
        box-shadow: 0 0 0 4px rgba(79, 149, 163, 0.1);
    }

    .contacto-form .form-control::placeholder {
        color: #a0a8b0;
    }

.contacto-form textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

.contacto-form select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6a7a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
}

.form-error {
    display: block;
    font-size: 0.8rem;
    color: #e74c3c;
    margin-top: 6px;
    min-height: 18px;
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: #7a8a9a;
    margin-top: 6px;
}

.char-count {
    text-align: right;
}

/* Checkbox */
.contacto-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #3a4a5a;
    line-height: 1.5;
}

    .contacto-form .checkbox-label input {
        display: none;
    }

.contacto-form .checkbox-custom {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #d0d8e0;
    border-radius: 5px;
    transition: var(--contact-transition);
    position: relative;
    margin-top: 2px;
}

    .contacto-form .checkbox-custom::after {
        content: '\f00c';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0);
        color: #fff;
        font-size: 0.7rem;
        transition: transform 0.2s ease;
    }

.contacto-form .checkbox-label input:checked + .checkbox-custom {
    background: var(--contact-primary);
    border-color: var(--contact-primary);
}

    .contacto-form .checkbox-label input:checked + .checkbox-custom::after {
        transform: translate(-50%, -50%) scale(1);
    }

.contacto-form .checkbox-label a {
    color: var(--contact-primary);
    text-decoration: none;
    font-weight: 500;
}

    .contacto-form .checkbox-label a:hover {
        text-decoration: underline;
    }

/* Form Actions */
.form-actions {
    margin-top: 32px;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--contact-transition);
}

.btn-primary {
    background: var(--contact-gradient);
    color: #fff;
    box-shadow: 0 8px 25px rgba(79, 149, 163, 0.35);
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(79, 149, 163, 0.45);
    }

.btn-lg {
    padding: 16px 40px;
    font-size: 1.05rem;
}

.btn-submit {
    min-width: 220px;
}

    .btn-submit:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

/* ============================================================================
   SECCIÓN FAQ RÁPIDO
   ============================================================================ */

.section-faq-rapido {
    padding: 80px 0;
    background: var(--contact-bg-section);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

    .section-header h2 {
        font-size: 2rem;
        font-weight: 700;
        color: #1a2b3c;
        margin-bottom: 12px;
    }

    .section-header p {
        font-size: 1.1rem;
        color: #5a6a7a;
    }

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.faq-card {
    background: #fff;
    border-radius: var(--contact-radius);
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: var(--contact-transition);
    border: 1px solid #eef2f5;
}

    .faq-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--contact-shadow);
    }

    .faq-card .faq-icon {
        width: 60px;
        height: 60px;
        border-radius: 12px;
        background: var(--contact-bg-light);
        color: var(--contact-primary);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px;
        font-size: 1.4rem;
        transition: var(--contact-transition);
    }

    .faq-card:hover .faq-icon {
        background: var(--contact-gradient);
        color: #fff;
    }

    .faq-card h3 {
        font-size: 1.05rem;
        font-weight: 600;
        color: #1a2b3c;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .faq-card p {
        font-size: 0.9rem;
        color: #5a6a7a;
        line-height: 1.6;
        margin-bottom: 0;
    }

.faq-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--contact-primary);
    text-decoration: none;
    transition: var(--contact-transition);
}

    .faq-link:hover {
        gap: 10px;
        color: var(--contact-primary-dark);
    }

/* ============================================================================
   FOOTER
   ============================================================================ */

.footer {
    background: #1a2b3c;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 36px;
    width: auto;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-column h4,
.footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--contact-primary);
    display: inline-block;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 12px;
    }

    .footer-links a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        font-size: 0.9rem;
        transition: var(--contact-transition);
    }

        .footer-links a:hover {
            color: var(--contact-primary-light);
            padding-left: 5px;
        }

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

    .footer-legal a {
        color: rgba(255, 255, 255, 0.5);
        text-decoration: none;
        font-size: 0.85rem;
        transition: var(--contact-transition);
    }

        .footer-legal a:hover {
            color: var(--contact-primary-light);
        }

/* ============================================================================
   ANIMACIONES
   ============================================================================ */

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 1024px) {
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contacto-info {
        position: static;
    }

    .faq-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--contact-gradient);
        flex-direction: column;
        justify-content: center;
        padding: 30px;
        opacity: 0;
        visibility: hidden;
        transition: var(--contact-transition);
        z-index: 999;
    }

        .nav-menu.active {
            opacity: 1;
            visibility: visible;
        }

    .nav-list {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .nav-link {
        justify-content: center;
        padding: 16px;
        font-size: 1.1rem;
    }

    .menu-toggle {
        display: flex;
        z-index: 1000;
    }

    .hero-contacto {
        min-height: auto;
        padding: 120px 20px 60px;
    }

    .section-contacto {
        padding: 60px 0 80px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contacto-form-wrapper {
        padding: 28px 24px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-column h4 {
        display: block;
        border-bottom: none;
        padding-bottom: 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-contacto .hero-title {
        font-size: 1.75rem;
    }

    .contacto-form-wrapper {
        padding: 24px 20px;
    }

    .btn-lg {
        width: 100%;
        padding: 14px 24px;
    }
}

/* ============================================================================
   REDUCED MOTION
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    .animate-in {
        animation: none;
        opacity: 1;
        transform: none;
    }

    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
