:root {
    --brand: #9D162E;
    --brand-dark: #7a1024;
    --bg: #f8fafc;
    --border: #e2e8f0;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: #334155;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.te-header {
    background: var(--brand);
    color: white;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.te-header-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: inherit;
    font-family: inherit;
}

.te-header-brand:hover .te-header-title {
    text-decoration: underline;
}

.te-header-logo {
    height: 4.5rem;
    width: auto;
    background: white;
    border-radius: 0.25rem;
    padding: 0.3rem 0.6rem;
}

.te-header-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.te-header-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.85;
}

.te-main {
    flex: 1;
    display: flex;
    position: relative;
}

.te-home {
    margin: 0 auto;
    padding: 3rem 1.5rem;
    max-width: 64rem;
    width: 100%;
}

.te-home-titulo {
    color: var(--brand);
    font-size: 1.75rem;
    margin: 0 0 0.35rem;
}

.te-home-subtitulo {
    color: #64748b;
    margin: 0 0 2rem;
}

.te-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.te-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    border-top: 4px solid var(--brand);
}

.te-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: var(--brand);
}

.te-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: top;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.te-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.te-card-titulo {
    color: var(--brand);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.te-card-desc {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0 0 1rem;
}

.te-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 600;
}

.te-frame {
    flex: 1;
    width: 100%;
    border: none;
    display: none;
}

.te-footer {
    text-align: center;
    padding: 0.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
    border-top: 1px solid var(--border);
    background: white;
}
