/* ================================================================
   OFERTAPP - Contacto
   static/css/landing/contacto.css
   ================================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: #2d3748;
    line-height: 1.6;
    overflow-x: hidden;
    background: #fafafa;
}

/* ================================================================
   BOTÓN VOLVER FLOTANTE
   ================================================================ */
.back-btn-floating {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.back-btn-floating:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.25);
    background: white;
}
.back-btn-floating:hover i { transform: translateX(-3px); }
.back-btn-floating i { transition: transform 0.3s ease; }

/* ================================================================
   HERO
   ================================================================ */
.contact-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 50%, #ff6b6b 100%);
    position: relative;
    overflow: hidden;
}

.hero-particles {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden; pointer-events: none; z-index: 0;
}
.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float-particle 15s infinite;
}
.particle:nth-child(1) { width: 280px; height: 280px; top: -80px; left: -80px; animation-delay: 0s; }
.particle:nth-child(2) { width: 180px; height: 180px; top: 40%; right: -40px; animation-delay: 2s; }
.particle:nth-child(3) { width: 140px; height: 140px; bottom: 15%; left: 25%; animation-delay: 4s; }
.particle:nth-child(4) { width: 100px; height: 100px; top: 25%; left: 55%; animation-delay: 1s; }

@keyframes float-particle {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.1; }
    50% { transform: translateY(-25px) rotate(180deg); opacity: 0.2; }
}

.contact-hero-content {
    text-align: center; z-index: 1; padding: 2rem;
}

.hero-icon-container {
    position: relative; width: 120px; height: 120px; margin: 0 auto 2rem;
}
.hero-icon-ring {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 120px; height: 120px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: ring-pulse 2s ease-out infinite;
}
@keyframes ring-pulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}
.hero-icon-box {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; height: 80px;
    background: white; border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}
.hero-icon-box i { font-size: 2.2rem; color: #ff6b6b; }

.contact-hero h1 {
    font-size: 3.2rem; font-weight: 800; color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}
.hero-tagline {
    font-size: 1.2rem; color: rgba(255, 255, 255, 0.95);
    font-weight: 400; margin-bottom: 2.5rem; max-width: 500px; margin-left: auto; margin-right: auto;
}
.hero-scroll-indicator { animation: bounce-down 2s infinite; cursor: pointer; }
.hero-scroll-indicator i { font-size: 1.5rem; color: rgba(255, 255, 255, 0.7); }
@keyframes bounce-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ================================================================
   TARJETAS DE CONTACTO RÁPIDO
   ================================================================ */
.contact-cards-section { padding: 5rem 5%; background: white; }

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-card {
    text-align: center;
    padding: 2.5rem 1.5rem 2rem;
    background: #fafafa;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    text-decoration: none; color: inherit;
    transition: all 0.3s ease;
    cursor: default;
    display: flex; flex-direction: column; align-items: center;
}
a.contact-card { cursor: pointer; }
.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.12);
    border-color: #ff6b6b;
}

