/* Variables */
:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --secondary: #7C3AED;
    --dark: #1E293B;
    --dark-light: #334155;
    --accent: #06B6D4;
    --light: #F8FAFC;
    --gray: #64748B;
    --gray-light: #E2E8F0;
    --success: #10B981;
    --whatsapp: #25D366;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --radius-sm: 8px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--dark);
    border: 2px solid var(--gray-light);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-nav {
    padding: 8px 20px;
    background: var(--primary);
    color: white;
}

.btn-nav:hover {
    background: var(--primary-dark);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: white;
    padding: 16px 24px;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.btn-whatsapp svg {
    width: 24px;
    height: 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--gray-light);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    text-decoration: none;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: all 0.3s;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    overflow: hidden;
}

/* Video de fondo */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-header {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 24px;
}

.hero-text {
    flex: 1;
}

.hero-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: var(--gradient);
    border-radius: 50%;
    color: white;
    text-align: center;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    flex-shrink: 0;
}

.hero-badge-text {
    display: flex;
    flex-direction: column;
    transform: rotate(-15deg);
}

.hero-badge-text span {
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-badge-text strong {
    font-size: 1.1rem;
    font-weight: 700;
}

.hero-badge.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 8px 30px rgba(37, 99, 235, 0.6);
    }
}

.hero h1 {
    margin-bottom: 16px;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.hero-trust strong {
    color: var(--primary);
    font-size: 1.1rem;
}

.hero-trust .separator {
    color: var(--gray-light);
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.05;
    border-radius: 0 0 0 50%;
}

/* Sections */
section {
    padding: 96px 0;
}

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

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-top: 12px;
}

/* Servicios */
.servicios {
    background: white;
}

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

.servicio-card {
    background: var(--light);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-light);
    transition: all 0.3s ease;
    position: relative;
}

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

.servicio-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.servicio-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.servicio-card h3 {
    margin-bottom: 12px;
}

.servicio-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

.servicio-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Precios */
.precios {
    background: var(--dark);
    color: white;
}

.precios .section-header p {
    color: var(--gray);
}

.precio-destacado {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    color: var(--dark);
    padding: 48px;
    border-radius: var(--radius);
    text-align: center;
    position: relative;
}

.precio-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
}

.precio-desde {
    margin-bottom: 32px;
}

.precio-desde .desde {
    display: block;
    color: var(--gray);
    font-size: 0.9rem;
}

.precio-desde .cantidad {
    font-size: 4rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.precio-desde .periodo {
    font-size: 1.25rem;
    color: var(--gray);
}

.precio-incluye {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
}

.precio-incluye li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-light);
}

.precio-incluye svg {
    width: 20px;
    height: 20px;
    color: var(--success);
    flex-shrink: 0;
}

.precio-nota {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* Casos de Éxito */
.casos {
    background: var(--light);
}

.casos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.caso-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-light);
}

.caso-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.caso-logo {
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.caso-logo-img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.caso-info h3 {
    margin-bottom: 4px;
}

.caso-info span {
    color: var(--gray);
    font-size: 0.9rem;
}

.caso-card blockquote {
    font-style: italic;
    color: var(--dark-light);
    margin-bottom: 20px;
    padding-left: 16px;
    border-left: 3px solid var(--primary);
}

.caso-servicios {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.caso-servicios span {
    background: var(--light);
    color: var(--gray);
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
}

.caso-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.caso-link:hover {
    text-decoration: underline;
}

/* FAQ */
.faq {
    background: white;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--gray-light);
}

.faq-item summary {
    padding: 20px 0;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding-bottom: 20px;
    color: var(--gray);
}

/* Contacto */
.contacto {
    background: var(--light);
}

.contacto-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 64px;
    align-items: start;
    max-width: 900px;
    margin: 0 auto;
}

.contacto-form {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
}

.contacto-directo {
    text-align: center;
}

.contacto-directo p {
    color: var(--gray);
    margin-bottom: 16px;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--dark-light);
    margin-bottom: 24px;
}

.footer-brand p {
    color: var(--gray);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-admin {
    color: var(--dark-light);
    font-size: 0.75rem;
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.footer-admin:hover {
    opacity: 1;
}

.blackcycle-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.blackcycle-link:hover {
    color: white;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 999;
    animation: float-gentle 4s ease-in-out infinite;
}

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

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    animation-play-state: paused;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--gray-light);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .contacto-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .casos-grid {
        grid-template-columns: 1fr;
    }
}
