/* Base Styles */
:root {
    --primary-blue: #3b74e6;
    --dark-blue-bg: #1b2a49;
    --darker-blue-bg: #152033;
    --text-light: #e0e0e0;
    --text-medium: #a0a0a0;
    --accent-green: #28a745;
    --card-bg: rgba(27, 42, 73, 0.9);
    --gradient-start: rgba(30, 40, 70, 0.95);
    --gradient-end: rgba(45, 65, 110, 0.95);
    --border-color-light: rgba(59, 116, 230, 0.3);
    --border-color-dark: rgba(59, 116, 230, 0.5);
    --alert-red: #ff4d4d;

    /* === VARIABLES CORREGIDAS/AÑADIDAS === */
    --brand-blue: var(--primary-blue); /* Reutilizando variable existente */
    --brand-red: var(--alert-red); /* Reutilizando variable existente */
    --dark-bg: var(--darker-blue-bg); /* Reutilizando variable existente */
    --border-color: var(--border-color-light); /* Reutilizando variable existente */
    --surface-bg: var(--card-bg); /* Reutilizando variable existente */
    --text-secondary: var(--text-medium); /* Reutilizando variable existente */
    --primary-red: var(--alert-red); /* Reutilizando variable existente */
    --accent-gold: #FFD700; /* Nuevo valor para el badge "popular" */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--darker-blue-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    /* Global page border */
    border: 5px solid var(--border-color-dark);
    /* A subtle border around the entire page */
    border-top: none;
    /* Remove top border if header handles it */
    border-bottom: none;
    /* Remove bottom border if footer handles it */
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #5d8eff;
}

section {
    padding: 80px 5%;
    text-align: center;
    position: relative;
    z-index: 1;
    /* Base z-index for section */
    /* Section borders */
    border-top: 1px solid var(--border-color-light);
    /* Subtle line between sections */
    border-bottom: 1px solid var(--border-color-light);

    /* Background image and animations for sections */
    background-image: url('img/imgheader.png'),
        linear-gradient(135deg, var(--darker-blue-bg) 0%, var(--dark-blue-bg) 100%);
    /* Layer image on top of gradient */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    /* Blend the image with the gradient */
    overflow: hidden;
    /* Ensure pseudo-elements are contained */
}

.footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: linear-gradient(to right, #003366, #005599);
    color: #fff;
}


/* Pseudo-elements for sections */
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at center, rgba(59, 116, 230, 0.1) 0%, transparent 70%);
    animation: pulse 4s infinite ease-out;
    z-index: 0;
    /* Background layer */
}

section::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: repeating-linear-gradient(45deg,
            rgba(59, 116, 230, 0.05),
            rgba(59, 116, 230, 0.05) 5px,
            transparent 5px,
            transparent 10px);
    animation: rotateRadar 60s linear infinite;
    z-index: 0;
    /* Background layer */
}


section:first-of-type {
    border-top: none;
    /* No top border for the first section after header */
}

section:last-of-type {
    border-bottom: none;
    /* No bottom border for the last section before footer */
}

h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    /* Ensure headings are above background animations */
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-blue);
    margin: 15px auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    z-index: 2;
    /* Ensure headings are above background animations */
}

p {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 800px;
    margin: 0 auto 20px auto;
    position: relative;
    z-index: 2;
    /* Ensure paragraphs are above background animations */
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 116, 230, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(59, 116, 230, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 116, 230, 0);
    }
}

