/* ==========================================================================
   ESTILOS GENERALES DEL CONTENEDOR DE PLANES
   ========================================================================== */
.contenedor-planes {
    position: relative;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 140px 25px 80px;
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

/* Capa de Fondo Fija (Evita el zoom y mantiene resolución) */
.contenedor-planes::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-image: linear-gradient(rgba(18, 25, 15, 0.80), rgba(18, 25, 15, 0.85)),
                      url('../img/planes/background_planes2.jpeg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    pointer-events: none;
}

.contenedor-planes .titulo-seccion,
.contenedor-planes .grid-cards {
    width: 100%;
    max-width: 1150px;
}

.titulo-seccion {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-left: 5px solid #B5D325;
    padding-left: 18px;
    color: #ffffff;
}

/* ==========================================================================
   GRID DE TARJETAS VERTICALES
   ========================================================================== */
.grid-cards {
    display: grid;
    /* Mantenemos un ancho más estrecho (minmax 260px a 300px) para forzar aspecto vertical */
    grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
    gap: 35px;
    justify-content: center;
    align-items: stretch;
}

/* --- TARJETA BASE (Uiverse style + Glassmorphism) --- */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px; /* Sensación estilizada y vertical */
    background: rgba(25, 30, 20, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    padding: 35px 28px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    box-sizing: border-box;
}

/* Barra verde animada que cubre la tarjeta al hacer hover */
.card::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 5px;
    height: 100%;
    background: #B5D325;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
}

.card:hover::before {
    width: 100%;
}

.card:hover {
    box-shadow: 0 15px 35px rgba(181, 211, 37, 0.25);
    transform: translateY(-5px);
}

/* --- CONTENIDO INTERNO --- */
.content {
    position: relative;
    z-index: 2; /* Por encima de la barra animada ::before */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    gap: 15px;
    color: #e8e8e8;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
}

/* Etiqueta corporativa */
.card-tag {
    display: inline-block;
    background-color: rgba(181, 211, 37, 0.2);
    color: #B5D325;
    border: 1px solid #B5D325;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.card:hover .card-tag {
    background-color: #1a2312;
    color: #ffffff;
    border-color: #1a2312;
}

.content .heading {
    font-weight: 800;
    font-size: 1.75rem;
    margin: 0;
    color: #ffffff;
    transition: color 0.3s ease;
}

.card:hover .content .heading {
    color: #1a2312; /* Cambia a texto oscuro sobre el fondo verde animado */
}

.content .para {
    line-height: 1.6;
    font-size: 0.92rem;
    color: #d1d5db;
    margin: 0 0 auto 0; /* Empuja el botón al final de la tarjeta */
    transition: color 0.3s ease;
}

.card:hover .content .para {
    color: #243019; /* Texto oscuro para asegurar contraste en hover */
}

/* --- BOTÓN DENTRO DEL COMPONENTE --- */
.content .btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    color: #1a2312;
    text-decoration: none;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    background: #B5D325;
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    margin-top: 15px;
}

.card:hover .btn {
    color: #ffffff;
    background: #1a2312;
}

.content .btn:hover {
    background: transparent !important;
    color: #1a2312 !important;
    outline: 2px solid #1a2312;
}

.content .btn:active {
    box-shadow: none;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .contenedor-planes {
        padding: 120px 20px 60px;
    }

    .titulo-seccion {
        font-size: 1.75rem;
        margin-bottom: 30px;
    }

    .grid-cards {
        grid-template-columns: 1fr;
        max-width: 320px;
    }
}