/* ==========================================================================
   PÁGINAS DE CONTENIDO (Cómo Comprar, FAQ, Empresa, Detalles, Reparaciones)
   Hoja compartida por las 5 páginas del menú que no son Home ni Catálogo.
   ========================================================================== */

.page-main {
    padding: 40px 0 60px;
}

/* Migas de pan (mismo estilo que catalogo.css para consistencia) */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 24px;
    padding: 10px 16px;
    background-color: var(--bg-white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.breadcrumbs a {
    color: var(--color-orange);
    font-weight: 600;
}

.breadcrumbs a:hover {
    color: var(--color-orange-dark);
}

/* Hero de cabecera de página */
.page-hero {
    border-radius: var(--radius-xl);
    padding: 44px 40px;
    display: flex;
    align-items: center;
    gap: 24px;
    color: #fff;
    box-shadow: var(--shadow-lg);
    margin-bottom: 48px;
}

.page-hero__icon {
    width: 84px;
    height: 84px;
    border-radius: var(--radius-lg);
    background-color: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    flex-shrink: 0;
    box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.15);
}

.page-hero__copy .eyebrow {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 6px;
}

.page-hero__copy h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.page-hero__copy p {
    font-size: 1.02rem;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 640px;
}

.page-hero.bg-orange { background: linear-gradient(135deg, var(--color-orange-light), var(--color-orange)); }
.page-hero.bg-blue { background: linear-gradient(135deg, var(--color-blue-light), var(--color-blue)); }
.page-hero.bg-green { background: linear-gradient(135deg, var(--color-green-light), var(--color-green)); }
.page-hero.bg-purple { background: linear-gradient(135deg, var(--color-purple-light), var(--color-purple)); }
.page-hero.bg-yellow { background: linear-gradient(135deg, var(--color-yellow-light), var(--color-orange)); }

/* Sub-navegación de anclas dentro de una misma página (Preguntas
   Frecuentes agrupa ahora el contenido de varias páginas viejas). */
.page-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 48px;
}

.page-subnav a {
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.page-subnav a:hover {
    color: var(--color-orange);
    border-color: var(--color-orange);
}

/* Secciones genéricas de contenido */
.page-section {
    margin-bottom: 56px;
    scroll-margin-top: 24px;
}

.page-section__title {
    margin-bottom: 28px;
}

.page-section__title .eyebrow {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 8px;
}

.page-section__title h2 {
    font-size: 1.7rem;
    color: var(--text-dark);
}

.page-section__title p {
    color: var(--text-muted);
    margin-top: 8px;
    max-width: 700px;
    line-height: 1.6;
}

/* Pasos numerados (Cómo Comprar) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.step-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    transition: var(--transition-smooth);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-card__number {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-circle);
    background: linear-gradient(135deg, var(--color-orange), var(--color-yellow));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 16px;
    box-shadow: 0 6px 14px rgba(255, 116, 10, 0.25);
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Tarjetas de información genéricas (medios de pago, valores, etc.) */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.info-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.info-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-blue-light), var(--color-blue));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.info-card h3 {
    font-size: 1.02rem;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.info-card p {
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Acordeón de Preguntas Frecuentes */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    /* Sin max-width: que ocupe el mismo ancho que el resto de las
       secciones (steps-grid, info-cards, etc.) en todas las paginas. */
}

.faq-item {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
}

.faq-question i {
    color: var(--color-orange);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 22px;
}

.faq-item.open .faq-answer {
    max-height: 400px;
    padding: 0 22px 20px;
}

.faq-answer p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* Cronología / Historia (Empresa) */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 760px;
}

.timeline-item {
    display: flex;
    gap: 20px;
}

.timeline-item__marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.timeline-item__dot {
    width: 14px;
    height: 14px;
    border-radius: var(--radius-circle);
    background: var(--color-orange);
    box-shadow: 0 0 0 4px rgba(255, 116, 10, 0.15);
    margin-top: 4px;
}

.timeline-item__line {
    flex: 1;
    width: 2px;
    background: rgba(0, 0, 0, 0.08);
    margin: 4px 0;
}

.timeline-item:last-child .timeline-item__line {
    display: none;
}

.timeline-item__body {
    padding-bottom: 32px;
}

.timeline-item__year {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-orange);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 4px;
}

.timeline-item__body h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.timeline-item__body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Bloque de datos técnicos (Detalles Estructurales) */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.spec-block {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.spec-block h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.spec-block h3 i {
    color: var(--color-orange);
}

.spec-block ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-block li {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
}

.spec-block li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.75rem;
    color: var(--color-green);
}

/* Etiqueta "a confirmar": dato que el cliente tiene que revisar antes de
   publicar, para no afirmar plazos, normas o precios que no confirmamos. */
.confirm-tag {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    max-width: 100%;
    background-color: rgba(241, 196, 15, 0.15);
    border: 1px dashed var(--color-yellow);
    color: #946c00;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.4;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    white-space: normal;
}

.confirm-tag i {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Cuando el tag termina bajando a su propia linea (tarjetas angostas: los
   step-card, las respuestas del FAQ, los spec-block), necesita un empujon
   propio para no quedar pegado al texto de arriba. En la pagina Empresa el
   tag entra en la misma linea que el texto y se ve bien tal cual, por eso
   ese caso no lleva este modificador. */
.confirm-tag--block {
    margin-top: 10px;
}

/* Franja de servicios (Reparaciones) */
.service-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    gap: 18px;
}

.service-card__icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-green-light), var(--color-green));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.service-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.service-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* CTA final, reutilizado en las 5 páginas */
.page-cta {
    background-color: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
    gap: 20px;
}

.page-cta h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-top: 4px;
}

.page-cta__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.page-cta__actions a {
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.page-cta__actions a.secondary {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.page-cta__actions a.secondary:hover {
    border-color: var(--color-orange);
    color: var(--color-orange);
}

.page-cta__actions a.primary {
    background-color: var(--color-orange);
    color: #fff;
    box-shadow: 0 6px 16px rgba(255, 116, 10, 0.25);
}

.page-cta__actions a.primary:hover {
    background-color: var(--color-orange-dark);
    box-shadow: 0 8px 20px rgba(255, 116, 10, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .info-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .specs-grid { grid-template-columns: 1fr; }
    .service-cards { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .page-hero {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .page-hero__copy p {
        max-width: none;
    }

    .steps-grid,
    .info-cards {
        grid-template-columns: 1fr;
    }

    .page-cta {
        flex-direction: column;
        text-align: center;
    }

    .page-cta__actions {
        width: 100%;
        flex-direction: column;
    }

    .page-cta__actions a {
        justify-content: center;
    }
}
