/*
Theme Name: Tejar Magazine
Theme URI: https://tejarsantateresa.com
Author: Tejar Santa Teresa
Description: Magazine Bold editorial theme for reformas del hogar
Version: 1.0.0
Text Domain: tejar-magazine
*/

/* ============================================================
   RESET & BASE — exact match preview #2
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', serif;
    background-color: #FAFAFA;
    color: #1A1A1A;
    line-height: 1.7;
    font-size: 16px;
    text-align: justify;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #E63946;
    text-decoration: none;
}

a:hover {
    color: #C62834;
}

strong {
    font-weight: 700;
    color: #1A1A1A;
}

em {
    font-style: italic;
}

ul, ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background-color: #FAFAFA;
    padding: 20px 0;
    border-bottom: 3px solid #1A1A1A;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #1A1A1A;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.site-logo svg {
    width: 140px;
    height: 28px;
    display: block;
}

.site-logo:hover {
    text-decoration: none;
}

/* Desktop nav — wp_nav_menu outputs <ul><li><a> */
.header-nav {
    display: none;
}

.header-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.header-nav li {
    margin: 0;
}

.header-nav a {
    display: block;
    padding: 0;
    color: #1A1A1A;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.header-nav a:hover {
    color: #E63946;
    text-decoration: none;
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #1A1A1A;
    transition: 0.3s;
}

/* ============================================================
   MOBILE MENU — wp_nav_menu outputs <ul><li><a>
   ============================================================ */
.mobile-menu {
    display: none;
    position: absolute;
    top: 75px;
    right: 20px;
    background: white;
    border: 1px solid #E0E0E0;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 99;
    flex-direction: column;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mobile-menu li {
    border-bottom: 1px solid #F1F1F1;
    margin: 0;
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu a {
    display: block;
    padding: 12px 20px;
    color: #1A1A1A;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    transition: background-color 0.3s;
}

.mobile-menu a:hover {
    background-color: #F1F1F1;
    color: #E63946;
    text-decoration: none;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
    max-width: 760px;
    margin: 30px auto 0;
    padding: 0 20px;
    font-size: 13px;
    color: #555;
}

.breadcrumb a {
    color: #555;
    text-decoration: none;
    border-bottom: 1px dotted #555;
}

.breadcrumb a:hover {
    color: #E63946;
    border-bottom-color: #E63946;
    text-decoration: none;
}

/* ============================================================
   ARTICLE HEADER
   ============================================================ */
.article-header {
    max-width: 760px;
    margin: 40px auto;
    padding: 0 20px;
}

.category-tag {
    display: inline-block;
    background-color: #E63946;
    color: white;
    padding: 6px 12px;
    font-size: 12px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

h1 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1A1A1A;
    letter-spacing: -1px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #E0E0E0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.article-meta strong {
    color: #1A1A1A;
}

/* ============================================================
   ARTICLE IMAGE
   ============================================================ */
.article-image {
    max-width: 760px;
    margin: 0 auto 30px;
    padding: 0 20px;
    overflow: hidden;
    border-radius: 12px;
}

.article-image img {
    border-radius: 12px;
    transition: transform 0.4s ease;
    display: block;
    width: 100%;
}

.article-image:hover img {
    transform: scale(1.05);
}

/* Body images inserted by inject-article.sh */
.article-content figure.body-image {
    max-width: 760px;
    margin: 30px auto;
    overflow: hidden;
    border-radius: 10px;
}

.article-content figure.body-image img {
    border-radius: 10px;
    display: block;
    width: 100%;
    height: auto;
}

/* ============================================================
   ARTICLE CONTENT
   ============================================================ */
.article-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.article-content .intro {
    font-size: 1.1rem;
    font-style: italic;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.8;
}

.article-content h2 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 50px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #1A1A1A;
    color: #1A1A1A;
}

.article-content h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #1A1A1A;
}

