:root {
    --primary-color: #007bff; /* Bootstrap's default primary blue */
    --primary-color-dark: #0056b3;
    --card-featured-bg: var(--primary-color);
    --text-color-light: #f8f9fa;
    --body-font: 'Public Sans', sans-serif;
}

body {
    font-family: var(--body-font);
    padding-top: 56px; /* Ajuste para la navbar fija */
}

/* Navbar specific styling if needed */
.navbar-brand {
    font-weight: 700;
}

/* Navigation improvements */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffffff !important;
}

.hero-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #e0f4ff 50%, #d4e9ff 100%);
    padding-top: 100px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: 5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: 0%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef; /* Light border for cards */
    border-radius: 0.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1) !important;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid #e9ecef;
}

.card-title {
    color: var(--primary-color);
}

.card-featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.03); /* Slightly less aggressive scale for general use */
    box-shadow: 0 0.75rem 1.25rem rgba(0,0,0,0.15) !important;
}

.card-featured .card-header {
    background-color: var(--card-featured-bg);
    border-bottom: none;
}

.card-featured .card-title {
    color: var(--text-color-light);
}

.card .list-group-item {
    border: none;
    padding-left: 0;
}

.card .list-group-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid #e9ecef;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
}

.feature-icon-box {
    width: 80px;
    height: 80px;
    background-color: rgba(0, 123, 255, 0.1); /* Light tint of primary color */
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.card-featured {
    border: 2px solid #0d6efd;
}

section {
    padding: 4rem 0;
}

#features {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%);
    position: relative;
    overflow: hidden;
}

#features::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 5%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

#features::after {
    content: '';
    position: absolute;
    bottom: -25%;
    right: 3%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

#features > .container {
    position: relative;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .card-featured {
        transform: none; /* No scaling on smaller screens */
    }
    .navbar .btn-light {
        width: 100%;
        margin-top: 1rem;
    }
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.whatsapp-float:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transform: scale(1.05);
    color: #fff;
}
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float {
        transition: none;
    }
}

/* Ajuste imagen contenedor acerca de */
.equipos-image-box {
    overflow: hidden;
}

.equipos-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Footer mejorado */
footer {
    margin-top: 4rem;
}

footer h5 {
    color: var(--primary-color);
}

.footer-link {
    color: #b0b0b0;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.5rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.footer-social:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

@media (max-width: 768px) {
    footer .row > div {
        text-align: center;
    }
    
    .footer-social {
        display: inline-flex;
    }
}

/* Sección de Métricas */
#metricas {
    background: linear-gradient(135deg, #fef3f2 0%, #fee2e2 50%, #fecaca 100%);
    position: relative;
    overflow: hidden;
}

#metricas::before {
    content: '';
    position: absolute;
    top: -25%;
    right: 8%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

#metricas::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: 5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

#metricas > .container {
    position: relative;
    z-index: 1;
}

.metric-card {
    background: white;
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.metric-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

.metric-number {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Tabla de Comparación */
#comparacion {
    background: #ffffff;
}

.table-comparison {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.table-comparison thead {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.table-comparison th {
    border: none;
    padding: 1.5rem 1rem;
    vertical-align: middle;
}

.table-comparison .feature-col {
    width: 30%;
    font-weight: 600;
}

.table-comparison .plan-col {
    width: 23.33%;
    text-align: center;
}

.table-comparison .plan-featured {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    position: relative;
}

.plan-header {
    padding: 1rem;
}

.plan-header h5 {
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.plan-header .price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.plan-header .price small {
    font-size: 1rem;
    font-weight: 400;
    color: #64748b;
}

.plan-header .badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
    display: inline-block;
}

.table-comparison tbody tr {
    border-bottom: 1px solid #e2e8f0;
}

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

.table-comparison td {
    padding: 1.25rem 1rem;
    vertical-align: middle;
}

.table-comparison .feature-name {
    font-weight: 500;
    color: #334155;
}

.table-comparison .featured-col {
    background: rgba(59, 130, 246, 0.03);
}

.check-icon {
    font-size: 1.5rem;
    color: #10b981;
}

.cross-icon {
    font-size: 1.5rem;
    color: #cbd5e1;
}

.table-comparison .action-row {
    background: #f8fafc;
    border-top: 2px solid #e2e8f0;
}

.table-comparison .action-row td {
    padding: 1.5rem 1rem;
}

@media (max-width: 768px) {
    .table-comparison {
        font-size: 0.875rem;
    }
    
    .plan-header .price {
        font-size: 1.5rem;
    }
    
    .metric-number {
        font-size: 2rem;
    }
}

/* Sección Contacto */
#contacto {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
    position: relative;
    overflow: hidden;
}

#contacto::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

#contacto::after {
    content: '';
    position: absolute;
    bottom: -25%;
    right: 8%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

#contacto > .container {
    position: relative;
    z-index: 1;
}

.contact-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-info-box {
    text-align: center;
    padding: 1.5rem;
    border-radius: 0.75rem;
    transition: background-color 0.3s ease;
}

.contact-info-box:hover {
    background-color: #f8fafc;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* ===================== */
/* Página Legal (Términos) */
/* ===================== */
.legal-page {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
}

.legal-list .list-group-item {
    cursor: pointer;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.legal-list .list-group-item:last-child {
    border-bottom: none;
}

.legal-list .list-group-item.active {
    background-color: var(--primary-color);
    color: #fff;
}

.legal-list .list-group-item.active i {
    color: #fff;
}

.legal-list .list-group-item:hover:not(.active) {
    background-color: #f1f5f9;
}

.legal-list .bx {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.legal-viewer {
    position: relative;
    height: 70vh;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
}

.legal-viewer iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (max-width: 991.98px) {
    .legal-viewer { height: 60vh; }
}

@media (max-width: 575.98px) {
    .legal-viewer { height: 55vh; }
    .legal-list .list-group-item { font-size: 0.9rem; }
}
