/* ========================= */
/* Buttons / Links */
/* ========================= */

a.primary-link,
a.secondary-link,
a.card-button,
a.danger-button,
button,
button.primary-link,
button.secondary-link,
button.card-button,
button.danger-button,
button.disabled-button,
a.disabled-button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border-radius: var(--radius-md);
    padding: 13px 18px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 1rem;
}

button {
    margin-top: 8px;
}

.btn {
    margin-top: 0;
    white-space: nowrap;
}

a.primary-link,
button.primary-link,
a.card-button,
button.card-button,
/* :where() deja la especificidad en 0: cualquier botón con su propia clase manda sobre este estilo por defecto */
:where(button:not(.danger-button):not(.disabled-button):not(.secondary-link):not(.btn-danger):not(.btn-secondary)),
.btn-primary {
    background: var(--accent);
    color: var(--on-accent);
    border-color: transparent;
    box-shadow: none;
}

a.primary-link:hover,
button.primary-link:hover,
a.card-button:hover,
button.card-button:hover,
:where(button:not(.danger-button):not(.disabled-button):not(.secondary-link):not(.btn-danger):not(.btn-secondary)):hover,
.btn-primary:hover {
    background: var(--accent-strong);
    box-shadow: none;
}

a.secondary-link,
button.secondary-link,
.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}

a.secondary-link:hover,
button.secondary-link:hover,
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--muted-dark);
}

a.danger-button,
button.danger-button,
.danger-button,
.btn-danger {
    background: rgba(239, 68, 68, 0.14);
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: none;
}

a.danger-button:hover,
button.danger-button:hover,
.danger-button:hover,
.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    box-shadow: none;
    transform: translateY(-1px);
}

a.disabled-button,
button.disabled-button,
.disabled-button {
    background: rgba(148, 163, 184, 0.14);
    color: var(--muted);
    border: 1px solid rgba(148, 163, 184, 0.24);
    cursor: default;
    pointer-events: none;
    width: 100%;
    opacity: 0.75;
}

.locked-button {
    background: rgba(148, 163, 184, 0.18) !important;
    color: var(--muted) !important;
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
    box-shadow: none !important;
}

.locked-button:hover {
    background: rgba(148, 163, 184, 0.24) !important;
}

.plan-button {
    width: 100%;
    margin-top: 8px;
}

a.card-button:visited,
a.primary-link:visited,
.btn-primary:visited {
    color: var(--on-accent);
}

a.secondary-link:visited,
a.danger-button:visited {
    color: inherit;
}

/* ========================= */
/* Forms / Alerts */
/* ========================= */

.program-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

label {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.9rem;
}

input {
    width: 100%;
    border: 1px solid var(--border);
    background: rgba(2, 6, 23, 0.55);
    color: var(--text);
    padding: 15px 16px;
    border-radius: var(--radius-lg);
    outline: none;
    font-size: 1rem;
}

input:focus {
    border-color: rgba(75, 159, 225, 0.85);
    box-shadow: 0 0 0 4px rgba(75, 159, 225, 0.12);
}

.form-alert,
.alert {
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 18px;
    border: 1px solid var(--border);
}

.form-alert,
.alert-error {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fecaca;
}

.alert-success {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
}

.alert-info {
    background: rgba(75, 159, 225, 0.14);
    border-color: rgba(75, 159, 225, 0.35);
    color: #bae6fd;
}

.flash-container {
    display: grid;
    gap: 12px;
    margin: 16px 0 28px;
}

.flash-message {
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    font-weight: 800;
    line-height: 1.5;
    border: 1px solid var(--border);
    word-break: break-word;
}

.flash-success {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
}

.flash-error {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fecaca;
}

.flash-info {
    background: rgba(75, 159, 225, 0.14);
    border-color: rgba(75, 159, 225, 0.35);
    color: #bae6fd;
}

/* ========================= */
/* Shared Cards / Lists */
/* ========================= */

.hero-card,
.feature-card,
.security-item,
.stat-card {
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 28px;
    max-width: 520px;
    justify-self: end;
}

.hero-card h2 {
    font-size: 2rem;
    margin: 10px 0 24px;
    letter-spacing: -0.025em;
}

.product-summary {
    position: relative;
    overflow: visible;
}

