﻿/* ==========================================
   PÁGINA DE CONTACTO - DISEÑO MODERNO
   LlaveroQR - Estilo Premium
   ========================================== */

/* ==========================================
   VARIABLES CSS
   ========================================== */
:root {
    --contacto-primary: #1B4B8C;
    --contacto-primary-dark: #163A6F;
    --contacto-success: #10b981;
    --contacto-warning: #f59e0b;
    --contacto-info: #06b6d4;
    --contacto-whatsapp: #25D366;
    --contacto-email: #0066cc;
    --contacto-phone: #7C3AED;
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #1B4B8C 0%, #7CB342 100%);
    --gradient-whatsapp: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    --gradient-email: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    --gradient-phone: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    /* Transiciones */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.contacto-hero {
    background: linear-gradient(135deg, #1B4B8C 0%, #2C5FA8 50%, #7CB342 100%);
    position: relative;
    overflow: hidden;
    padding: 160px 0 80px;
    min-height: 5vh;
}

.contacto-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.05) 2px, transparent 2px), radial-gradient(circle at 80% 70%, rgba(255,255,255,0.03) 2px, transparent 2px);
    background-size: 50px 50px;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.6s ease-out;
}

.contacto-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.gradient-text {
    background: linear-gradient(90deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contacto-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.trust-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;
}

.hero-image-container {
    position: relative;
    animation: fadeIn 1s ease-out 0.8s both;
}

.hero-image {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
    border-radius: 15px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* ==========================================
   BOTONES DE ACCIÓN RÁPIDA
   ========================================== */
.quick-contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #F8F9FA 0%, #E2E8F0 100%);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #1B4B8C;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.contact-action-card {
    display: block;
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
    border: 3px solid transparent;
    overflow: hidden;
    height: 100%;
}

    .contact-action-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
        transform: translateX(-100%);
        transition: transform 0.6s ease;
    }

    .contact-action-card:hover::before {
        transform: translateX(100%);
    }

    .contact-action-card:hover {
        transform: translateY(-12px) scale(1.02);
        box-shadow: var(--shadow-xl);
        text-decoration: none;
    }

    .contact-action-card.whatsapp:hover {
        border-color: var(--contacto-whatsapp);
    }

    .contact-action-card.email:hover {
        border-color: var(--contacto-email);
    }

    .contact-action-card.phone:hover {
        border-color: var(--contacto-phone);
    }

.card-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.whatsapp-icon {
    background: var(--gradient-whatsapp);
}

.email-icon {
    background: var(--gradient-email);
}

.phone-icon {
    background: var(--gradient-phone);
}

.contact-action-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.icon-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
    z-index: 1;
}

.whatsapp-pulse {
    background: rgba(37, 211, 102, 0.2);
}

.email-pulse {
    background: rgba(0, 102, 204, 0.2);
}

.phone-pulse {
    background: rgba(124, 58, 237, 0.2);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.card-content {
    text-align: center;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1B4B8C;
    margin-bottom: 0.5rem;
}

.card-description {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.card-phone {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 1rem;
    word-break: break-all;
}

.card-badge {
    display: inline-block;
    background: linear-gradient(135deg, #F59E0B 0%, #DC2626 100%);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.card-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(27, 75, 140, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1B4B8C;
    transition: var(--transition-smooth);
}

.contact-action-card:hover .card-arrow {
    background: #1B4B8C;
    color: white;
    transform: translateX(5px);
}

/* ==========================================
   SECCIÓN DE INFORMACIÓN
   ========================================== */
.info-section {
    padding: 5rem 0;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    height: 100%;
    transition: var(--transition-smooth);
    border-top: 4px solid transparent;
}

    .info-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
        border-top-color: #1B4B8C;
    }

.info-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1B4B8C 0%, #7CB342 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1B4B8C;
    margin-bottom: 1.5rem;
}

.horario-list {
    margin-bottom: 1.5rem;
}

.horario-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #E2E8F0;
}

    .horario-item:last-child {
        border-bottom: none;
    }

    .horario-item.inactive {
        opacity: 0.5;
    }