@keyframes rotateRadar {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes borderGlow {
    0% {
        border-color: var(--border-color-light);
    }

    50% {
        border-color: var(--primary-blue);
    }

    100% {
        border-color: var(--border-color-light);
    }
}

/* Header */
.main-header {
    /* Background image only, no gradient blend */
    background-image: url('img/imgheader.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding: 100px 5% 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
    text-align: center;
    border-bottom: 5px solid var(--primary-blue);
    /* Stronger border for header base */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    /* Shadow for depth */
}


/* PER LOG  */

.auth-buttons {
    position: absolute;
    top: 30px;
    right: 40px;
    display: flex;
    gap: 20px;
    z-index: 99;
    pointer-events: auto;
}

.btn-gradient {
    background: linear-gradient(135deg, #152033, #8f2d2d);
    color: white;
    padding: 12px 26px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 6px rgba(255, 255, 255, 0.06),
        0 4px 12px rgba(21, 32, 51, 0.4);
    transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: saturate(170%) brightness(105%);
}

.btn-gradient:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #1b2a49, #a33c3c);
    box-shadow: 0 6px 18px rgba(21, 32, 51, 0.5);
}

.animated-entry {
    animation: fadeIn 1s ease-out 0.8s forwards;
    opacity: 0;
}


/* PARA DEMO*/
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: linear-gradient(135deg, #1b2a49, #283347);
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.modal-content h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    text-align: center;
    color: #ff5252;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.modal-content input::placeholder,
.modal-content textarea::placeholder {
    color: #bbb;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.btn-cancel {
    background-color: transparent;
    color: #fff;
    border: 1px solid #888;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at center, rgba(59, 116, 230, 0.1) 0%, transparent 70%);
    animation: pulse 4s infinite ease-out;
    z-index: 0;
}

.android-badge {
    position: absolute;
    top: 30px;
    left: 40px;
    background: linear-gradient(135deg, #25b55f, #128c47);
    color: #fff;
    padding: 8px 16px;
    border-radius: 18px;
    font-size: 0.85rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 2px solid #ffffff55;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    cursor: default;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 100;
}

.android-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}



.main-header::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: repeating-linear-gradient(45deg,
            rgba(59, 116, 230, 0.05),
            rgba(59, 116, 230, 0.05) 5px,
            transparent 5px,
            transparent 10px);
    animation: rotateRadar 60s linear infinite;
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 2;
    /* Increased z-index for header content */
    max-width: 900px;
    animation: fadeIn 1s ease-out forwards;
}

.header-logo {
    width: 180px;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

.header-content h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.8rem;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
}

.header-content p {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 40px;
    font-weight: 300;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: inline-block;
    position: relative;
    /* Ensure button is in its own stacking context */
    z-index: 3;
    /* Ensure buttons are above all background elements */
}

.btn-primary:hover {
    background-color: #5d8eff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 116, 230, 0.4);
}

/* Quiénes somos */
#quienes-somos {
    background-color: var(--dark-blue-bg);
    /* Keep base background color for contrast */
}

.quienes-somos-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    position: relative;
    /* Add position and z-index */
    z-index: 2;
}

.quienes-somos-text {
    flex: 1;
    min-width: 300px;
    animation: fadeIn 1s ease-out forwards;
}

.quienes-somos-text h2 {
    text-align: left;
    margin-bottom: 20px;
}

.quienes-somos-text h2::after {
    margin: 15px 0 0 0;
    /* Align underline to left */
}

.quienes-somos-text p {
    text-align: left;
    margin-bottom: 25px;
}

.quienes-somos-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1s ease-out forwards 0.2s;
    border: 3px solid var(--primary-blue);
    /* Image border */
    position: relative;
    /* Ensure image is in its own stacking context */
    z-index: 2;
}

.quienes-somos-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Qué ofrecemos */
#que-ofrecemos {
    background-color: var(--darker-blue-bg);
    /* Keep base background color for contrast */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    /* Add position and z-index */
    z-index: 2;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-color-light);
    /* Initial border */
    position: relative;
    /* Ensure card is in its own stacking context */
    z-index: 2;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
    border-color: var(--primary-blue);
    /* Highlight border on hover */
}

/* Specific border for alert-related card */
.feature-card:first-child {
    /* Assuming "Botón de emergencia" is the first card */
    border: 2px solid var(--alert-red);
    /* Stronger red border for alerts */
    animation: borderGlow 3s infinite ease-in-out;
    /* Pulsing red border */
}

