@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-color: #0f172a;
    /* Dark Blue/Grey SaaS background */
    --surface-color: #1e293b;
    --surface-border: rgba(255, 255, 255, 0.05);
    --primary: #6366f1;
    /* Indigo Accent */
    --primary-hover: #4f46e5;
    --text-main: #f8fafc;
    /* Matte White */
    --text-secondary: #94a3b8;
    /* Soft Grey */
    --text-dim: #64748b;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    user-select: none;
    /* Previene la selección de texto */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Base Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
    /* Reducido para acercar secciones */
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2.5rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

nav.scrolled {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--surface-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 22rem;
    /* Restaurado a 22rem para bajar el título */
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.4) 0%,
            var(--bg-color) 100%);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto 1rem auto;
    /* Reducido ya que no hay párrafo */
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.hero-image-container {
    width: 100%;
    max-width: 1000px;
    margin: 6rem auto 0 auto;
    /* Restaurado para bajar el mockup */
    position: relative;
    padding: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    border-radius: 20px;
    border: 1px solid var(--surface-border);
}

.hero-image-container img {
    width: 100%;
    border-radius: 12px;
    display: block;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--surface-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
}

.btn-premium {
    background-color: #fbbf24;
    color: #0f172a;
}

.btn-premium:hover {
    background-color: #f59e0b;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -10px rgba(251, 191, 36, 0.5);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.feature-card {
    background: #1e293b;
    /* Lighter than background */
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.feature-image-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0a0f1a;
    /* Fondo más oscuro para resaltar capturas */
    overflow: hidden;
    border-bottom: 1px solid var(--surface-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Cambio de cover a contain para capturas de celular */
    padding: 1rem;
    /* Espacio para que no toque los bordes */
    opacity: 0.9;
    transition: var(--transition);
}

.feature-card:hover .feature-image-container img {
    opacity: 1;
    transform: scale(1.05);
}

.feature-content-card {
    padding: 2.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Pricing Section */
.main-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    align-items: center;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    position: relative;
    padding: 3.5rem 2rem 3rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    height: 100%;
}

.pricing-card.popular {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-10px);
    z-index: 10;
    box-shadow: 0 20px 40px -20px rgba(99, 102, 241, 0.3);
}

.pricing-card.premium {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.05);
    z-index: 11;
    box-shadow: 0 30px 60px -15px rgba(251, 191, 36, 0.2);
}

.pricing-card.featured {
    transform: scale(1.05);
    border-width: 2px;
}

.glow {
    position: relative;
    overflow: hidden;
}

.glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.pricing-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card.premium .pricing-badge {
    background: #fbbf24;
    color: #0f172a;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.25rem;
    font-weight: 800;
    margin: 1.5rem 0;
    color: var(--text-main);
}

.pricing-price span {
    font-size: 0.9rem;
    color: var(--text-dim);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
    text-align: left;
}

.pricing-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.pricing-features li i {
    color: var(--primary);
    font-size: 0.875rem;
}

/* Footer */
footer {
    padding: 6rem 0;
    border-top: 1px solid var(--surface-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4rem;
}

.footer-brand p {
    margin-top: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-dim);
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
}

/* Free Tier Section */
.pricing-free-tier {
    margin-top: 4rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 2rem 3rem;
}

.free-tier-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.free-tier-text h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.free-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 2rem;
    margin-bottom: 0 !important;
}

.free-list li {
    font-size: 0.9rem;
    margin-bottom: 0 !important;
    white-space: nowrap;
}

.free-tier-action {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.free-tier-action .pricing-price {
    margin: 0;
    font-size: 1.75rem;
}

/* Responsive */
@media (max-width: 992px) {
    .main-plans {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .pricing-card.featured {
        transform: none;
        order: -1;
        /* Vitalicia arriba en móvil */
    }

    .free-tier-content {
        flex-direction: column;
        text-align: center;
    }

    .free-list {
        grid-template-columns: 1fr;
        text-align: left;
        display: inline-grid;
    }
}

@media (max-width: 868px) {
    section {
        padding: 6rem 0;
    }

    .hero {
        padding-top: 10rem;
    }

    .pricing-card.popular {
        transform: none;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    cursor: default;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.zoom-cursor {
    cursor: zoom-in;
}