.contact-card-icon {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.2rem;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    transition: transform 0.3s ease;
}
.contact-card:hover .contact-card-icon { transform: scale(1.1); }
.contact-card-icon i { font-size: 1.6rem; color: white; }
.contact-card-icon.whatsapp-icon {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.contact-card h3 { font-size: 1.2rem; font-weight: 700; color: #1a1a2e; margin-bottom: 0.4rem; }
.contact-card p { color: #64748b; font-size: 0.95rem; margin-bottom: 1rem; line-height: 1.5; }

.contact-card-action {
    font-size: 0.85rem; font-weight: 600; color: #ff6b6b;
    display: flex; align-items: center; gap: 0.4rem;
    transition: gap 0.3s ease;
}
.contact-card:hover .contact-card-action { gap: 0.7rem; }
.contact-card-action.subtle { color: #94a3b8; }
.contact-card.whatsapp:hover { border-color: #25d366; }
.contact-card.whatsapp .contact-card-action { color: #25d366; }

/* ================================================================
   SECCIÓN HEADERS
   ================================================================ */
.section-header-contact { text-align: center; margin-bottom: 3rem; }
.section-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 142, 83, 0.1) 100%);
    border-radius: 50px; color: #ff6b6b; font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem;
}
.section-header-contact h2 { font-size: 2.2rem; font-weight: 800; color: #1a1a2e; margin-bottom: 0.6rem; }
.section-header-contact p { font-size: 1.05rem; color: #64748b; max-width: 550px; margin: 0 auto; }

/* ================================================================
   FORMULARIO DE CONTACTO
   ================================================================ */
.contact-form-section { padding: 5rem 5%; background: linear-gradient(180deg, #fafafa 0%, #f0f4f8 100%); }

.contact-form-container {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.contact-form-wrapper {
    background: white; border-radius: 20px;
    padding: 2.5rem; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block; margin-bottom: 0.5rem;
    font-weight: 600; color: #2d3748; font-size: 0.95rem;
}
.form-group label i { color: #ff6b6b; margin-right: 0.3rem; font-size: 0.85rem; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 0.85rem 1rem;
    border: 2px solid #e2e8f0; border-radius: 12px;
    font-size: 1rem; font-family: 'Inter', sans-serif;
    transition: all 0.3s ease; background: #fafafa;
    color: #2d3748;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none; border-color: #ff6b6b;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
    background: white;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #a0aec0; }

/* Botón de envío */
.contact-submit-btn {
    width: 100%; padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white; border: none; border-radius: 14px;
    font-size: 1.05rem; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.3);
    font-family: 'Inter', sans-serif;
    position: relative; overflow: hidden;
}
.contact-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(255, 107, 107, 0.4);
}
.contact-submit-btn:active { transform: translateY(-1px); }
.contact-submit-btn.sending {
    pointer-events: none; opacity: 0.8;
}
.contact-submit-btn.sent {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 6px 25px rgba(34, 197, 94, 0.3);
}

/* Sidebar */
.contact-form-sidebar { display: flex; flex-direction: column; gap: 1.2rem; }

.sidebar-card {
    background: white; border-radius: 16px;
    padding: 1.5rem; border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}
.sidebar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border-color: #ff6b6b;
}
.sidebar-card-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 142, 83, 0.1) 100%);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 0.8rem;
}
.sidebar-card-icon i { font-size: 1.2rem; color: #ff6b6b; }
.sidebar-card h4 { font-size: 1rem; font-weight: 700; color: #1a1a2e; margin-bottom: 0.4rem; }
.sidebar-card p { color: #64748b; font-size: 0.9rem; line-height: 1.5; margin: 0; }

/* ================================================================
   FAQ
   ================================================================ */
.faq-section { padding: 5rem 5%; background: white; }

.faq-container { max-width: 800px; margin: 0 auto; }

.faq-item {
    background: #fafafa; border-radius: 16px;
    margin-bottom: 1rem; border: 1px solid #f0f0f0;
    overflow: hidden; cursor: pointer;
    transition: all 0.3s ease;
}
.faq-item:hover { border-color: #ffcaca; }
.faq-item.active { border-color: #ff6b6b; box-shadow: 0 4px 20px rgba(255, 107, 107, 0.1); }

.faq-question {
    padding: 1.25rem 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
    gap: 1rem;
}
.faq-question span { font-size: 1rem; font-weight: 600; color: #1a1a2e; }
.faq-question i {
    color: #ff6b6b; font-size: 0.9rem;
    transition: transform 0.3s ease; flex-shrink: 0;
}
.faq-item.active .faq-question i { transform: rotate(180deg); }

.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.5rem;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.25rem;
}
.faq-answer p { color: #4a5568; font-size: 0.95rem; line-height: 1.7; }

/* ================================================================
   CTA SOBRE NOSOTROS
   ================================================================ */
.about-cta-banner {
    padding: 5rem 5%;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d3748 100%);
    position: relative; overflow: hidden; text-align: center;
}
.about-cta-banner-bg {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
}
.cta-particle {
    position: absolute; border-radius: 50%;
    background: rgba(255, 107, 107, 0.08);
    animation: float-particle 18s infinite;
}
.cta-particle:nth-child(1) { width: 300px; height: 300px; top: -100px; right: -50px; }
.cta-particle:nth-child(2) { width: 200px; height: 200px; bottom: -80px; left: -40px; animation-delay: 3s; }
.cta-particle:nth-child(3) { width: 150px; height: 150px; top: 30%; left: 60%; animation-delay: 6s; }

.about-cta-banner-content {
    position: relative; z-index: 1;
    max-width: 600px; margin: 0 auto;
}
.about-cta-icon-box {
    width: 90px; height: 90px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    border-radius: 50%; margin: 0 auto 1.5rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.4);
    animation: cta-pulse 2.5s ease-in-out infinite;
}
@keyframes cta-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 40px rgba(255, 107, 107, 0.4); }
    50% { transform: scale(1.08); box-shadow: 0 15px 50px rgba(255, 107, 107, 0.5); }
}
.about-cta-icon-box i { font-size: 2.2rem; color: white; }

.about-cta-banner-content h2 {
    font-size: 2.2rem; font-weight: 800; color: white; margin-bottom: 0.8rem;
}
.about-cta-banner-content p {
    font-size: 1.1rem; color: rgba(255, 255, 255, 0.75); margin-bottom: 2rem; line-height: 1.6;
}

.about-cta-big-btn {
    display: inline-flex; align-items: center; gap: 0.7rem;
    padding: 1.1rem 2.5rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white; border-radius: 50px;
    font-size: 1.1rem; font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    position: relative; overflow: hidden;
}
.about-cta-big-btn::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 0.5s;
}
.about-cta-big-btn:hover::before { left: 100%; }
.about-cta-big-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 50px rgba(255, 107, 107, 0.5);
    color: white;
}
.about-cta-big-btn i { font-size: 1rem; }

/* ================================================================
   REDES SOCIALES
   ================================================================ */
.social-section {
    padding: 3rem 5%; background: #fafafa; text-align: center;
}
.social-section h3 {
    font-size: 1.3rem; font-weight: 700; color: #2d3748; margin-bottom: 1.5rem;
}
.social-buttons { display: flex; justify-content: center; gap: 1rem; }

.social-circle {
    width: 52px; height: 52px; border-radius: 50%;
    background: white; border: 2px solid #e2e8f0;
    display: flex; align-items: center; justify-content: center;
    color: #64748b; font-size: 1.2rem;
    text-decoration: none; transition: all 0.3s ease;
}
.social-circle:hover {
    background: #ff6b6b; border-color: #ff6b6b; color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

/* ================================================================
   FOOTER
   ================================================================ */
.contact-footer {
    padding: 3rem 5%; background: #1a1a2e; text-align: center;
}
.footer-content-contact { max-width: 600px; margin: 0 auto; }
.footer-logo {
    display: flex; align-items: center; justify-content: center; gap: 0.75rem;
    margin-bottom: 1rem;
}
.footer-logo img { width: 40px; height: 40px; }
.footer-logo span { font-size: 1.5rem; font-weight: 800; color: white; }
.contact-footer p { color: rgba(255, 255, 255, 0.7); margin-bottom: 0.5rem; }
.footer-copy { font-size: 0.9rem; }
.footer-copy i { color: #ff6b6b; animation: heartbeat 1.5s ease infinite; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }

/* ================================================================
   TOAST
   ================================================================ */
.contact-toast {
    position: fixed; bottom: 2rem; left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1a1a2e; color: white;
    padding: 1rem 1.5rem; border-radius: 14px;
    display: flex; align-items: center; gap: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 99999; opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: calc(100vw - 2rem);
}
.contact-toast.active {
    transform: translateX(-50%) translateY(0); opacity: 1;
}
.contact-toast-icon i { font-size: 1.2rem; color: #22c55e; }
.contact-toast.error .contact-toast-icon i { color: #ef4444; }
.contact-toast-msg { font-size: 0.95rem; font-weight: 500; }

/* ================================================================
   ANIMACIONES ENTRADA
   ================================================================ */
.animate-in {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-in.visible {
    opacity: 1; transform: translateY(0);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .contact-form-container { grid-template-columns: 1fr; }
    .contact-form-sidebar {
        flex-direction: row; flex-wrap: wrap;
    }
    .sidebar-card { flex: 1; min-width: 200px; }
}

@media (max-width: 768px) {
    .back-btn-floating {
        width: 50px; height: 50px; padding: 0;
        justify-content: center; border-radius: 50%;
    }
    .back-btn-floating span { display: none; }

    .contact-hero { min-height: 60vh; }
    .contact-hero h1 { font-size: 2.4rem; }
    .hero-tagline { font-size: 1.05rem; }
    .hero-icon-container { width: 100px; height: 100px; }
    .hero-icon-ring { width: 100px; height: 100px; }
    .hero-icon-box { width: 65px; height: 65px; }
    .hero-icon-box i { font-size: 1.8rem; }

    .contact-cards-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .contact-card { padding: 1.8rem 1.2rem 1.5rem; }
    .contact-card-icon { width: 55px; height: 55px; }
    .contact-card-icon i { font-size: 1.3rem; }
    .contact-card h3 { font-size: 1.05rem; }
    .contact-card p { font-size: 0.85rem; }

    .section-header-contact h2 { font-size: 1.8rem; }
    .section-header-contact p { font-size: 0.95rem; }

    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 1.5rem; }

    .contact-form-sidebar { flex-direction: column; }
    .sidebar-card { min-width: auto; }

    .about-cta-banner-content h2 { font-size: 1.8rem; }
    .about-cta-big-btn { padding: 1rem 2rem; font-size: 1rem; }
}

@media (max-width: 480px) {
    .contact-hero h1 { font-size: 2rem; }
    .hero-tagline { font-size: 0.95rem; }

    .contact-cards-grid { grid-template-columns: 1fr; }

    .about-cta-banner-content h2 { font-size: 1.5rem; }
    .about-cta-icon-box { width: 70px; height: 70px; }
    .about-cta-icon-box i { font-size: 1.8rem; }
    .about-cta-big-btn {
        width: 100%; justify-content: center;
        padding: 1rem 1.5rem; font-size: 0.95rem;
    }

    .faq-question span { font-size: 0.9rem; }
    .faq-answer p { font-size: 0.9rem; }
}

/* Safe area iOS */
@supports (padding: env(safe-area-inset-bottom)) {
    .contact-footer { padding-bottom: calc(3rem + env(safe-area-inset-bottom)); }
    .back-btn-floating { top: calc(20px + env(safe-area-inset-top)); }
    .contact-toast { bottom: calc(2rem + env(safe-area-inset-bottom)); }
}

/* Prevenir zoom inputs iOS */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .form-group input, .form-group select, .form-group textarea { font-size: 16px; }
}