/* Responsive System & Fluid Typography */
:root {
    --primary: #7C3AED;
    --primary-dark: #6D28D9;
    --secondary: #0F172A;
    --accent: #7C3AED;
    --bg-dark: #ffffff;
    --bg-card: #ffffff;
    --bg-light: #F8FAFC;
    --text-main: #0F172A;
    --text-muted: #94A3B8;
    --glass-border: rgba(0, 0, 0, 0.05);
    --border-color: #E2E8F0;
    --border-radius: 12px;

    /* Fluid Spacing & Type */
    --padding-container: clamp(1rem, 5vw, 2rem);
    --font-heading: clamp(2.5rem, 6vw, 3.8rem);
    --font-subheading: clamp(1.6rem, 4vw, 2.5rem);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Nav */
.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem var(--padding-container);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--secondary);
    font-weight: 800;
    font-size: 1.25rem;
}

.logo-img {
    height: 60px;
    width: auto;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.desktop-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

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

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

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.mobile-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 3rem;
    cursor: pointer;
}

/* Typography */
h1 {
    font-size: var(--font-heading);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

h2 {
    font-size: var(--font-subheading);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #A855F7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--padding-container);
}

/* Section Common */
section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: clamp(6rem, 10vh, 10rem) 0;
    background: radial-gradient(circle at top center, rgba(124, 58, 237, 0.05) 0%, transparent 70%);
}

