/* ========================================
   VARIABLES Y RESET
   ======================================== */
:root {
    --color-primary: #25D366;
    --color-primary-dark: #128C7E;
    --color-primary-light: #DCF8C6;
    --color-black: #000000;
    --color-dark: #0a0a0a;
    --color-gray-dark: #1a1a1a;
    --color-gray-medium: #2a2a2a;
    --color-gray-light: #888888;
    --color-white: #ffffff;
    --color-whatsapp-bg: #ECE5DD;
    --color-whatsapp-sent: #DCF8C6;
    --color-whatsapp-received: #ffffff;
    --color-whatsapp-header: #075E54;
    --font-primary: 'Inter', sans-serif;
    --shadow-glow: 0 0 40px rgba(37, 211, 102, 0.3);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-primary);
    background-color: var(--color-black);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========================================
   HEADER
   ======================================== */
.landing-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(37, 211, 102, 0.1);
    padding: 16px 0;
}

.landing-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { display: flex; flex-direction: column; }
.logo-text { font-size: 24px; font-weight: 800; color: var(--color-white); letter-spacing: 2px; }
.logo-tagline { font-size: 10px; color: var(--color-primary); letter-spacing: 1px; text-transform: uppercase; }

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--color-primary);
    color: var(--color-black);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.header-cta:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    padding: 120px 0 60px;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(37, 211, 102, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(37, 211, 102, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    color: var(--color-primary);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out;
}

.badge-dot {
    width: 8px; height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.highlight {
    color: var(--color-primary);
    position: relative;
}

.hero-description {
    font-size: 17px;
    color: #cccccc;
    margin-bottom: 32px;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-description strong {
    color: var(--color-primary);
    font-weight: 600;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--color-white);
}

.feature-icon {
    width: 28px; height: 28px;
    background: rgba(37, 211, 102, 0.15);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

/* ========================================
   BOTÓN CTA PRINCIPAL
   ======================================== */
.btn-cta-main {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 32px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-black);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out 0.4s both, pulseBtn 3s ease-in-out infinite;
    width: fit-content;
}

.btn-cta-main span {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
}

.btn-cta-main span strong {
    font-size: 18px;
    font-weight: 800;
}

.btn-cta-main span small {
    font-size: 13px;
    font-weight: 500;
    opacity: 0.8;
}

.btn-cta-main .arrow-icon {
    transition: var(--transition);
}

.btn-cta-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 60px rgba(37, 211, 102, 0.6);
}

.btn-cta-main:hover .arrow-icon {
    transform: translateX(5px);
}

.btn-cta-main::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-cta-main:hover::before {
    left: 100%;
}

/* ========================================
   MOCKUP DEL TELÉFONO / CHAT WHATSAPP
   ======================================== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.phone-mockup {
    width: 100%;
    max-width: 380px;
    background: var(--color-whatsapp-bg);
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.1),
        0 0 80px rgba(37, 211, 102, 0.2);
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: var(--transition);
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-10px);
}

.phone-header {
    background: var(--color-whatsapp-header);
    color: white;
}

.phone-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 600;
}

.phone-icons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.whatsapp-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--color-whatsapp-header);
}

.chat-avatar {
    width: 36px; height: 36px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-black);
    flex-shrink: 0;
}

.chat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-name {
    font-weight: 600;
    font-size: 14px;
}

.chat-status {
    font-size: 11px;
    opacity: 0.8;
}

.chat-actions {
    display: flex;
    gap: 14px;
    opacity: 0.9;
}

/* Cuerpo del Chat */
.chat-body {
    background: var(--color-whatsapp-bg);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0,0,0,0.03) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    padding: 16px 12px;
    min-height: 400px;
    max-height: 450px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-date {
    align-self: center;
    background: rgba(225, 218, 208, 0.95);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 11px;
    color: #555;
    font-weight: 500;
    margin-bottom: 8px;
}

.message {
    display: flex;
    animation: messageSlide 0.4s ease-out both;
}

.message.received {
    justify-content: flex-start;
}

.message.sent {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 80%;
    padding: 8px 10px 6px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    position: relative;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.message.received .message-bubble {
    background: var(--color-whatsapp-received);
    border-top-left-radius: 2px;
}

.message.sent .message-bubble {
    background: var(--color-whatsapp-sent);
    border-top-right-radius: 2px;
}

.message-bubble p {
    margin-bottom: 4px;
}

.message-bubble ul {
    list-style: none;
    padding-left: 0;
    margin: 6px 0;
}

.message-bubble ul li {
    font-size: 12px;
    padding: 2px 0;
}

.message-time {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 10px;
    color: #888;
    margin-top: 2px;
}

/* Indicador de escritura */
.typing-indicator {
    display: flex;
    justify-content: flex-start;
    padding: 0 4px;
}

.typing-bubble {
    background: white;
    padding: 10px 14px;
    border-radius: 10px;
    border-top-left-radius: 2px;
    display: flex;
    gap: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.typing-bubble span {
    width: 7px; height: 7px;
    background: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-bubble span:nth-child(2) { animation-delay: 0.2s; }
.typing-bubble span:nth-child(3) { animation-delay: 0.4s; }

/* Input del chat */
.chat-input {
    background: #F0F0F0;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #888;
}

.input-text {
    flex: 1;
    background: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: #888;
}

/* ========================================
   SECCIÓN SERVICIOS
   ======================================== */
.servicios-section {
    padding: 80px 0;
    background: var(--color-dark);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--color-gray-light);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.servicio-card {
    background: var(--color-gray-dark);
    padding: 32px 24px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    text-align: center;
}

.servicio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 211, 102, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.servicio-icon {
    width: 70px; height: 70px;
    background: rgba(37, 211, 102, 0.1);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: var(--color-primary);
    transition: var(--transition);
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.servicio-card:hover .servicio-icon {
    background: var(--color-primary);
    color: var(--color-black);
    transform: scale(1.1) rotate(5deg);
}

.servicio-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.servicio-card p {
    color: var(--color-gray-light);
    font-size: 14px;
    line-height: 1.6;
}

/* ========================================
   CTA FINAL
   ======================================== */
.cta-final {
    padding: 100px 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(37, 211, 102, 0.1) 0%, transparent 70%),
        var(--color-black);
    text-align: center;
    position: relative;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-icon {
    width: 100px; height: 100px;
    background: rgba(37, 211, 102, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 30px;
    color: var(--color-primary);
    border: 2px solid rgba(37, 211, 102, 0.3);
    animation: pulse 3s ease-in-out infinite;
}

.cta-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-description {
    font-size: 18px;
    color: #cccccc;
    margin-bottom: 40px;
    line-height: 1.6;
}

.btn-cta-final {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 24px 40px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-black);
    text-decoration: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 0 50px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: pulseBtn 3s ease-in-out infinite;
}

.btn-cta-final span {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-cta-final span strong {
    font-size: 22px;
    font-weight: 800;
}

.btn-cta-final span small {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
}

.btn-cta-final:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 0 80px rgba(37, 211, 102, 0.7);
}

.btn-cta-final::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-cta-final:hover::before {
    left: 100%;
}

.cta-trust {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-gray-light);
    font-size: 14px;
    font-weight: 500;
}

.trust-item svg {
    color: var(--color-primary);
}

/* ========================================
   WHATSAPP FLOTANTE
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-black);
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: var(--transition);
    animation: pulseFloat 2s infinite;
}

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

.float-tooltip {
    position: absolute;
    right: 75px;
    background: var(--color-white);
    color: var(--color-black);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.float-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--color-white);
}

.whatsapp-float:hover .float-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   FOOTER
   ======================================== */
.landing-footer {
    background: var(--color-dark);
    padding: 40px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.footer-tagline {
    color: var(--color-gray-light);
    font-size: 13px;
}

.footer-info p {
    color: var(--color-gray-light);
    font-size: 14px;
    margin-bottom: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-gray-light);
    font-size: 13px;
}

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

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
}

@keyframes pulseBtn {
    0%, 100% { box-shadow: 0 0 40px rgba(37, 211, 102, 0.3); }
    50% { box-shadow: 0 0 60px rgba(37, 211, 102, 0.6); }
}

@keyframes pulseFloat {
    0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5), 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-6px); opacity: 1; }
}

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