.feature-card:first-child:hover {
    border-color: var(--alert-red);
    /* Keep red on hover */
}


.feature-card .icon {
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(59, 116, 230, 0.5);
}

/* Make alert icon red */
.feature-card:first-child .icon {
    color: var(--alert-red);
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
}


.feature-card h3 {
    color: #ffffff;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 0;
}

.feature-card .app-screenshot {
    width: 100%;
    max-width: 200px;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--primary-blue);
    /* Border for screenshots */
}

/* Red border for alert screenshot */
.feature-card:first-child .app-screenshot {
    border-color: var(--alert-red);
}



/* Por qué elegirnos */
#por-que-elegirnos {
    background-color: var(--dark-blue-bg);
    /* Keep base background color for contrast */
}

.comparison-block {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(45deg, rgba(30, 40, 70, 0.8), rgba(45, 65, 110, 0.8));
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-blue);
    /* Border for comparison block */
    position: relative;
    /* Add position and z-index */
    z-index: 2;
}

.comparison-item {
    flex: 1;
    min-width: 280px;
    text-align: left;
    padding: 20px;
    background-color: rgba(27, 42, 73, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(59, 116, 230, 0.3);
    position: relative;
    /* Ensure item is in its own stacking context */
    z-index: 2;
}

.comparison-item h4 {
    font-size: 1.4rem;
    color: var(--accent-green);
    margin-bottom: 15px;
    font-weight: 600;
}

.comparison-item ul {
    list-style: none;
    padding: 0;
}

.comparison-item ul li {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    position: relative;
    /* Ensure list items are in their own stacking context */
    z-index: 2;
}

.comparison-item ul li::before {
    content: '✅';
    margin-right: 10px;
    color: var(--accent-green);
    font-size: 1.1rem;
}

.comparison-item.traditional ul li::before {
    content: '❌';
    color: var(--alert-red);
}

/* Planes empresariales */
#planes-empresariales {
    background-color: var(--darker-blue-bg);
    /* Keep base background color for contrast */
}

.plan-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    /* Add position and z-index */
    z-index: 2;
}

.plan-card-mini {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--border-color-light);
    /* Initial border */
    position: relative;
    /* Ensure card is in its own stacking context */
    z-index: 2;
}

.plan-card-mini:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    border-color: var(--primary-blue);
    /* Highlight border on hover */
}

.plan-card-mini .icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.plan-card-mini h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.plan-card-mini p {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 20px;
}

.plan-card-mini .price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-green);
    margin-bottom: 20px;
}

/* Testimonios */
#testimonios {
    background-color: var(--dark-blue-bg);
    /* Keep base background color for contrast */
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    /* Add position and z-index */
    z-index: 2;
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(30, 40, 70, 0.9), rgba(45, 65, 110, 0.9));
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
    position: relative;
    /* Ensure card is in its own stacking context */
    z-index: 2;
}

.testimonial-card:hover {
    border-color: var(--primary-blue);
    /* Highlight border on hover */
}


.testimonial-card .quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-card .author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-blue);
}

.testimonial-card .author-info strong {
    display: block;
    font-size: 1.1rem;
    color: #ffffff;
}

.testimonial-card .author-info span {
    font-size: 0.9rem;
    color: var(--text-medium);
}

/* Contacto / CTA Final */
#contacto {
    background-color: var(--darker-blue-bg);
    /* Keep base background color for contrast */
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    /* Add position and z-index */
    z-index: 2;
}

.contact-content .btn-primary {
    margin-top: 30px;
}

/* Footer */
footer {
    background-color: #0d1522;
    padding: 30px 5%;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-medium);
    border-top: 5px solid var(--primary-blue);
    /* Stronger border for footer top */
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    /* Shadow for depth */
}