.article-content a {
    color: #E63946;
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

.article-content strong {
    font-weight: 700;
    color: #1A1A1A;
}

.article-content ul,
.article-content ol {
    margin-left: 0;
    padding-left: 40px;
    margin-bottom: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

/* ============================================================
   TABLES
   ============================================================ */
.article-content table,
.price-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0 40px;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.article-content th,
.price-table-wrapper th {
    background-color: #E63946;
    color: white;
    padding: 15px;
    text-align: left;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 14px;
}

.article-content td,
.price-table-wrapper td {
    padding: 15px;
    border-bottom: 1px solid #F1F1F1;
}

.article-content tbody tr:nth-child(even),
.price-table-wrapper tbody tr:nth-child(even) {
    background-color: #F9F9F9;
}

.article-content tbody tr:hover,
.price-table-wrapper tbody tr:hover {
    background-color: #F3F3F3;
}

.price-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 30px 0;
}

.price-table-wrapper table {
    margin: 0;
}

/* ============================================================
   NOTA PERSONAL DE VÍCTOR
   ============================================================ */
.nota-personal {
    background-color: #FCE4E6;
    border-left: 4px solid #E63946;
    padding: 20px;
    margin: 30px 0;
    border-radius: 2px;
}

.nota-personal-label {
    color: #E63946;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.nota-personal p,
.nota-personal-content p {
    margin-bottom: 0;
    text-align: justify;
}

/* ============================================================
   PULL QUOTE
   ============================================================ */
.pull-quote {
    border-left: 4px solid #E63946;
    padding-left: 20px;
    margin: 40px 0;
    font-size: 1.3rem;
    font-style: italic;
    color: #333;
    font-family: 'Lora', serif;
}

.pull-quote::before {
    content: '\201C';
    font-size: 3rem;
    color: #E63946;
    line-height: 0;
    margin-right: 5px;
}

/* ============================================================
   RED FLAGS
   ============================================================ */
.red-flags {
    background-color: #FFF3F4;
    border: 2px solid #E63946;
    padding: 25px;
    margin: 30px 0;
    border-radius: 2px;
}

.red-flags-title {
    font-family: 'Oswald', sans-serif;
    color: #E63946;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 0;
    margin-bottom: 15px;
}

.red-flags ul {
    list-style: none;
    margin-left: 0;
}

.red-flags li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.red-flags li::before {
    content: '\26A0\FE0F';
    position: absolute;
    left: 0;
}

/* ============================================================
   HIGHLIGHT BOX
   ============================================================ */
.highlight-box {
    background-color: #F5F5F0;
    border-left: 4px solid #1A1A1A;
    padding: 25px;
    margin: 30px 0;
    border-radius: 2px;
}

.highlight-box-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* ============================================================
   CTA PRESUPUESTO
   ============================================================ */
.cta-presupuesto {
    background-color: #FFF3F3;
    border: 2px solid #E63946;
    border-radius: 6px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
}

.cta-presupuesto-text {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 15px;
}

.cta-presupuesto-btn {
    display: inline-block;
    background-color: #E63946;
    color: #FFFFFF;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-presupuesto-btn:hover {
    background-color: #C62828;
}

.article-content .cta-presupuesto-btn,
.article-content .cta-presupuesto-btn:hover {
    color: #FFFFFF;
    text-decoration: none;
}

/* ============================================================
   NOTA VICTOR — Personal note callout
   ============================================================ */
.nota-victor {
    background-color: #FFF8E1;
    border-left: 4px solid #E63946;
    border-radius: 4px;
    padding: 20px 25px;
    margin: 30px 0;
}

.nota-victor-label {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #E63946;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.nota-victor-content {
    font-family: 'Lora', serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    font-style: italic;
}

.nota-victor-content p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   AUTHOR CARD
   ============================================================ */
.author-card {
    background-color: #F1F1F1;
    padding: 30px;
    margin: 50px 0;
    border-radius: 2px;
    border-top: 3px solid #E63946;
}

.author-card:empty,
.author-card:has(.author-card-bio:empty) {
    display: none;
}

.author-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.author-card-avatar {
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.author-card-info {
    flex: 1;
}

.author-card-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #1A1A1A;
}

.author-card-bio {
    font-size: 14px;
    color: #555;
    margin: 0;
}

/* ============================================================
   RELATED POSTS
   ============================================================ */
.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 3px solid #1A1A1A;
}

.related-posts h2 {
    margin-top: 0;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.related-card {
    background-color: white;
    border: 1px solid #E0E0E0;
    padding: 20px;
    text-decoration: none;
    color: #1A1A1A;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.related-card,
.related-card:hover,
.related-card:hover * {
    text-decoration: none !important;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    border-color: #C0C0C0;
}

.related-card-category {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #E63946;
    margin-bottom: 8px;
}

.related-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    color: #1A1A1A;
    transition: color 0.2s ease;
}

.related-card:hover h3 {
    color: #444444 !important;
}

.related-card p {
    font-size: 13px;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1;
}

.related-card-date {
    font-size: 12px;
    color: #999;
    margin-top: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background-color: #1A1A1A;
    color: white;
    padding: 50px 20px;
    margin-top: 60px;
    /* Force full-width even if nested inside a constrained parent */
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
}

.footer-inner {
    max-width: 760px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #E63946;
    text-transform: uppercase;
}

.footer-desc {
    font-size: 14px;
    color: #CCC;
    line-height: 1.6;
}

/* Footer menus — wp_nav_menu outputs <ul><li><a> */
.footer-links,
.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li,
.footer-section li {
    margin-bottom: 8px;
}

.footer-links a,
.footer-section a {
    color: #CCC;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover,
.footer-section a:hover {
    color: #E63946;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #999;
}

/* ============================================================
   PAGE TEMPLATE
   ============================================================ */
.page-content {
    max-width: 760px;
    margin: 40px auto;
    padding: 0 20px 40px;
}

.page-content h1 {
    margin-bottom: 30px;
}

.page-content h2 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 40px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid #1A1A1A;
}

.page-content p {
    margin-bottom: 20px;
}

.page-content ul,
.page-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-content li {
    margin-bottom: 8px;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.page-content th {
    background-color: #E63946;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 14px;
}

.page-content td {
    padding: 12px 15px;
    border-bottom: 1px solid #F1F1F1;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
    max-width: 760px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
}

.error-404 h1 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(4rem, 10vw, 6rem);
    color: #F1F1F1;
    font-weight: 700;
    margin-bottom: 10px;
}

.error-404 h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border-bottom: none;
}

.error-404 p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}

