/* ==========================================================================
   Variables & General Styles
   ========================================================================== */
:root {
    --navy: #0A1628;
    --navy-dark: #050B14;
    --blue-primary: #1565C0;
    --blue-light: #1A237E;
    --orange-accent: #FF6F00;
    --orange-light: #FF8F00;
    --green-success: #2E7D32;
    --text-main: #FFFFFF;
    --text-secondary: #90CAF9;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    
    --font-display: 'Bebas Neue', cursive;
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--navy);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

canvas#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem 0;
}

h1 {
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 0.9;
    letter-spacing: 2px;
}

h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-main);
}

h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
}

p {
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
}

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

.text-center { text-align: center; }
.section { padding: 100px 0; }
.dark-bg { background-color: var(--navy-dark); }
.section-header { margin-bottom: 60px; }
.subtitle { font-size: 1.2rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }
.subtitle-large { font-size: 1.4rem; color: var(--text-main); margin-bottom: 30px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary, .btn-large, .btn-outline {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--orange-accent);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: var(--orange-light);
    box-shadow: 0 0 15px rgba(255, 111, 0, 0.4);
    transform: translateY(-2px);
}

.btn-large {
    background-color: var(--orange-accent);
    color: #fff;
    font-size: 1.3rem;
    padding: 16px 32px;
    border-radius: 12px;
}

.btn-large:hover {
    background-color: var(--orange-light);
    box-shadow: 0 0 20px rgba(255, 111, 0, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-secondary);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

.btn-link {
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    margin-left: 20px;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.btn-link:hover {
    color: var(--orange-light);
}

.block { display: block; width: 100%; box-sizing: border-box;}

.pulse-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 111, 0, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(255, 111, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 111, 0, 0); }
}

/* ==========================================================================
   Navbar
   ========================================================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background-color: var(--navy);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo span {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text-main);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a:not(.btn-primary) {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--orange-accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--text-main);
    transition: 0.3s;
}

.mobile-menu {
    display: none;
    background-color: var(--navy-dark);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.mobile-menu.active {
    display: flex;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: radial-gradient(circle at center, var(--blue-light) 0%, var(--navy) 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Reusing hero content classes to center without grid for simplicity or use absolute flex */
.hero-content {
    max-width: 600px;
    padding-left: max(20px, calc((100vw - 1200px) / 2));
    z-index: 2;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.accent {
    color: var(--orange-accent);
}

.hero-actions {
    display: flex;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 50px;
}

.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.stat-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-mockup {
    position: absolute;
    right: max(20px, calc((100vw - 1200px) / 2));
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    z-index: 2;
}

.phone-frame {
    width: 100%;
    height: 600px;
    background-color: #111;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 0 2px #333;
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background-color: #111;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--navy);
    border-radius: 30px;
    overflow: hidden;
    padding: 40px 15px 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.mockup-alert {
    background: rgba(255, 111, 0, 0.15);
    border-left: 4px solid var(--orange-accent);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-text strong { display: block; font-family: var(--font-heading); font-size: 1.1rem; }
.alert-text span { font-size: 0.85rem; color: var(--text-secondary); }

.mockup-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid var(--card-border);
}

.card-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; margin-bottom: 5px; }
.card-info { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 10px; }
.card-status { font-size: 0.85rem; font-weight: 700; padding: 4px 8px; border-radius: 4px; display: inline-block; }
.status-ok { background: rgba(46, 125, 50, 0.2); color: #81C784; }
.status-warning { background: rgba(255, 111, 0, 0.2); color: #FFB74D; }

/* ==========================================================================
   Grids & Cards
   ========================================================================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.card, .glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: left;
    transition: all 0.3s ease;
}

.glass-card {
    backdrop-filter: blur(10px);
}

.card:hover, .glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--orange-accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* ==========================================================================
   Leyes Table
   ========================================================================== */
.table-container {
    overflow-x: auto;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    padding: 20px;
    margin-bottom: 20px;
}

.law-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.law-table th, .law-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.law-table th {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.law-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.badge {
    background: var(--blue-primary);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-right: 2px;
}

.law-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.law-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: underline;
}

/* ==========================================================================
   Pasos (How it works)
   ========================================================================== */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 30px;
    border-radius: 16px;
    align-items: center;
}

.step-number {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--orange-accent);
    line-height: 1;
    min-width: 60px;
    text-align: center;
}

/* ==========================================================================
   Pricing
   ========================================================================== */
.price-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.price-card.pro {
    border-color: var(--blue-primary);
    background: linear-gradient(180deg, rgba(21, 101, 192, 0.1) 0%, rgba(255,255,255,0.05) 100%);
}

.badge-recommended {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.price-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
}

.price {
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 1;
    margin: 10px 0;
}

.price span {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-secondary);
}

.price-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1;
}

.price-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-features .disabled {
    color: rgba(255,255,255,0.3);
}

.check { color: var(--green-success); font-weight: bold; }
.cross { color: #F44336; font-weight: bold; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 30px;
    position: relative;
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    font-family: var(--font-heading);
    color: var(--orange-light);
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, #1a1005 100%);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--orange-accent), transparent);
}

.cta-actions {
    margin-top: 40px;
}

.note {
    font-size: 0.85rem;
    margin-top: 15px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--navy-dark);
    padding: 60px 0 20px;
    border-top: 1px solid var(--card-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--orange-accent);
}

.footer-contact p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

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

/* ==========================================================================
   Animations & Utilitites
   ========================================================================== */
.fade-in-up {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

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

.observe-me {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.observe-me.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-mockup { display: none; }
    .hero-content {
        max-width: 100%;
        padding: 0 20px;
        text-align: center;
    }
    .stats-row { justify-content: center; }
    .hero-actions { justify-content: center; flex-direction: column; gap: 20px; }
    .btn-link { margin-left: 0; }
    h1 { font-size: 4rem; }
}

@media (max-width: 768px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand .logo { justify-content: center; }
    .step { flex-direction: column; text-align: center; }
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.2rem; }
}

/* Legal Pages Specific */
.legal-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    margin-top: 40px;
}
.legal-content h2 { font-size: 1.8rem; margin-top: 30px; border-bottom: 1px solid var(--card-border); padding-bottom: 10px; }
.legal-content h3 { font-size: 1.3rem; margin-top: 20px; color: var(--text-main); }
.legal-content p, .legal-content li { color: var(--text-secondary); margin-bottom: 15px; }
.legal-content ul { padding-left: 20px; margin-bottom: 20px; }
