/* ============================
   COMPARATIVA
============================ */

.comparativa {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 20px;
}

.comparativa h2 {
    text-align: center;
    margin-bottom: 40px;
}

.tabla-comparativa {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.fila {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr;
}

.encabezado {
    background: #0A3D62;
    color: white;
    font-weight: bold;
}

.celda {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.95rem;
}

.celda.caracteristica {
    background: #f8fafc;
    font-weight: 600;
}

.plan {
    text-align: center;
    opacity: 0.5;
    filter: grayscale(100%);
}

.plan.activo {
    opacity: 1;
    filter: none;
    background: #f0fdf4;
    font-weight: 700;
}

.encabezado .plan.activo {
    background: #7cb837;
    color: white;
}

@media (max-width: 768px) {
    .fila {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        font-size: 0.85rem;
    }
}
/* ============================
   GRID PLANES
============================ */

.planes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

@media (max-width: 1024px) {
    .planes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .planes-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================
   TARJETAS PLAN
============================ */

.plan-box,
.plan-proyecto {
    background: white;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    text-align: center;
}

/* Bordes por plan */
.plan-box.basico {
    border-top: 6px solid #7cb837;
}

.plan-box.profesional {
    border-top: 6px solid #0A3D62;
}

.plan-box.empresa {
    border-top: 6px solid #c0392b;
}

/* ============================
   PROYECTOS TI (TRIPLE BORDE)
============================ */

.plan-proyecto {
    position: relative;
    padding-top: 40px;
}

/* Borde superior triple */
.plan-proyecto::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 6px;
    width: 100%;
    background: linear-gradient(
        to right,
        #7cb837 0%,
        #7cb837 33.33%,
        #0A3D62 33.33%,
        #0A3D62 66.66%,
        #c0392b 66.66%,
        #c0392b 100%
    );
    border-radius: 18px 18px 0 0;
}

.plan-proyecto h3 {
    color: #0A3D62;
    margin-bottom: 10px;
}

.plan-proyecto p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
}

.plan-proyecto ul {
    list-style: none;
    padding: 0;
    text-align: left;
    font-size: 0.9rem;
}

.plan-proyecto ul li {
    margin-bottom: 8px;
}

/* ============================
   BOTONES
============================ */

.plan-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 26px;
    border-radius: 30px;
    background: #0A3D62;
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.plan-btn:hover {
    background: #062b45;
}
/* ============================
   BOTONES POR PLAN
============================ */

.plan-box.basico .plan-btn {
    background: #7cb837;
}

.plan-box.basico .plan-btn:hover {
    background: #689f2d;
}

.plan-box.profesional .plan-btn {
    background: #0A3D62;
}

.plan-box.profesional .plan-btn:hover {
    background: #062b45;
}

.plan-box.empresa .plan-btn {
    background: #c0392b;
}

.plan-box.empresa .plan-btn:hover {
    background: #a93226;
}
.plan-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ============================
   PROYECTOS DESTACADO
============================ */

.plan-proyecto {
    grid-column: 1 / -1; /* ocupa todo el ancho */
    max-width: 900px;
    margin: 0 auto;
}
.plan-proyecto ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 30px;
}
@media (max-width: 640px) {
    .plan-proyecto ul {
        grid-template-columns: 1fr;
    }
}

/* ============================
   LINKS DE SERVICIOS EN TABLA
============================ */

.servicio-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.servicio-link:hover {
    background: rgba(10, 61, 98, 0.08);
}
.servicio-link {
    color: #0A3D62;
    text-decoration: underline;
    font-weight: 600;
}

.servicio-link:hover {
    text-decoration: none;
}
/* ============================
   COMPARATIVA EN PROYECTOS
   (planes como oportunidad)
============================ */

.comparativa-proyectos .plan {
    opacity: 1;
    filter: none;
    background: white;
    font-weight: 600;
}

/* encabezados de planes */
.comparativa-proyectos .encabezado .plan {
    opacity: 1;
    filter: none;
    background: #0A3D62;
    color: white;
}

/* hover visual */
.comparativa-proyectos .plan:hover {
    background: #f0f9ff;
    box-shadow: inset 0 0 0 2px #0A3D62;
}
/* ============================
   FIX HOVER PLANES EN PROYECTOS
============================ */

.comparativa-proyectos .plan:hover {
    background: inherit;
    box-shadow: none;
    transform: none;
}