.product-summary::before {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: 10px;
    top: 10px;
    background: rgba(75, 159, 225, 0.14);
    border-radius: 999px;
    filter: blur(18px);
    pointer-events: none;
    z-index: 0;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.mini-grid div {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-grid span {
    display: block;
    color: var(--muted-dark);
    font-size: 0.82rem;
    margin-bottom: 8px;
}

.mini-grid strong {
    font-size: 1.1rem;
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.trust-strip span {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.07);
    color: var(--muted);
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.feature-card {
    border-radius: var(--radius-lg);
    padding: 24px;
}

.feature-card span,
.security-item span {
    color: var(--accent);
    font-weight: 900;
}

.feature-card h3,
.security-item h3 {
    margin: 16px 0 10px;
    font-size: 1.25rem;
    letter-spacing: -0.015em;
}

.feature-card p,
.security-item p {
    color: var(--muted-dark);
    line-height: 1.7;
    margin: 0;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.security-item {
    padding: 22px;
}

.program-header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
}

.program-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-lg);
    display: grid;
    place-items: center;
    background: rgba(75, 159, 225, 0.16);
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 900;
    border: 1px solid rgba(75, 159, 225, 0.28);
}

.program-icon.combined {
    width: 68px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 10px;
    font-size: 1.15rem;
}

.program-icon.combined span {
    display: inline-block;
}

.program-icon.combined .plus-sign {
    font-size: 0.85rem;
    color: rgba(75, 159, 225, 0.6);
    font-weight: 700;
}


.program-list,
.pricing-list,
.plan-feature-list {
    list-style: none;
    padding: 0;
    display: grid;
}

.program-list {
    margin: 0 0 24px;
    gap: 10px;
}

.pricing-list {
    margin: 22px 0;
    gap: 12px;
}

.plan-feature-list {
    margin: 0 0 26px;
    gap: 12px;
    flex: 1;
}

.program-list li,
.pricing-list li,
.plan-feature-list li {
    color: var(--muted);
    position: relative;
    line-height: 1.5;
}

.program-list li {
    padding-left: 24px;
}

.pricing-list li,
.plan-feature-list li {
    padding-left: 28px;
}

.program-list li::before,
.pricing-list li::before,
.plan-feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 900;
}

.access-badge {
    padding: 8px 11px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 900;
    white-space: nowrap;
}

.access-ok {
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #bbf7d0 !important;
}

.access-no {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fecaca !important;
}

.access-soon {
    background: rgba(75, 159, 225, 0.14);
    border: 1px solid rgba(75, 159, 225, 0.3);
    color: var(--accent) !important;
}

/* ========================= */
/* Floating Contact Button   */
/* ========================= */

.floating-contact-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.floating-contact-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--on-accent);
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    padding: 0;
}

.floating-contact-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: none;
    background: var(--accent);
    color: #fff;
}

.floating-contact-btn .tooltip-text {
    position: absolute;
    right: 70px;
    background: var(--bg-soft);
    color: var(--text);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.floating-contact-btn:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
    right: 76px;
}

.contact-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 340px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.contact-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.contact-panel-header {
    background: rgba(59, 158, 234, 0.08);
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.contact-panel-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text);
    0.02;
}

.close-btn {
    background: none;
    border: none;
    color: var(--muted-dark);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
    margin-top: 0;
}

.close-btn:hover {
    color: var(--error);
}

.contact-panel-body {
    padding: 20px;
}

#floating-contact-form .form-group {
    margin-bottom: 16px;
}

#floating-contact-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

#floating-contact-form input,
#floating-contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
}

#floating-contact-form input:focus,
#floating-contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(75, 159, 225, 0.2);
}

.contact-submit-btn {
    width: 100%;
    background: var(--accent);
    color: #03111f;
    border: none;
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 44px;
    margin-top: 4px;
}

.contact-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: none;
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 17, 31, 0.3);
    border-top-color: #03111f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.contact-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 10px;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    color: var(--success);
    margin-bottom: 16px;
}

.contact-success p {
    margin: 0 0 6px 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text);
}

.contact-success span {
    font-size: 0.9rem;
    color: var(--muted);
}

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

/* Interactive & Chat Styles */
.contact-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00111f;
    position: relative;
    box-shadow: none;
}

.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border: 2px solid #111827;
    border-radius: 50%;
}

.status-text {
    font-size: 0.75rem;
    color: var(--muted-dark);
    display: block;
    margin-top: 2px;
}

