/* =========================================
   pages.css — eFactRD multi-page site
   Complementa style.css con estilos del
   nuevo sitio multi-página.
   ========================================= */

/* --- Icon Box (reemplaza emojis) --- */
.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    margin-bottom: 14px;
}
.icon-box.green  { background: rgba(16, 185, 129, 0.1); color: #059669; }
.icon-box.amber  { background: rgba(245, 158, 11, 0.1);  color: #D97706; }
.icon-box.red    { background: rgba(239, 68, 68, 0.1);   color: #DC2626; }
.icon-box.purple { background: rgba(139, 92, 246, 0.1);  color: #7C3AED; }
.icon-box.slate  { background: rgba(100, 116, 139, 0.1); color: #475569; }
.icon-box.lg { width: 60px; height: 60px; font-size: 26px; border-radius: 16px; }

/* --- Page Hero (páginas internas) --- */
.page-hero {
    padding: 76px 0 56px;
    border-bottom: 1px solid var(--border);
}
.page-hero h1 {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    margin: 10px 0 16px;
}
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 14px;
}
.breadcrumb-nav a { color: var(--accent); font-weight: 500; }
.breadcrumb-nav .sep { opacity: 0.4; }

/* --- Screenshot Frame --- */
.screenshot-frame {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
    background: #fff;
}
.sf-bar {
    background: #f1f5f9;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border);
}
.sf-dot { width: 10px; height: 10px; border-radius: 50%; }
.sf-dot.red    { background: #ef4444; }
.sf-dot.yellow { background: #f59e0b; }
.sf-dot.green  { background: #10b981; }
.sf-url {
    margin-left: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 3px 14px;
    font-size: 12px;
    color: var(--muted);
    flex: 1;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sf-content img { width: 100%; display: block; }

/* --- Feature Row (imagen + texto alternados) --- */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
    padding: 60px 0;
}
.feature-row + .feature-row {
    border-top: 1px solid var(--border);
}
.feature-row.reverse .feature-row-image { order: -1; }
@media (max-width: 768px) {
    .feature-row {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 0;
    }
    .feature-row.reverse .feature-row-image { order: unset; }
}

/* --- Stat Banner --- */
.stat-banner {
    background: linear-gradient(135deg, #0f2744 0%, #1e293b 100%);
    color: #fff;
    padding: 44px 0;
}
.stat-item { text-align: center; padding: 8px; }
.stat-num {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -0.02em;
}
.stat-label { font-size: 13px; color: rgba(255,255,255,0.6); margin: 4px 0 0; }

/* --- CTA Banner --- */
.cta-banner {
    background: var(--gradient-primary);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}
.cta-banner h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
}
.cta-banner p {
    color: rgba(255,255,255,0.82);
    max-width: 520px;
    margin: 0 auto 28px;
    font-size: 17px;
}
.btn.white {
    background: #fff;
    color: var(--accent-strong);
    font-weight: 700;
    border: none;
    border-radius: 14px;
    padding: 12px 26px;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.btn.white:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.2); color: var(--accent-strong); }
.btn.white-outline {
    background: transparent;
    color: #fff;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 14px;
    padding: 10px 26px;
    transition: all 0.3s;
}
.btn.white-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }

/* --- Multi-column Footer --- */
.site-footer {
    background: #0f172a;
    color: rgba(255,255,255,0.7);
    padding: 64px 0 28px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}
.footer-logo { height: 38px; width: auto; margin-bottom: 14px; filter: brightness(10); opacity: 0.88; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.45); margin: 0 0 18px; max-width: 240px; line-height: 1.65; }
.footer-heading { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; color: #ffffff; margin: 0 0 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: 14px; color: rgba(255,255,255,0.5); }
.footer-contact-item i { margin-top: 2px; color: var(--accent); flex-shrink: 0; }
.footer-bottom { padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.35); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.55); transition: all 0.2s; }
.footer-social a:hover { background: var(--accent); color: #fff; }

/* --- Mobile Menu --- */
.mobile-menu-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    font-size: 16px;
    transition: all 0.2s;
}
.mobile-menu-btn:hover { background: var(--panel); }
.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 12px 0 16px;
    border-top: 1px solid var(--border);
    gap: 2px;
    margin-top: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav-link { padding: 10px 4px; color: var(--text); font-weight: 500; font-size: 15px; border-bottom: 1px solid rgba(203,213,225,0.2); }
.mobile-nav-link:last-child { border-bottom: none; }
.nav-link.active,
.mobile-nav-link.active { color: var(--accent-strong); font-weight: 600; }

/* --- Industry teaser pills --- */
.industry-pill-link {
    color: var(--text);
    border-radius: 12px;
    padding: 14px 8px;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}
.industry-pill-link:hover { background: rgba(59,130,246,0.07); color: var(--accent); }
.industry-pill-link .icon-box { margin-bottom: 8px; margin-left: auto; margin-right: auto; }

/* --- Industry Card (industrias.html) --- */
.industry-card {
    padding: 26px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.85);
    height: 100%;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.industry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(59,130,246,0.3); }
.industry-card h3 { margin: 0; font-size: 17px; }
.industry-card p { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.65; }
.industry-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.industry-card li { font-size: 13px; color: var(--muted); padding-left: 18px; position: relative; }
.industry-card li::before { content: ''; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-secondary); }

/* --- Plan card pricing --- */
.plan-price { font-size: 2.25rem; font-weight: 800; color: var(--text); margin: 0; letter-spacing: -0.02em; }
.plan-period { font-size: 14px; color: var(--muted); margin: 0; }

/* --- FAQ --- */
.faq-item { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.faq-question { padding: 18px 20px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; cursor: pointer; background: rgba(255,255,255,0.85); user-select: none; font-size: 15px; }
.faq-question:hover { background: rgba(59,130,246,0.03); }
.faq-answer { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s; color: var(--muted); font-size: 15px; line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 500px; padding: 0 20px 18px; }
.faq-icon { transition: transform 0.3s; color: var(--accent); font-size: 14px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* --- Contact method card --- */
.contact-method-card {
    padding: 28px 24px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.85);
    text-align: center;
    height: 100%;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.contact-method-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contact-method-card .icon-box { margin-bottom: 0; width: 54px; height: 54px; font-size: 22px; }
.contact-method-card h4 { margin: 0; font-size: 16px; }
.contact-method-card p { color: var(--muted); margin: 0; font-size: 14px; }
.contact-method-card a { color: var(--accent); font-weight: 600; font-size: 15px; text-decoration: none; }

/* --- Value card (nosotros) --- */
.value-card { padding: 24px; border-radius: 16px; border: 1px solid var(--border); background: rgba(255,255,255,0.85); box-shadow: var(--shadow); }
.value-card h4 { margin: 12px 0 8px; font-size: 16px; }
.value-card p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.65; }

/* --- Calculator --- */
.calc-card { background: rgba(255,255,255,0.85); border: 1px solid rgba(203,213,225,0.5); border-radius: 16px; padding: 28px; box-shadow: 0 10px 40px rgba(59,130,246,0.1); }
.calc-highlight { font-size: 2.2rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; margin: 0; }
.calc-subtle { color: var(--muted); }
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-top: 16px; }

/* --- Forms --- */
.form-control, .form-select {
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    padding: 10px 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 15px;
    background: #fff;
}
.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
    outline: none;
}
textarea.form-control { resize: vertical; }
.form-label { font-weight: 600; margin-bottom: 6px; font-size: 14px; color: var(--text); }

/* --- Misc helpers --- */
.text-accent { color: var(--accent); }
.section-divider { height: 1px; background: var(--border); margin: 0; }
.link-arrow { color: var(--accent); font-weight: 600; }
.link-arrow:hover { color: var(--accent-strong); }