.btn-home {
    display: inline-block;
    background-color: #E63946;
    color: white;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    padding: 12px 24px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-home:hover {
    background-color: #C62D3A;
    text-decoration: none;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}

.page-numbers {
    font-family: 'Oswald', sans-serif;
    padding: 8px 14px;
    border: 1px solid #E0E0E0;
    text-decoration: none;
    color: #1A1A1A;
    transition: all 0.3s;
}

.page-numbers.current {
    background-color: #E63946;
    color: white;
    border-color: #E63946;
}

.page-numbers:hover {
    border-color: #E63946;
    color: #E63946;
    text-decoration: none;
}

/* ============================================================
   RESPONSIVE — Desktop 768px+
   ============================================================ */
@media (min-width: 768px) {
    .header-nav {
        display: block;
    }

    .hamburger {
        display: none;
    }

    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   PAGE TEMPLATES — SHARED CLASSES
   ============================================================ */
.page-section {
    padding: 40px 0;
}

.section-gray {
    background: #F1F1F1;
    padding: 40px 0;
}

.hero-illustration {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

@media (min-width: 768px) {
    .hero-illustration {
        max-width: 600px;
    }
}

.icon-inline {
    display: inline-block;
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
}

/* ============================================================
   HOME PAGE
   ============================================================ */
.home-hero {
    text-align: center;
    padding: 60px 20px;
}

.home-hero h1 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.2rem);
    text-transform: uppercase;
    color: #1A1A1A;
    margin-bottom: 15px;
}

.home-hero .subtitle {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

.home-hero .btn-cta {
    display: inline-block;
    background: #E63946;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 35px;
    text-decoration: none;
    transition: background 200ms ease;
    cursor: pointer;
}

.home-hero .btn-cta:hover {
    background: #C62834;
}

.home-intro {
    background: #F1F1F1;
    padding: 40px 20px;
}

.home-intro .home-intro-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    max-width: 760px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .home-intro .home-intro-inner {
        flex-direction: row;
    }
}

.home-intro .avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.featured-card {
    background: #fff;
    border: 1px solid #E0E0E0;
    overflow: hidden;
    transition: transform 200ms ease, box-shadow 200ms ease;
    cursor: pointer;
}

.featured-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}

.featured-card .card-image {
    width: 100%;
    height: 180px;
    background: #E0E0E0;
    object-fit: cover;
}

.featured-card .card-body {
    padding: 20px;
}

.featured-card h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: #1A1A1A;
    margin: 10px 0;
}

.featured-card .excerpt {
    font-family: 'Lora', serif;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.topic-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .topic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.topic-card {
    border-left: 4px solid #E63946;
    padding: 20px 20px 20px 25px;
    background: #fff;
    transition: box-shadow 200ms ease, transform 200ms ease;
    cursor: pointer;
}

.topic-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    transform: translateY(-2px);
}

.topic-card h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    color: #1A1A1A;
    margin-bottom: 8px;
}

.topic-card p {
    font-family: 'Lora', serif;
    font-size: 14px;
    color: #555;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #E63946;
    display: block;
}

.stat-label {
    font-family: 'Lora', serif;
    font-size: 14px;
    color: #555;
    margin-top: 5px;
}

.disclaimer {
    max-width: 760px;
    margin: 30px auto;
    padding: 0 20px;
    font-size: 13px;
    color: #999;
    line-height: 1.6;
    font-style: italic;
}

/* ============================================================
   REFORMAS HUB PAGE
   ============================================================ */
.hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 480px) {
    .hub-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .hub-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hub-card {
    background: #fff;
    border: 1px solid #E0E0E0;
    overflow: hidden;
    transition: transform 200ms ease, box-shadow 200ms ease;
    cursor: pointer;
}

.hub-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}

.hub-card .card-image {
    width: 100%;
    height: 160px;
    background: #E0E0E0;
    object-fit: cover;
}

