/* ===== SECCIÓN DE PLANES EN INDEX ===== */

.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 2rem;
}

.text-muted {
    color: var(--gray-color);
}

.text-primary {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.text-primary:hover {
    text-decoration: underline;
}
/*********************************************/
#planes{
    padding-bottom: 0;
    padding-top: 0;
}
.plans-section {
    background-color: var(--dark-color);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Imagen de fondo con efecto parallax */
.plans-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Más alto que el contenedor para el efecto */
    background-image: url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Esto crea el efecto parallax */
    opacity: 0.4; /* Transparente para no molestar al contenido */
    z-index: 2;
    pointer-events: none; /* Permite hacer clic a través de la imagen */
}

/* Fondo oscuro semitransparente encima de la imagen */
.plans-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Asegurar que el contenido esté por encima */
.plans-section .container {
    position: relative;
    z-index: 2;
}


/***********************************************/

.plans-section .section-title {
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

.plans-section .section-subtitle {
    text-align: center;
    color: white;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}

/* ===== GRID DE PLANES ===== */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== TARJETAS DE PLANES ===== */
.plan-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

 .plan-card.featured {
    border: 2px solid var(--accent-color);
    transform: scale(1.03);
} 

.plan-card.featured:hover {
    transform: translateY(-10px) scale(1.03);
}

/* ===== HEADER DE LA CARD ===== */
.plan-header {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: white;
    padding: 30px;
    text-align: center;
    flex-shrink: 0;
}

.plan-header h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: white;
}

.plan-price {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 15px 0 5px;
    line-height: 1;
}

.plan-period {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ===== BODY DE LA CARD ===== */
.plan-body {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.plan-image {
    height: 200px;
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.plan-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    padding: 20px;
}

/* ===== LISTA DE CARACTERÍSTICAS ===== */
.plan-features {
    list-style: none;
    margin-bottom: 25px;
    flex: 1;
}

.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    color: var(--dark-color);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li i {
    color: var(--accent-color);
    margin-right: 12px;
    font-size: 0.9rem;
    width: 20px;
}

/* ===== ACCIONES (BOTONES) =====
.plan-actions {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.plan-btn-info {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.plan-btn-info:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 42, 43, 0.2);
}

.plan-btn-request {
    background:red;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.plan-btn-request:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 42, 43, 0.3);
}

/* ===== BADGE "MÁS POPULAR" ===== */
.plan-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background:  linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 35%, rgb(0, 98, 255) 100%);
    color: rgb(255, 255, 255);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(26, 10, 78, 0.3);
}


/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plan-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.plan-card:nth-child(1) {
    animation-delay: 0.1s;
}

.plan-card:nth-child(2) {
    animation-delay: 0.2s;
}

.plan-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .plans-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        padding: 0 20px;
    }
}

@media (max-width: 992px) {
    .plans-section {
        padding: 60px 0;
    }
    
    .plans-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .plan-card.featured {
        transform: none;
    }
    
    .plan-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
        padding: 0 15px;
    }
    
    .plan-header {
        padding: 25px;
    }
    
    .plan-price {
        font-size: 2.5rem;
    }
    
    .plan-body {
        padding: 25px;
    }
    
    .plan-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .plans-section {
        padding: 50px 0;
    }
    
    .plan-header {
        padding: 20px;
    }
    
    .plan-header h3 {
        font-size: 1.4rem;
    }
    
    .plan-price {
        font-size: 2.2rem;
    }
    
    .plan-body {
        padding: 20px;
    }
    
    .plan-image {
        height: 160px;
    }
    
    .plan-btn-info,
    .plan-btn-request {
        padding: 10px 16px;
        font-size: 0.95rem;
    }
}