footer p {
    margin: 5px 0;
}

/* Media Queries */
@media (max-width: 900px) {
    .main-header h1 {
        font-size: 3rem;
    }

    .main-header p {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .quienes-somos-content {
        flex-direction: column;
        text-align: center;
    }

    .quienes-somos-text h2,
    .quienes-somos-text p {
        text-align: center;
    }

    .quienes-somos-text h2::after {
        margin: 15px auto 0;
        /* Center underline for mobile */
    }

    .comparison-block {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    body {
        border: 3px solid var(--border-color-dark);
        /* Thinner border on small screens */
    }

    .main-header {
        padding: 80px 5% 60px;
        border-bottom: 3px solid var(--primary-blue);
    }

    .main-header h1 {
        font-size: 2.5rem;
    }

    .main-header p {
        font-size: 1rem;
    }

    .header-logo {
        width: 150px;
    }

    /* ======================================================= */
    /* ====== ESTILOS ADICIONALES PARA PLANES PERSONALES ===== */
    /* ======================================================= */

    /* --- Contenedor de Botones en Header --- */
    .cta-container {
        display: flex;
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 30px;
    }

    .btn-primary.btn-secondary {
        background-color: transparent;
        border: 2px solid var(--primary-blue);
        color: var(--primary-blue);
        box-shadow: none;
    }

    .btn-primary.btn-secondary:hover {
        background-color: var(--primary-blue);
        color: white;
    }

    /* --- Estilos del Modal de Planes --- */
    .modal-planes-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(13, 17, 23, 0.8);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10000;
        opacity: 0;
        animation: fadeInModal 0.3s forwards;
    }

    @keyframes fadeInModal {
        to {
            opacity: 1;
        }
    }

    .modal-planes-content {
        background-color: var(--darker-blue-bg);
        border-radius: 20px;
        padding: 40px;
        width: 95%;
        max-width: 1100px;
        max-height: 90vh;
        overflow-y: auto;
        border: 1px solid var(--border-color-dark);
        box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
        position: relative;
        text-align: center;
        transform: scale(0.95);
        animation: scaleInModal 0.3s forwards cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    @keyframes scaleInModal {
        to {
            transform: scale(1);
        }
    }

    .modal-close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        background: var(--surface-bg);
        border: 1px solid var(--border-color);
        color: var(--text-secondary);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }

    .modal-close-btn:hover {
        background-color: var(--primary-red);
        color: white;
        transform: rotate(90deg);
    }

    .modal-planes-content h2 {
        font-size: 2.5rem;
    }

    .modal-planes-content p {
        color: var(--text-secondary);
        max-width: 600px;
        margin: 10px auto 30px;
    }

    .personal-plans-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    /* --- Estilos para las nuevas tarjetas personales --- */
    .plan-card-personal {
        background-color: var(--surface-bg);
        border-radius: 20px;
        padding: 30px;
        width: 320px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
        border-top: 4px solid;
        display: flex;
        flex-direction: column;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .plan-card-personal:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    }

    .plan-avanzado {
        border-color: var(--primary-blue);
    }

    .plan-tactico {
        border-color: var(--primary-red);
    }

    .plan-familiar {
        border-color: #64B5F6;
    }

    .plan-card-personal.popular {
        transform: scale(1.05);
        border: 2px solid var(--accent-gold);
    }

    .plan-card-personal.popular:hover {
        transform: scale(1.08) translateY(-8px);
    }

    .popular-badge {
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--dark-bg);
        background-color: var(--accent-gold);
        padding: 5px 15px;
        border-radius: 20px;
        margin: -50px auto 20px;
        display: inline-block;
    }

    .plan-card-personal h3 {
        font-size: 1.6rem;
        margin-top: 0;
    }

    .plan-card-personal .price {
        font-size: 2.8rem;
        font-weight: 900;
        margin: 10px 0;
    }

    .plan-card-personal .price span {
        font-size: 1rem;
        font-weight: 400;
        color: var(--text-secondary);
    }

    .plan-card-personal .description {
        min-height: 40px;
        font-size: 0.95rem;
    }

    .plan-card-personal ul {
        list-style: none;
        padding: 0;
        margin: 20px 0;
        text-align: left;
        flex-grow: 1;
        font-size: 0.9rem;
    }

    .plan-card-personal ul li {
        margin-bottom: 10px;
    }

    .plan-card-personal ul li::before {
        content: '✔';
        color: var(--accent-green);
        margin-right: 8px;
    }

    .paypal-wrapper {
        margin-top: auto;
        padding-top: 15px;
    }
    
    .btn-primary {
        padding: 12px 25px;
        font-size: 1rem;
    }

    section {
        padding: 60px 5%;
        border-top: 0.5px solid var(--border-color-light);
        border-bottom: 0.5px solid var(--border-color-light);
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    h3 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
    }

    .feature-card .icon {
        font-size: 3rem;
    }

    .plan-card-mini {
        width: 100%;
        max-width: 350px;
    }

    footer {
        border-top: 3px solid var(--primary-blue);
    }
}

 /* --- INICIO: NUEVOS ESTILOS PARA LA SECCIÓN DE CASOS DE USO --- */
        #casos-de-uso {
            padding: 100px 20px;
            background-color: var(--dark-bg); /* Mantiene consistencia */
            text-align: center;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        #casos-de-uso h2 {
            font-family: 'Orbitron', sans-serif;
            font-size: 2.5rem;
            margin-bottom: 20px;
            color: #fff;
            text-shadow: 0 0 10px var(--brand-blue);
        }

        #casos-de-uso>p {
            max-width: 800px;
            margin: 0 auto 50px auto;
            color: var(--text-medium);
            font-size: 1.2rem;
            line-height: 1.7;
        }

       .use-case-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
    position: relative;
    z-index: 10; /* Asegura que los botones estén por encima de los pseudo-elementos */
}

