/* ================================================================ */
/* SERVICOMP+ - ESTILOS GLOBALES                                   */
/* Versión 3.0 - Diseño Blanco Premium                             */
/* ================================================================ */

/* ===== 1. RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a3a5c;
    --primary-light: #e8f0fe;
    --primary-dark: #0f2a44;
    --secondary: #10b981;
    --accent: #f59e0b;
    --danger: #ef4444;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --font-family: 'Inter', -apple-system, sans-serif;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.06);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family);
    color: var(--gray-900);
    background: var(--gray-50);
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== 2. TIPOGRAFÍA ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p { color: var(--gray-600); margin-bottom: 1rem; }

.text-danger { color: var(--danger); }
.text-primary { color: var(--primary); }

/* ===== 3. BOTONES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26,58,92,0.25);
}

.btn-success {
    background: var(--secondary);
    color: var(--white);
}
.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16,185,129,0.25);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.75rem; }

/* ===== 4. HEADER ===== */
#mainHeader {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

#mainHeader.scrolled {
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-desktop {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-desktop a {
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav-desktop a:hover { color: var(--primary); }
.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}
.nav-desktop a:hover::after { width: 100%; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-700);
    cursor: pointer;
}

/* Menú Móvil */
#mobileMenu {
    display: none;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 1rem;
}

#mobileMenu.open { display: block; }

#mobileMenu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
}

#mobileMenu a:hover {
    background: var(--gray-50);
    color: var(--primary);
}

#mobileMenu .btn {
    text-align: center;
    margin-top: 0.5rem;
}

/* ===== 5. LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-fallback {
    display: none;
    background: #1a3a5c;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.1rem;
}

.logo-text {
    font-weight: 800;
    font-size: 1.25rem;
    color: #1a3a5c;
    letter-spacing: -0.02em;
}

.logo-plus {
    color: #ef4444;
}

/* Logo en footer */
.footer-brand .logo-text {
    color: #1a3a5c;
}

.footer-brand .logo-plus {
    color: #ef4444;
}