.chat-bubble-system {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 14px 16px;
    border-radius: var(--radius-md) 16px 16px 4px;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 24px;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Floating Labels */
.floating-label-group {
    position: relative;
    margin-bottom: 24px !important;
}

.floating-label-group input,
.floating-label-group textarea {
    background: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    transition: all 0.3s ease;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

.floating-label-group input:focus,
.floating-label-group textarea:focus {
    background: rgba(0, 0, 0, 0.6) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(75, 159, 225, 0.15) !important;
}

.floating-label-group label {
    position: absolute;
    left: 14px;
    top: 15px;
    color: var(--muted-dark) !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease-out;
    pointer-events: none;
    margin: 0 !important;
}

.floating-label-group textarea ~ label {
    top: 15px;
}

.floating-label-group input:focus ~ label,
.floating-label-group input:not(:placeholder-shown) ~ label,
.floating-label-group textarea:focus ~ label,
.floating-label-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 10px;
    font-size: 0.75rem !important;
    color: var(--accent) !important;
    background: #151e2e;
    padding: 0 6px;
    border-radius: 4px;
    font-weight: bold;
}

/* Animations */
.pulse-animation {
    animation: pulse-soft 2.5s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse-soft {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(75, 159, 225, 0.4);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(75, 159, 225, 0);
    }
}

.contact-icon .eye {
    transform-origin: center;
    transition: transform 0.1s;
}

/* Blinking effect on hover */
.floating-contact-btn:hover .contact-icon .eye {
    animation: blink 2.5s infinite;
}

@keyframes blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

.success-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    animation: scaleIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.contact-select {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--muted);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: all 0.2s ease;
}

.contact-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(75, 159, 225, 0.15);
    color: var(--text);
}

.contact-select option {
    background: #1e293b;
    color: var(--text);
}





@media (max-width: 480px) {
    .contact-panel {
        width: calc(100vw - 48px);
    }
}

/* ==========================================================================
   Planes y Combos - Nuevos Estilos
   ========================================================================== */

/* Iconos de combos */
.combo-icons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    max-width: 120px;
}
.combo-icons-row .c-icon {
    font-size: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Precios tachados */
.original-price-strike {
    text-decoration: line-through;
    color: #64748b;
    font-size: 1rem;
    margin-right: 8px;
    font-weight: 400;
}

/* Tabla comparativa */
.comparison-details {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    margin-top: 40px;
    overflow: hidden;
}
.comparison-summary {
    padding: 24px 30px;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    transition: background 0.3s ease;
}
.comparison-summary::-webkit-details-marker {
    display: none;
}
.comparison-summary:hover {
    background: rgba(255, 255, 255, 0.05);
}
.comparison-details[open] .chevron {
    transform: rotate(180deg);
}
.chevron {
    transition: transform 0.3s ease;
    color: var(--accent);
}

.table-responsive {
    overflow-x: auto;
    padding: 0 30px 30px 30px;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    font-size: 0.95rem;
}
.comparison-table th,
.comparison-table td {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.comparison-table th {
    font-weight: 600;
    color: #f8fafc;
    padding-top: 0;
}
.comparison-table .table-feature-col {
    text-align: left;
    color: #cbd5e1;
    font-weight: 500;
}
.comparison-table .col-highlight {
    background: rgba(75, 159, 225, 0.05);
    color: var(--accent);
    border-left: 1px solid rgba(75, 159, 225, 0.2);
    border-right: 1px solid rgba(75, 159, 225, 0.2);
}
.comparison-table th.col-highlight {
    border-top: 1px solid rgba(75, 159, 225, 0.2);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}
.comparison-table tbody tr:last-child .col-highlight {
    border-bottom: 1px solid rgba(75, 159, 225, 0.2);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}
.comparison-table .check {
    color: #10b981;
    font-weight: bold;
    font-size: 1.2rem;
}
.comparison-table .cross {
    color: #64748b;
    font-weight: bold;
}

/* FAQs Acordeón */
.faq-container {
    max-width: 800px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.faq-summary {
    padding: 20px 24px;
    font-weight: 500;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    transition: background 0.3s ease;
}
.faq-summary::-webkit-details-marker {
    display: none;
}
.faq-summary:hover {
    background: rgba(255, 255, 255, 0.05);
}
.faq-item[open] .faq-summary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}
.faq-chevron {
    transition: transform 0.3s ease;
    color: #94a3b8;
    min-width: 20px;
}
.faq-content {
    padding: 20px 24px;
    color: #cbd5e1;
    line-height: 1.6;
}
.faq-content p {
    margin: 0;
}