.dia {
    font-weight: 600;
    color: #2C2C2C;
}

.hora {
    color: #6c757d;
}

.estado-actual {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
}

    .estado-actual.abierto {
        background: rgba(16, 185, 129, 0.1);
        color: #10b981;
    }

    .estado-actual .fas.fa-circle {
        font-size: 0.5rem;
        animation: blink 2s ease-in-out infinite;
    }

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.ubicacion-details p {
    margin-bottom: 0.5rem;
    color: #2C2C2C;
}

.btn-location {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #1B4B8C 0%, #7CB342 100%);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    margin-top: 1rem;
}

    .btn-location:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
        color: white;
    }

.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    border: 2px solid #E2E8F0;
}

    .social-link i {
        font-size: 1.25rem;
    }

    .social-link.instagram {
        color: #E4405F;
    }

        .social-link.instagram:hover {
            background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF);
            color: white;
            border-color: transparent;
        }

    .social-link.youtube {
        color: #FF0000;
    }

        .social-link.youtube:hover {
            background: #FF0000;
            color: white;
            border-color: transparent;
        }

    .social-link.tiktok {
        color: #000000;
    }

        .social-link.tiktok:hover {
            background: #000000;
            color: white;
            border-color: transparent;
        }

    .social-link.facebook {
        color: #1877F2;
    }

        .social-link.facebook:hover {
            background: #1877F2;
            color: white;
            border-color: transparent;
        }

    .social-link.twitter {
        color: #1DA1F2;
    }

        .social-link.twitter:hover {
            background: #1DA1F2;
            color: white;
            border-color: transparent;
        }

    .social-link.linkedin {
        color: #0A66C2;
    }

        .social-link.linkedin:hover {
            background: #0A66C2;
            color: white;
            border-color: transparent;
        }

/* ==========================================
   FAQs RÁPIDAS
   ========================================== */
.faq-quick-section {
    padding: 5rem 0;
}

.faq-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid #1B4B8C;
    transition: var(--transition-smooth);
    height: 100%;
}

    .faq-card:hover {
        transform: translateX(8px);
        box-shadow: var(--shadow-md);
    }

.faq-icon {
    width: 50px;
    height: 50px;
    background: rgba(27, 75, 140, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1B4B8C;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.faq-question {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1B4B8C;
    margin-bottom: 0.75rem;
}

.faq-answer {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   FORMULARIO
   ========================================== */
.form-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #F8F9FA 0%, #E2E8F0 100%);
}

.form-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1B4B8C;
    margin-bottom: 0.75rem;
}

.form-subtitle {
    color: #6c757d;
    font-size: 1.125rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 1rem;
    transition: var(--transition-smooth);
}

    .contact-form .form-control:focus,
    .contact-form .form-select:focus {
        border-color: #1B4B8C;
        box-shadow: 0 0 0 0.25rem rgba(27, 75, 140, 0.1);
    }

.contact-form .form-floating > label {
    padding-left: 1rem;
}

.btn-submit {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, #1B4B8C 0%, #7CB342 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    transition: var(--transition-smooth);
    cursor: pointer;
}

    .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

    .btn-submit:active {
        transform: translateY(0);
    }

/* ==========================================
   CTA FINAL
   ========================================== */
.cta-final-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #1B4B8C 0%, #7CB342 100%);
}

.cta-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
}

.cta-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: #1B4B8C;
    margin-bottom: 0.75rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: #6c757d;
    margin: 0;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #1B4B8C 0%, #7CB342 100%);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-md);
}

    .btn-cta:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-xl);
        color: white;
    }

/* ==========================================
   ANIMACIONES
   ========================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 991px) {
    .contacto-hero {
        padding: 100px 0 60px;
    }

    .trust-stats {
        justify-content: center;
    }

    .social-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .quick-contact-section,
    .info-section,
    .faq-quick-section,
    .form-section,
    .cta-final-section {
        padding: 3rem 0;
    }

    .form-card,
    .cta-card {
        padding: 2rem 1.5rem;
    }

    .contact-action-card {
        padding: 1.5rem;
    }
}