/* ===== 6. HERO ===== */
.hero {
    padding: 1.5rem 0 4rem 0;
    background: var(--gray-50);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-badges {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #dcfce7;
    color: #16a34a;
    padding: 0.25rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pulse-icon {
    font-size: 0.5rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

.badge-support {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--white);
    color: var(--gray-500);
    padding: 0.25rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid var(--gray-200);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.hero-desc {
    font-size: 1.125rem;
    max-width: 36rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* ===== SOFTWARE CARD ===== */
.software-card {
    padding: 1.5rem;
    max-width: 440px;
    margin: 0 auto;
}

.software-icon { 
    text-align: center; 
    margin-bottom: 1rem; 
}

.software-icon svg {
    max-width: 160px;
    height: auto;
}

.software-title {
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 0.25rem;
}

.software-sub {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 0.6rem;
    transition: var(--transition);
    text-decoration: none;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.download-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.download-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.download-icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.download-icon.av {
    background: var(--primary-light);
    color: var(--primary);
}

.download-icon.tv {
    background: #eef2ff;
    color: #4f46e5;
}

.download-name { 
    font-weight: 600; 
    font-size: 0.8rem; 
    color: var(--gray-900);
}

.download-desc { 
    font-size: 0.65rem; 
    color: var(--gray-500);
}

.download-btn {
    font-size: 0.65rem;
    padding: 0.3rem 0.75rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    color: var(--gray-700);
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.download-item:hover .download-btn {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.security-notice {
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    display: flex;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--primary);
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.security-notice p { 
    margin: 0; 
    color: var(--primary);
}

/* ===== 7. SECCIONES ===== */
.section {
    padding: 5rem 0;
}

.section-white { background: var(--white); }
.section-gray { background: var(--gray-50); }

.section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 3rem auto;
}

.section-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.section-sub {
    font-size: 0.95rem;
    color: var(--gray-600);
    max-width: 36rem;
    margin: 0 auto;
}

/* ===== 8. PASOS ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.step-circle {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.25rem auto;
}

.step-title { font-size: 1.125rem; margin-bottom: 0.5rem; }
.step-desc { font-size: 0.875rem; color: var(--gray-600); margin: 0; }

/* ===== 9. SERVICIOS ===== */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.icon-wrapper {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.icon-wrapper.blue { background: #dbeafe; color: #2563eb; }
.icon-wrapper.red { background: #fde8ea; color: var(--danger); }
.icon-wrapper.green { background: #e6f7ed; color: var(--secondary); }
.icon-wrapper.indigo { background: #eef2ff; color: #4f46e5; }
.icon-wrapper.amber { background: #fef3c7; color: #b45309; }
.icon-wrapper.purple { background: #f3e8ff; color: #7c3aed; }

.service-title { font-size: 1.125rem; margin-bottom: 0.5rem; }
.service-desc { font-size: 0.875rem; color: var(--gray-600); margin: 0; }

.time-badge {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 0.125rem 0.75rem;
    border-radius: 9999px;
}

.servicios-cta { text-align: center; margin-top: 2.5rem; }

/* ===== 10. TESTIMONIOS ===== */
.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonio-card {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.testimonio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.testimonio-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.testimonio-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(26,58,92,0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
}

.testimonio-name { font-weight: 700; font-size: 0.875rem; margin: 0; }
.testimonio-role { font-size: 0.7rem; color: var(--gray-500); margin: 0; }
.testimonio-text { font-size: 0.875rem; color: var(--gray-600); margin: 0; }

/* ===== 11. FAQ ===== */
.faq-list {
    max-width: 48rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-900);
    list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary i {
    color: var(--gray-400);
    transition: var(--transition);
}

.faq-item[open] summary i { transform: rotate(180deg); color: var(--primary); }

.faq-item[open] summary { border-bottom: 1px solid var(--gray-200); }

.faq-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===== 12. FOOTER ===== */
footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 4rem 0;
    margin-top: 4rem;
}

footer a { color: var(--gray-400); text-decoration: none; }
footer a:hover { color: var(--white); }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-title {
    color: var(--white);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a { font-size: 0.875rem; }

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer-contact i { color: var(--primary); width: 1.25rem; }

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    margin-top: 2rem;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ================================================================ */
/* ===== 13. WHATSAPP FLOAT CON TOOLTIP =====                      */
/* ================================================================ */

.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float-bounce 2.5s ease-in-out infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
    color: white;
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
}

/* ===== TOOLTIP EN DOS LÍNEAS ===== */
.whatsapp-tooltip {
    position: absolute;
    bottom: calc(100% + 14px);
    right: 50%;
    transform: translateX(50%);
    background: #0f172a;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    min-width: 140px;
    max-width: 200px;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 50%;
    transform: translateX(50%);
    border: 7px solid transparent;
    border-top-color: #0f172a;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 18px);
}

/* ===== CONTENIDO DEL TOOLTIP ===== */
.tooltip-content {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.tooltip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    display: inline-block;
    animation: pulse-dot 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.tooltip-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.tooltip-line1 {
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.01em;
}

.tooltip-line2 {
    font-size: 0.6rem;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.02em;
}

/* ===== ANIMACIONES ===== */
@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

@keyframes float-bounce {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE WHATSAPP ===== */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
    
    .whatsapp-tooltip {
        padding: 0.5rem 1rem;
        min-width: 120px;
        max-width: 170px;
    }
    
    .tooltip-line1 {
        font-size: 0.65rem;
    }
    
    .tooltip-line2 {
        font-size: 0.55rem;
    }
}

@media (max-width: 480px) {
    .whatsapp-tooltip {
        display: none;
    }
}

/* ================================================================ */
/* ===== 14. RESPONSIVE GENERAL =====                              */
/* ================================================================ */

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero-content { text-align: center; }
    .hero-badges { justify-content: center; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .servicios-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonios-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .mobile-toggle { display: block; }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.625rem; }
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 1.75rem; }
    
    .servicios-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .testimonios-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    
    .hero-stats { grid-template-columns: repeat(3, 1fr); }
    .stat-number { font-size: 1.25rem; }
    
    .btn { width: 100%; justify-content: center; }
    .hero-buttons .btn { width: 100%; }
    
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
    
    .logo-img { height: 32px; }
    .logo-text { font-size: 1rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero-title { font-size: 1.75rem; }
    .hero-stats { grid-template-columns: 1fr 1fr 1fr; gap: 0.25rem; }
    .stat-number { font-size: 1rem; }
    .stat-label { font-size: 0.6rem; }
    
    .logo-img { height: 28px; }
    .logo-text { font-size: 0.875rem; }
}

/* ================================================================ */
/* ===== 15. UTILIDADES =====                                      */
/* ================================================================ */

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}

/* ===== 16. LINE CLAMP ===== */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}