.tab-btn {
    background-color: var(--card-bg);
    color: var(--text-medium);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.2));
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto !important; /* Garantiza que los botones sean clicables */
}

        .tab-btn:hover {
            background-color: var(--brand-blue);
            color: #fff;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(33, 118, 255, 0.3);
        }

        .tab-btn.active {
            background: linear-gradient(135deg, var(--brand-blue), var(--brand-red));
            color: #fff;
            border-color: transparent;
            box-shadow: 0 8px 25px rgba(217, 33, 33, 0.4);
            transform: translateY(-3px);
        }

        .use-case-content-container {
            max-width: 1100px;
            margin: 0 auto;
            background-color: var(--card-bg);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .use-case-content {
            display: none; /* Oculto por defecto */
            animation: fadeInContent 0.6s ease-out;
        }
        
        .use-case-content.active {
            display: block; /* Mostrado por JS */
        }
        
        .use-case-card {
            display: flex;
            align-items: center;
            text-align: left;
        }

        .use-case-image {
            flex: 0 0 45%;
            overflow: hidden;
        }
        
        .use-case-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease;
        }

        .use-case-card:hover .use-case-image img {
            transform: scale(1.05);
        }

        .use-case-text {
            flex: 1;
            padding: 40px;
        }
        
        .use-case-text h3 {
            font-family: 'Orbitron', sans-serif;
            font-size: 1.8rem;
            color: var(--brand-blue);
            margin-bottom: 15px;
        }

        .use-case-text p {
            color: var(--text-medium);
            font-size: 1.05rem;
            line-height: 1.8;
        }

        @keyframes fadeInContent {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @media (max-width: 900px) {
            .use-case-card {
                flex-direction: column;
            }
            .use-case-image {
                width: 100%;
                flex: 0 0 250px; /* Altura fija para la imagen en móvil */
            }
        }
        /* --- FIN: NUEVOS ESTILOS --- */
