/* =========================================================
   Suite PEL - secciones nuevas del sitio de Procesos en Línea
   Usa las mismas variables, fuente y efectos de estilos.css
   ========================================================= */

/* Franja "Funciona con" bajo el hero */
.works-with {
    background-color: white;
    border-bottom: 1px solid #eee;
    padding: 22px 0;
}

.works-with .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 28px;
}

.works-with span.label {
    color: var(--text-light);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.works-with span.chip {
    color: var(--primary-color);
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.works-with span.chip i {
    color: var(--secondary-color);
}

/* Video del hero responsivo (mismo enlace) */
.hero-video {
    width: 100%;
    max-width: 640px;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* Tarjetas de producto de la suite */
.suite {
    background-color: #f9f9f9;
}

.suite-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: 10px;
    padding: 34px 30px 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
    border-top: 4px solid var(--secondary-color);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-card .product-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.product-card .product-icon {
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.product-card h3 {
    font-size: 1.7rem;
    color: var(--primary-color);
    font-weight: normal;
    line-height: 1.15;
}

.product-card .product-tagline {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 14px;
    line-height: 1.3;
}

.product-card ul {
    list-style: none;
    margin-bottom: 24px;
    flex-grow: 1;
}

.product-card ul li {
    font-size: 1.1rem;
    padding: 7px 0 7px 28px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.product-card ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.product-card .btn {
    align-self: flex-start;
    font-size: 1.1rem;
    padding: 10px 26px;
}

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.95rem;
    padding: 2px 12px;
    border-radius: 30px;
}

.product-badge.soft {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Banda de ventajas (mismo degradado del hero) */
.benefits {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.benefits .section-title h2 {
    color: white;
}

.benefits .section-title h2::after {
    background: white;
}

.benefits .section-title p {
    color: rgba(255, 255, 255, 0.85);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.benefit {
    text-align: center;
    padding: 10px 20px;
}

.benefit i {
    font-size: 3rem;
    margin-bottom: 18px;
    opacity: 0.95;
}

.benefit h3 {
    font-size: 1.7rem;
    font-weight: normal;
    margin-bottom: 10px;
}

.benefit p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Etiqueta pequeña sobre títulos de sección */
.section-kicker {
    display: block;
    color: var(--secondary-color);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 6px;
}

.distributors .section-kicker,
.benefits .section-kicker {
    color: rgba(255, 255, 255, 0.75);
}

/* Más soluciones PEL */
.more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.more-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 26px 24px;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.more-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary-color);
}

.more-card i {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 14px;
}

.more-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: normal;
    margin-bottom: 8px;
}

.more-card p {
    font-size: 1.05rem;
    color: var(--text-light);
    flex-grow: 1;
}

.more-card span.go {
    margin-top: 14px;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Talleres */
.workshops {
    background-color: #f9f9f9;
}

.workshop-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.workshop {
    background-color: white;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.workshop i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-top: 4px;
}

.workshop h3 {
    font-size: 1.35rem;
    color: var(--primary-color);
    font-weight: normal;
    line-height: 1.25;
}

.workshop p {
    font-size: 1rem;
    color: var(--text-light);
}

.center-cta {
    text-align: center;
}

.center-cta small {
    display: block;
    margin-top: 12px;
    color: var(--text-light);
    font-size: 1rem;
}

/* Distribuidores (contenido nuevo dentro de la sección existente) */
.distributor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 26px;
    margin-bottom: 44px;
}

.distributor-item {
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 26px 24px;
    text-align: center;
}

.distributor-item i {
    font-size: 2.4rem;
    color: var(--secondary-color);
    margin-bottom: 14px;
}

.distributor-item h3 {
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 8px;
}

.distributor-item p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Ajustes responsivos de lo nuevo */
@media (max-width: 768px) {
    .product-card .btn,
    .center-cta .btn {
        width: auto;
        display: inline-block;
        margin: 0;
    }

    .center-cta .btn {
        width: 80%;
    }

    .suite-grid {
        grid-template-columns: 1fr;
    }
}

/* Encabezado: evita que el menú y el logo se partan en dos líneas */
nav ul li a,
.logo-text h1,
.logo-text p {
    white-space: nowrap;
}

@media (max-width: 1500px) and (min-width: 769px) {
    nav ul li {
        margin-left: 20px;
    }

    nav ul li a {
        font-size: 1.15rem;
    }
}

@media (max-width: 1300px) and (min-width: 769px) {
    .logo img {
        height: 56px !important;
        width: auto;
    }

    .logo-text h1 {
        font-size: 1.9rem;
    }

    .logo-text p {
        font-size: 1rem;
    }

    nav ul li {
        margin-left: 14px;
    }

    nav ul li a {
        font-size: 1.05rem;
    }
}

@media (max-width: 960px) and (min-width: 769px) {
    .logo-text {
        display: none;
    }

    nav ul li {
        margin-left: 12px;
    }

    nav ul li a {
        font-size: 1rem;
    }
}

/* Celular: el logo y el nombre se acomodan para dejar visible el botón del menú */
@media (max-width: 768px) {
    .logo {
        min-width: 0;
        flex: 1;
    }

    .logo img {
        height: auto !important;
        width: 42%;
        max-width: 203px;
        margin-right: 10px;
    }

    .logo-text h1,
    .logo-text p {
        white-space: normal;
    }

    .logo-text h1 {
        font-size: 1.5rem;
    }

    .logo-text p {
        font-size: 0.85rem;
    }

    .menu-toggle {
        flex-shrink: 0;
        margin-left: 10px;
    }
}

/* Tarjetas de precio por producto (heredan .pricing-card de estilos.css) */
.plan-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.plan-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 28px 26px;
    border-top: 4px solid var(--secondary-color);
}

.plan-card .plan-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 14px;
}

.plan-card h3 {
    margin-bottom: 8px;
}

.plan-card .plan-from {
    color: var(--text-light);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.plan-card .price {
    margin-bottom: 4px;
}

.plan-card .price-quote {
    font-size: 2.1rem;
}

.plan-card .plan-detail {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 16px;
    min-height: 1.6em;
}

.plan-card .pricing-features {
    width: 100%;
    flex-grow: 1;
}

.plan-card .plan-more {
    margin-top: 14px;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.05rem;
}

.plan-card .plan-more:hover {
    color: var(--accent-color);
}

.plan-card .plan-more i {
    font-size: 0.85rem;
}

/* Instalación opcional para toda la suite */
.install-band {
    margin-top: 40px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--accent-color);
    padding: 30px 34px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.install-icon {
    font-size: 2.6rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.install-text {
    flex: 1;
}

.install-tag {
    display: inline-block;
    background-color: var(--light-color);
    color: var(--primary-color);
    border-radius: 30px;
    padding: 1px 12px;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.install-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: normal;
    margin-bottom: 6px;
}

.install-text p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.install-band .btn {
    flex-shrink: 0;
}

.suite-prices-note {
    margin-top: 26px;
    text-align: center;
    color: var(--text-light);
    font-size: 1rem;
    font-style: italic;
}

/* Precio en tarjetas de "Más soluciones" */
.more-card .more-price {
    display: block;
    margin-top: 12px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .install-band {
        flex-direction: column;
        text-align: center;
        border-left: none;
        border-top: 5px solid var(--accent-color);
        padding: 28px 20px;
        gap: 14px;
    }

    .install-band .btn {
        width: 80%;
    }

    .plan-grid {
        grid-template-columns: 1fr;
    }
}

/* Ediciones con su propio botón de pago dentro de la tarjeta */
.plan-options {
    width: 100%;
    margin-bottom: 4px;
}

.plan-option {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 12px 0;
    border-top: 1px solid #eee;
}

.plan-option:last-child {
    border-bottom: 1px solid #eee;
}

.plan-option-text {
    flex: 1;
    min-width: 0;
}

.plan-option-text strong {
    display: block;
    font-weight: normal;
    color: var(--primary-color);
    font-size: 1.25rem;
    line-height: 1.2;
}

.plan-option-text span {
    display: block;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.25;
}

.plan-option-price {
    color: var(--secondary-color);
    font-size: 1.3rem;
    white-space: nowrap;
}

.plan-option-price small {
    font-size: 0.85rem;
    color: var(--text-light);
}

.btn.btn-small {
    padding: 7px 16px;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Selector Mensual / Anual */
.period-toggle {
    display: inline-flex;
    background-color: var(--light-color);
    border-radius: 30px;
    padding: 4px;
    margin-bottom: 14px;
}

.period-toggle button {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.period-toggle button.active {
    background-color: var(--secondary-color);
    color: white;
}

.plan-options[data-ver="mensual"] .plan-option[data-periodo="anual"],
.plan-options[data-ver="anual"] .plan-option[data-periodo="mensual"] {
    display: none;
}

/* El botón chico no debe estirarse en celular */
@media (max-width: 768px) {
    .btn.btn-small {
        display: inline-block;
        width: auto;
        margin: 0;
    }
}