.message:nth-child(2) { animation-delay: 0.3s; }
.message:nth-child(3) { animation-delay: 0.6s; }
.message:nth-child(4) { animation-delay: 0.9s; }
.message:nth-child(5) { animation-delay: 1.2s; }
.message:nth-child(6) { animation-delay: 1.5s; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-visual { order: -1; }
    
    .hero-features { align-items: center; }
    
    .btn-cta-main {
        margin: 0 auto;
        width: 100%;
        max-width: 400px;
        justify-content: center;
    }
    
    .phone-mockup {
        max-width: 340px;
        transform: none;
    }
    
    .phone-mockup:hover { transform: translateY(-10px); }
}

@media (max-width: 768px) {
    .hero { padding: 100px 0 40px; }
    
    .hide-mobile { display: none; }
    
    .header-cta { padding: 10px 14px; }
    
    .hero-title { font-size: 32px; }
    
    .hero-description { font-size: 15px; }
    
    .btn-cta-main {
        padding: 16px 24px;
        font-size: 14px;
    }
    
    .btn-cta-main span strong { font-size: 16px; }
    .btn-cta-main span small { font-size: 12px; }
    
    .phone-mockup { max-width: 300px; }
    
    .chat-body { min-height: 350px; max-height: 380px; }
    
    .message-bubble { font-size: 12px; }
    
    .servicios-grid { grid-template-columns: 1fr; }
    
    .btn-cta-final {
        padding: 20px 24px;
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .btn-cta-final span { text-align: center; }
    .btn-cta-final span strong { font-size: 18px; }
    
    .cta-trust { gap: 16px; }
    
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float svg { width: 28px; height: 28px; }
    
    .float-tooltip { display: none; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 28px; }
    
    .hero-badge { font-size: 11px; padding: 6px 12px; }
    
    .phone-mockup { max-width: 280px; border-radius: 28px; }
    
    .chat-body { min-height: 320px; padding: 12px 8px; }
    
    .message-bubble { max-width: 85%; font-size: 11px; padding: 6px 8px; }
    
    .chat-avatar { width: 30px; height: 30px; }
    .chat-avatar svg { width: 18px; height: 18px; }
    
    .chat-name { font-size: 12px; }
    .chat-status { font-size: 10px; }
    
    .section-title { font-size: 26px; }
    
    .servicio-card { padding: 24px 20px; }
    
    .cta-title { font-size: 26px; }
    .cta-description { font-size: 15px; }
    
    .footer-content { flex-direction: column; text-align: center; }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}