.hub-card .card-body {
    padding: 20px;
}

.hub-card h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    color: #1A1A1A;
    margin: 8px 0;
}

.hub-card .excerpt {
    font-family: 'Lora', serif;
    font-size: 13px;
    color: #555;
}

.faq-section {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-item {
    border-bottom: 1px solid #E0E0E0;
    padding: 20px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    color: #1A1A1A;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.faq-answer {
    font-family: 'Lora', serif;
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

.cta-section {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-section h2 {
    border-bottom: none;
}

.cta-section p {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
}

/* ============================================================
   PRECIOS PAGE
   ============================================================ */
.price-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .price-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.price-card {
    background: #fff;
    border: 1px solid #E0E0E0;
    border-top: 4px solid #E63946;
    padding: 25px;
    text-align: center;
}

.price-card-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    color: #1A1A1A;
    letter-spacing: 1px;
}

.price-card-amount {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #E63946;
    margin: 15px 0;
}

.price-card-detail {
    font-family: 'Lora', serif;
    font-size: 14px;
    color: #555;
}

.factors-list {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

.factors-list li {
    font-family: 'Lora', serif;
    font-size: 15px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 8px;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================================
   REDUCED MOTION — PAGE TEMPLATE OVERRIDES
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .featured-card,
    .hub-card,
    .price-card,
    .topic-card {
        transition: none;
    }

    .featured-card:hover,
    .hub-card:hover {
        transform: none;
    }
}

/* ============================================================
   UTILITY — CONTENT WRAPPER (F4)
   ============================================================ */
.content-wrapper {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   HOME HERO — BTN SPACING (F6)
   ============================================================ */
.home-hero .btn-home {
    margin-top: 25px;
    display: inline-block;
}

/* ============================================================
   HUB CARD LINK (F7)
   ============================================================ */
a.hub-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ============================================================
   FAQ FOCUS STATE (F9)
   ============================================================ */
.faq-question:focus {
    outline: 2px solid #E63946;
    outline-offset: 2px;
}

/* ============================================================
   INTRO NAME (F10)
   ============================================================ */
.intro-name {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   PRECIOS PAGE — LAYOUT FIX
   ============================================================ */
.page-precios .container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-precios .page-header {
    padding: 40px 0 20px;
}

.page-precios .page-intro {
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    max-width: 760px;
}

.page-precios section {
    padding: 40px 0;
}

.page-precios .section-gray {
    background: #F1F1F1;
}

.page-precios h2 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1A1A1A;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #E63946;
}

.page-precios .price-table-wrapper {
    overflow-x: auto;
}

.page-precios .price-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Lora', serif;
    font-size: 15px;
}

.page-precios .price-table th {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    background: #E63946;
    color: #fff;
    padding: 12px 16px;
    text-align: left;
}

.page-precios .price-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #E0E0E0;
    color: #333;
}

.page-precios .price-table tbody tr:hover {
    background: #F9F9F9;
}

.page-precios .table-note {
    font-family: 'Lora', serif;
    font-size: 13px;
    color: #777;
    margin-top: 15px;
    font-style: italic;
}

.page-precios .hero-illustration-wrapper {
    margin: 20px auto;
    max-width: 760px;
}

.page-precios .hero-illustration-wrapper svg {
    width: 100%;
    height: auto;
    max-height: 300px;
}

.page-precios .breadcrumb {
    font-family: 'Lora', serif;
    font-size: 13px;
    color: #999;
    padding: 15px 0;
}

.page-precios .breadcrumb a {
    color: #999;
}

.page-precios .breadcrumb a:hover {
    color: #E63946;
}

/* ============================================================
   LEGAL MODALS
   ============================================================ */
.legal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    position: relative;
    background: #fff;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #1A1A1A;
    line-height: 1;
}

.modal-close:hover {
    color: #E63946;
}

.modal-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1A1A1A;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #E63946;
}

.modal-body {
    font-family: 'Lora', serif;
    font-size: 15px;
    color: #333;
    line-height: 1.7;
}

.modal-body h2 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: #1A1A1A;
    margin: 25px 0 10px;
}

.modal-body h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #1A1A1A;
    margin: 20px 0 8px;
}

.modal-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
}

.modal-body th {
    background: #1A1A1A;
    color: #fff;
    padding: 8px 12px;
    text-align: left;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
}

.modal-body td {
    padding: 8px 12px;
    border-bottom: 1px solid #E0E0E0;
}

/* ============================================================
   FOOTER LOGO SVG
   ============================================================ */
.footer-logo svg {
    width: 120px;
    height: 24px;
    display: block;
}

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #E63946;
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: #E63946;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #C62834;
}

/* ============================================================
   REDUCED MOTION — COUNTUP
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .topic-card:hover {
        transform: none;
    }
}