.hero h1 {
    max-width: 900px;
    margin: 0 auto 1.5rem;
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 3rem;
    line-height: 1.5;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero .microcopy {
    display: flex;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Pain Section */
.pain-section {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.pain-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.pain-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
}

.pain-card i {
    color: #EF4444;
    font-size: 1.25rem;
}

.pain-footer {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

/* Features Detailed Section */
.features-detailed {
    background: #ffffff;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: clamp(3rem, 8vw, 6rem);
    margin-bottom: 10rem;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-image {
    flex: 1.3;
    position: relative;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.1);
    border: 1px solid var(--border-color);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.feature-text h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.feature-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1.25rem;
}

.feature-list i {
    color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* How it works */
.how-it-works {
    background-color: white;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 5rem;
}

.step {
    position: relative;
    text-align: center;
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.2);
}

.step p {
    font-weight: 600;
    color: var(--secondary);
    line-height: 1.4;
}

/* Benefits (4 Cards Version) */
.key-benefits {
    background-color: var(--bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: left;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.05);
}

.benefit-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
}

.benefit-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.benefit-card p {
    color: var(--text-muted);
}

/* Comparison Section */
.comparison-section {
    background: white;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.comparison-card {
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.comparison-card.bad {
    background: #FFFAFA;
}

.comparison-card.good {
    background: #F5F3FF;
    border-color: rgba(124, 58, 237, 0.2);
}

.comparison-card h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.comparison-list li {
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-card.bad i {
    color: #EF4444;
}

.comparison-card.good i {
    color: #10B981;
}

/* Pricing Section */
.pricing-section {
    background-color: var(--bg-light);
    text-align: center;
}

.pricing-card {
    max-width: 450px;
    margin: 0 auto;
    padding: 5rem 3rem;
    background: white;
    border-radius: 32px;
    border: 1px solid var(--border-color);
    box-shadow: 0 50px 100px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: "7 DÍAS GRATIS";
    position: absolute;
    top: 30px;
    right: -40px;
    background: var(--primary);
    color: white;
    padding: 0.5rem 4rem;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 900;
}

.price {
    font-size: 5rem;
    font-weight: 950;
    color: var(--secondary);
    margin: 1rem 0;
    letter-spacing: -4px;
}

.price span {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0;
}

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

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

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
}

.faq-answer {
    padding: 0 2rem 1.5rem;
    color: var(--text-muted);
    display: none;
    line-height: 1.6;
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.05);
}

.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* CTA Final */
.cta-final {
    background: var(--secondary);
    color: white;
    text-align: center;
    padding: 10rem 0;
}

.cta-final h2 {
    color: white;
    font-size: clamp(3rem, 8vw, 4.5rem);
    margin-bottom: 2rem;
}

.cta-final p {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
}

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 3rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 100px;
    transition: var(--transition);
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(124, 58, 237, 0.4);
}

/* Calculator Mockup (Keeping current structure but adapting styles) */
.calculator-mockup.full-design {
    display: flex !important;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
    height: 600px;
    margin: 0 auto;
}

.calc-sidebar {
    width: 220px;
    background: #F9FAFB;
    padding: 2.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-right: 1px solid var(--border-color);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
}

.sidebar-item.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.calc-main {
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.calc-header-v2 {
    padding: 2rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.calc-title {
    font-weight: 900 !important;
    font-size: 1.25rem !important;
}

.calc-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.calc-employee-selection {
    margin-bottom: 2rem;
}

.calc-employee-selection label {
    display: block;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.select-box {
    padding: 0.85rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fcfcff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
}

.calc-table-wrapper {
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.calc-table {
    width: 100%;
    border-collapse: collapse;
}

.calc-table th {
    text-align: left;
    padding: 1rem 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--bg-light);
}

.calc-table td {
    padding: 1rem 0.5rem;
    border-bottom: 1px solid var(--bg-light);
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.85rem;
    white-space: nowrap;
}

.calc-table td i {
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-left: 0.25rem;
}

.hours-val {
    color: var(--text-main);
}

.ccss-val {
    color: #EF4444;
}

.net-val {
    color: #10B981;
    font-weight: 800;
}

.calc-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding: 1.5rem 0;
    border-top: 1px solid var(--bg-light);
}

.add-day {
    color: var(--text-main);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
}

.save-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.calc-summary-v2 {
    display: flex;
    justify-content: space-around;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.summary-box {
    text-align: center;
}

.summary-box small {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-weight: 600;
    font-size: 0.75rem;
}

.summary-box .val {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary);
}

.summary-box.primary .val {
    color: #10B981;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-row {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 1, 0.3, 1) forwards;
    opacity: 0;
}

/* Footer */
footer {
    padding: 6rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 992px) {

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        gap: 4rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

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

    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .calculator-mockup.full-design {
        height: auto;
        min-height: auto;
        flex-direction: column;
    }

    .calc-sidebar {
        display: none;
    }

    .calc-header-v2 {
        padding: 1.5rem;
    }

    .calc-content {
        padding: 1.5rem;
    }

    .calc-table th,
    .calc-table td {
        padding: 0.75rem 0.4rem;
        font-size: 0.75rem;
    }

    .calc-summary-v2 {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .summary-box .val {
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero .microcopy {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
    z-index: 9999;
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.cookie-popup.active {
    display: block;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cookie-text h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.cookie-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.cookie-text a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.cookie-btn.accept:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.cookie-btn.decline {
    background: var(--bg-light);
    color: var(--text-muted);
}

.cookie-btn.decline:hover {
    background: #E2E8F0;
}

@media (max-width: 600px) {
    .cookie-popup {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        padding: 1.5rem;
    }
}
/* Marcador Mockup Section */
.marker-mockup {
    background: #F3F4F6;
    border-radius: 24px;
    padding: 2rem;
    max-width: 450px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.marker-phone {
    background: white;
    border-radius: 30px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.marker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.marker-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #F9FAFB;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.camera-preview {
    width: 100%;
    aspect-ratio: 4/3;
    background: #E5E7EB;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 2px solid #E2E8F0;
}

.camera-preview::before {
    content: '\f030';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 3rem;
    color: #9CA3AF;
}

.camera-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px dashed rgba(255,255,255,0.5);
    border-radius: 50%;
}

.selfie-btn {
    width: 100%;
    padding: 1rem;
    border: 1px solid #E2E8F0;
    background: #F9FAFB;
    border-radius: 12px;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.selfie-btn:hover {
    background: #F3F4F6;
}

.marker-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.action-btn {
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.action-btn.entrada {
    background: #10B981;
    color: white;
}

.action-btn.salida {
    background: #FEE2E2;
    color: #EF4444;
}

.gps-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.gps-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@media (max-width: 768px) {
    .marker-mockup {
        margin-top: 3rem;
    }
}
