:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --secondary: #1d4ed8;
    --secondary-hover: #1e40af;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.4);
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #334155;
    --text-light: #94a3b8;
    --gradient-blue: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg);
    color: #333;
    line-height: 1.6;
}

nav {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 5%;
    background: transparent;
    z-index: 1000;
}

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

.logo-img {
    height: 35px;
}

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

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn {
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    box-shadow: none;
    opacity: 0.6;
}

.lang-btn:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    opacity: 1;
}

.lang-btn.active {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.flag-img {
    height: 18px;
    border-radius: 2px;
}

.btn-nav {
    background: var(--secondary);
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.2);
}

.btn-nav:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(29, 78, 216, 0.3);
}

.hero {
    background: linear-gradient(rgba(0, 43, 92, 0.85), rgba(0, 43, 92, 0.85)), url('https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&q=80');
    background-size: cover;
    color: white;
    padding: 80px 5% 60px;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    margin-top: 20px;
}

.btn-primary:hover {
    transform: scale(1.08);
    transition: transform 0.3s ease;
}

.container {
    padding: 25px 10%;
}

.bg-white {
    background: white;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.f-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.feature-list {
    margin-top: 20px;
}

.list-item {
    margin-bottom: 15px;
    padding-left: 20px;
    border-left: 4px solid var(--accent);
}

.comparison {
    background: white;
    padding: 30px 10%;
    text-align: center;
}

.table-container-modern {
    width: 100%;
    overflow-x: auto;
    margin-top: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 600px;
    text-align: left;
}

.table-modern th,
.table-modern td {
    padding: 18px 25px;
    border-bottom: 1px solid #e2e8f0;
}

.table-modern th {
    background: #f8fafc;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.05rem;
}

.table-modern tbody tr:last-child td {
    border-bottom: none;
}

.table-modern tbody tr:hover {
    background: #f8fafc;
}

.highlight-th {
    background: var(--secondary) !important;
    color: white !important;
    border-top-right-radius: 16px;
}

.hl-cell {
    font-weight: 700;
    color: var(--secondary);
    background: rgba(29, 78, 216, 0.05);
    border-left: 2px solid var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.font-weight-bold {
    font-weight: 600;
    color: var(--primary);
}

.pricing h3 {
    margin-top: 25px;
    color: var(--primary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.p-card-modern {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.p-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-blue);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.p-card-modern:hover::before {
    transform: scaleX(1);
}

.p-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.p-card-modern.highlighted-modern {
    border: 2px solid var(--secondary);
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(29, 78, 216, 0.15);
}

.p-card-modern.highlighted-modern:hover {
    transform: scale(1.03) translateY(-8px);
    box-shadow: 0 20px 40px rgba(29, 78, 216, 0.2);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-blue);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.3);
    white-space: nowrap;
}

.p-card-header h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.p-card-body p {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.6;
}

.special-modern {
    background: #f8fafc;
    border: 1px dashed var(--secondary);
}

.special-modern:hover {
    background: white;
    border: 1px solid var(--secondary);
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 40px auto;
    max-width: 1000px;
    flex-wrap: wrap;
}

.step-card {
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    flex: 1;
    min-width: 250px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding-top: 40px;
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15);
}

.step-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-blue);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.step-card:hover::after {
    transform: scaleX(1);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 45px;
    background: var(--gradient-blue);
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.step-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: #f0f7ff;
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.step-card:hover .step-icon {
    background: var(--secondary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.step-title {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.step-desc {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.5;
}

.step-connector {
    color: var(--secondary);
    font-size: 2rem;
    opacity: 0.5;
}

.btn-large {
    font-size: 1.1rem;
    padding: 18px 40px;
}

.glow-effect {
    box-shadow: 0 0 20px var(--accent-glow);
    transition: all 0.3s ease;
}

.glow-effect:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
}

.access-link-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
}

.qr-container {
    text-align: center;
    margin-top: 25px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: inline-block;
    border: 1px solid #e2e8f0;
}

.qr-container img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.qr-container .qr-text {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 600;
}

.qr-float-container {
    position: fixed;
    bottom: 190px;
    right: 30px;
    z-index: 1000;
}

.qr-float {
    background: white;
    color: #000;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
}

.qr-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.qr-float-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 200px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom right;
}

.qr-float-container:hover .qr-float-popup,
.qr-float:focus+.qr-float-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.qr-float-popup img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.qr-float-popup .qr-text {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 600;
}

footer {
    background: var(--secondary);
    border-top: 4px solid var(--primary);
    color: white;
    padding: 45px 10% 40px;
    text-align: center;
}

.footer-title {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 800;
}

.footer-content p {
    color: white;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.contact-link {
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.contact-link:hover {
    color: #e2e8f0;
    text-decoration: underline;
}

.icon-green {
    color: #25d366;
    font-size: 1.5rem;
    margin-right: 10px;
    vertical-align: middle;
    text-shadow: 0 0 8px rgba(37, 211, 102, 0.4);
}

.icon-blue {
    color: var(--secondary);
    font-size: 1.3rem;
    margin-right: 10px;
    vertical-align: middle;
}

.small {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 35px;
    font-weight: 500;
    display: block;
}

/* --- Modern Design Enhancements --- */
.modern-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2.5rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.text-center {
    text-align: center;
    justify-content: center;
}

.icon-blue {
    color: var(--secondary);
}

/* Funciones Principales */
.feature-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 10px;
}

.feature-card-modern {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
}

.feature-card-modern {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--accent);
}

.feature-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.feature-card-modern:hover::before {
    transform: scaleX(1);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-card-modern:hover .icon-wrapper {
    background: var(--secondary);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
}

/* Créditos Section */
.gradient-bg-modern {
    background: var(--gradient-blue);
    position: relative;
    overflow: hidden;
    padding: 80px 10%;
    border-radius: 24px;
    margin: 40px auto;
    max-width: 95%;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

.text-white {
    color: #ffffff !important;
}

.text-light {
    color: var(--text-main);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 800px;
    margin-bottom: 30px;
}

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

.credits-highlight-card {
    background: rgba(29, 78, 216, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 30px;
}

.highlight-icon {
    background: white;
    color: var(--secondary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.highlight-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.highlight-desc {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Seguridad Section */
.bg-light-blue {
    background: #f0f7ff;
    border-radius: 24px;
    max-width: 95%;
    margin: 25px auto;
    padding: 30px 10%;
}

.security-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.security-card-modern {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.security-card-modern:hover {
    transform: translateY(-5px);
}

.sec-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-blue);
    color: white;
    border-radius: 20px;
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.security-card-modern:hover .sec-icon {
    transform: rotate(0deg) scale(1.1);
}

.sec-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.sec-desc {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
}

/* Floating Buttons */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.wa-float:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    color: white;
}

.sys-float {
    position: fixed;
    bottom: 110px;
    right: 30px;
    background: white;
    color: var(--secondary);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(29, 78, 216, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.sys-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 25px rgba(29, 78, 216, 0.4);
    color: white;
}

.sys-float-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: contain;
    background: transparent;
}

@media (max-width: 768px) {
    .wa-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }

    .sys-float {
        width: 55px;
        height: 55px;
        font-size: 24px;
        bottom: 90px;
        right: 20px;
    }

    .qr-float-container {
        bottom: 160px;
        right: 20px;
    }

    .qr-float {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }

    .qr-float-popup {
        bottom: 70px;
    }

    .steps-container {
        flex-direction: column;
    }

    .step-connector {
        display: none;
    }
}