/* ============================================================================
   Impulsa TEC — Layout páginas públicas internas
   ============================================================================ */

.subhero {
    background: var(--gradient-hero, #FFF9F3);
    padding: 3rem 0 2.25rem;
    border-bottom: 1px solid var(--border, #E8DFD3);
    position: relative;
    overflow: hidden;
}

.subhero::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 180, 41, 0.14) 0%, transparent 70%);
    top: -80px;
    right: -40px;
    pointer-events: none;
}

.subhero .container {
    position: relative;
    z-index: 1;
}

.subhero h1 {
    max-width: 18ch;
}

.subhero p {
    max-width: 640px;
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 1.05rem;
}

.page-section {
    padding: 3.25rem 0;
}

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

.info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md, 20px);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(31, 42, 36, 0.04));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md, 0 8px 30px rgba(31, 42, 36, 0.06));
}

.info-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.65rem;
}

.info-card p,
.info-card li {
    color: var(--text-light);
}

.info-list {
    list-style: none;
    padding-left: 0;
}

.info-list li {
    margin-bottom: 0.55rem;
    padding-left: 1.35rem;
    position: relative;
}

.info-list li::before {
    content: '•';
    position: absolute;
    left: 0.35rem;
    color: var(--primary);
    font-weight: 800;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md, 20px);
    border: 1px solid var(--border);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    min-width: 560px;
}

.price-table th,
.price-table td {
    padding: 1.05rem 1.15rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table th {
    background: #FFF9F3;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    color: var(--secondary);
    font-weight: 750;
}

.price-tag {
    font-weight: 800;
    color: var(--success);
    white-space: nowrap;
    font-size: 1.02rem;
}

.price-row-highlight {
    background: rgba(224, 122, 61, 0.06);
}

.price-row-highlight td:first-child {
    box-shadow: inset 3px 0 0 var(--primary);
}

.legal-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm, 12px);
    padding: 1.25rem 1.35rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.legal-box h3 {
    margin-bottom: 0.55rem;
    font-size: 1.05rem;
}

.legal-box p {
    margin-bottom: 0.5rem;
}

.muted-note {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 1.25rem;
}

.contact-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md, 20px);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-light);
}

.contact-list li:last-child {
    border-bottom: none;
}

.contact-list strong {
    color: var(--text);
    display: block;
    margin-bottom: 0.15rem;
}

.form-grid {
    display: grid;
    gap: 1rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 650;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm, 12px);
    padding: 0.8rem 0.9rem;
    font: inherit;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.form-field textarea {
    min-height: 130px;
    resize: vertical;
}

.status-msg {
    display: none;
    margin-top: 1rem;
    border-radius: var(--radius-sm, 12px);
    padding: 0.8rem 0.9rem;
    font-size: 0.92rem;
}

.status-msg.success {
    display: block;
    background: rgba(47, 158, 107, 0.12);
    color: #1F7A52;
    border: 1px solid rgba(47, 158, 107, 0.28);
}

.status-msg.error {
    display: block;
    background: rgba(214, 69, 69, 0.1);
    color: #A83333;
    border: 1px solid rgba(214, 69, 69, 0.25);
}

.small-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--secondary-soft, rgba(47, 93, 80, 0.1));
    color: var(--secondary);
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(47, 93, 80, 0.1);
}

.blog-meta {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.guide-format {
    margin-top: 0.75rem;
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 700;
}

/* Catálogo helpers reutilizables */
.filters-section {
    background: var(--white);
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--nav-height, 72px);
    z-index: 10;
}

.filters-container {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.search-box {
    flex: 1;
    min-width: min(100%, 260px);
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.6rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-full, 999px);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.search-box::before {
    content: "🔍";
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.55;
    font-size: 0.9rem;
}

.filter-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-full, 999px);
    background: var(--white);
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    padding: 2.5rem 0;
}

@media (max-width: 860px) {
    .contact-wrap {
        grid-template-columns: 1fr;
    }

    .price-table {
        font-size: 0.9rem;
    }

    .price-table th,
    .price-table td {
        padding: 0.8rem;
    }
}

@media (max-width: 768px) {
    .subhero {
        padding: 2.25rem 0 1.75rem;
    }

    .subhero h1 {
        max-width: none;
    }

    .page-section {
        padding: 2.5rem 0;
    }

    .filters-section {
        position: static;
    }
}
