/*
Theme Name: Impresión Rígida
Theme URI: https://impresionrigida.com
Author: Ariseweb Digital
Author URI: https://ariseweb.com
Description: Tema propio para impresionrigida.com — Bootstrap 5.3
Version: 2.0.0
Requires at least: 6.3
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: impresionrigida
*/

/* ==========================================================================
   0. @FONT-FACE — Arquitecta (self-hosted)
   ========================================================================== */

@font-face {
    font-family: "Arquitecta";
    src: url("fonts/arquitecta-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Arquitecta";
    src: url("fonts/arquitecta-bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   1. CSS VARIABLES (Bootstrap overrides)
   ========================================================================== */

:root {
    --irt-primary: #0B3A62;
    --irt-accent: #00ACC1;
    --irt-dark: #1B2B50;
    --irt-text: #607D8B;
    --irt-gray-light: #F5F7FA;
    --irt-border: #e0e6ed;
    --bs-body-font-family: 'Montserrat', sans-serif;
    --bs-body-color: #607D8B;
    --bs-link-color: var(--irt-primary);
    --bs-link-hover-color: var(--irt-accent);
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--irt-text);
    font-weight: normal;
    font-size: 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Arquitecta', 'Montserrat', sans-serif;
    color: var(--irt-dark);
    font-weight: 700;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

@media (min-width: 1200px) {
    .h2, h2 {
        font-size: 3rem;
    }
}

a {
    text-decoration: none;
    transition: color 0.2s ease;
}

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

p{
    line-height: 1.7;
}

p.lead{
    border-left: 2px solid var(--irt-accent);
    padding-left: 2rem;
}

b, strong {
    font-weight: 600;
}

/* ==========================================================================
   2. HEADER
   ========================================================================== */

.irt-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    box-shadow: 0 2px 8px rgba(11, 58, 98, 0.06);
}

.irt-header__top {
    padding: 0.75rem 0;
}

.irt-header__logo img {
    height: 60px;
    width: auto;
}

/* Search */
.irt-header__search {
    flex: 1;
    max-width: 420px;
    position: relative;
}

.irt-header__search .form-control {
    padding: 0.5rem 2rem  0.5rem 1rem;
    border-color: var(--irt-border);
    background-color: var(--irt-gray-light);
    font-size: 0.875rem;
    border-radius: 10px;
}

.irt-header__search .form-control:focus {
    border-color: var(--irt-accent);
    box-shadow: 0 0 0 0.2rem rgba(0, 172, 193, 0.15);
}

.irt-header__search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: var(--irt-text);
    padding: 4px;
    line-height: 1;
}

/* Actions */
.irt-header__phone {
    font-weight: 600;
    color: var(--irt-primary);
    white-space: nowrap;
}

.irt-header__phone a {
    color: var(--irt-primary);
}

.irt-header__phone a:hover {
    color: var(--irt-accent);
}

.irt-header__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--irt-text);
}

.irt-header__link:hover {
    color: var(--irt-accent);
}

.irt-header__icon {
    position: relative;
    color: var(--irt-primary);
    font-size: 1.35rem;
}

.irt-header__icon:hover {
    color: var(--irt-accent);
}

.irt-header__cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 50%;
    background: var(--irt-accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

/* Primary nav in header */
.irt-header__top .nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--irt-text);
    padding: 0.4rem 0.75rem;
}

.irt-header__top .nav-link:hover,
.irt-header__top .nav-link.active {
    color: var(--irt-accent);
}

/* ==========================================================================
   3. HERO
   ========================================================================== */

.irt-hero {
    background: linear-gradient(135deg, var(--irt-primary) 0%, var(--irt-accent) 100%);
    color: #fff;
    padding: 3rem 0;
    overflow: hidden;
}

@media (min-width: 992px) {
    .irt-hero {
        padding: 4rem 3rem;
        border-radius: 16px;
        margin-top: 1.5rem;
    }
}

.irt-hero h1 {
    font-family: 'Arquitecta', sans-serif;
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .irt-hero h1 {
        font-size: 2.25rem;
    }
}

@media (min-width: 992px) {
    .irt-hero h1 {
        font-size: 2.75rem;
    }
}

.irt-hero p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 480px;
}

.irt-hero__img {
    border-radius: 12px;
}

/* ==========================================================================
   4. SECTIONS
   ========================================================================== */

.irt-section {
    padding: 3.5rem 0;
}

@media (min-width: 992px) {
    .irt-section {
        padding: 5rem 0;
    }
}

.irt-section__subtitle {
    color: var(--irt-text);
    max-width: 1000px;
    margin: 0 auto 2.5rem;
}

/* ==========================================================================
   5. MATERIAL CARDS
   ========================================================================== */

.irt-material-card {
    display: block;
    background: #fff;
    border: 1px solid var(--irt-border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.irt-material-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(11, 58, 98, 0.1);
}

.irt-material-card__image {
    aspect-ratio: 8/9;
    overflow: hidden;
    background: var(--irt-gray-light);
    position: relative;
}

.irt-material-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.irt-material-card:hover .irt-material-card__image img {
    transform: scale(1.05);
}

.irt-material-card__price-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--irt-accent);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    line-height: 1.4;
    pointer-events: none;
}

.irt-material-card__body {
    padding: 1rem;
    text-align: center;
}

.irt-material-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--irt-dark);
    margin: 0;
}

/* Help card */
.irt-help-card {
    background: var(--irt-gray-light);
    border: 2px dashed var(--irt-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    height: 100%;
    transition: border-color 0.2s ease;
}

.irt-help-card:hover {
    border-color: var(--irt-accent);
}

.irt-help-card i {
    font-size: 2rem;
    color: var(--irt-accent);
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   6. FEATURE CARDS
   ========================================================================== */

.irt-feature-card {
    background: #fff;
    border: 1px solid var(--irt-border);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
}

.irt-feature-card__icon {
    display: block;
    width: 48px;
    height: 48px;
}

.irt-feature-card__icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.irt-feature-card__title {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--irt-dark);
    margin-top: 0;
    margin-bottom: 0.75rem;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.irt-feature-card__text {
    font-size: 0.95rem;
    color: var(--irt-text);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   7. TWO-COLUMN SECTIONS
   ========================================================================== */

.irt-two-col__media img {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(11, 58, 98, 0.08);
}

/* ==========================================================================
   8. CTA SECTION
   ========================================================================== */

.irt-cta {
    background: linear-gradient(135deg, var(--irt-primary) 0%, var(--irt-dark) 100%);
    color: #fff;
    padding: 3.5rem 0;
}

.irt-cta h2 {
    color: #fff;
}

.irt-cta p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   9. BUTTONS (brand overrides on Bootstrap)
   ========================================================================== */

.btn {
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
}

.btn-primary {
    --bs-btn-bg: var(--irt-primary);
    --bs-btn-border-color: var(--irt-primary);
    --bs-btn-hover-bg: var(--irt-dark);
    --bs-btn-hover-border-color: var(--irt-dark);
    --bs-btn-active-bg: var(--irt-dark);
    --bs-btn-active-border-color: var(--irt-dark);
}

.btn-accent {
    background: var(--irt-accent);
    border-color: var(--irt-accent);
    color: #fff;
}

.btn-accent:hover {
    background: #43c5d3;
    border-color: var(--irt-accent);
    color: #fff;
}

.btn-outline-light:hover {
    color: var(--irt-primary);
}

/* ==========================================================================
   12. FOOTER
   ========================================================================== */

.irt-footer {
    background: var(--irt-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 3.5rem 0 0;
}

.irt-footer h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.irt-footer a {
    color: rgba(255, 255, 255, 0.7);
}

.irt-footer a:hover {
    color: var(--irt-accent);
}

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

.irt-footer__list li {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.irt-footer__list li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.irt-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
    margin-top: 2.5rem;
    font-size: 0.8rem;
}

/* ==========================================================================
   13. BREADCRUMBS
   ========================================================================== */

.irt-breadcrumbs {
    padding: 0.75rem 0;
    font-size: 0.8125rem;
    background: var(--irt-gray-light);
}

.irt-breadcrumbs a {
    color: var(--irt-text);
}

.irt-breadcrumbs a:hover {
    color: var(--irt-accent);
}

/* ==========================================================================
   14. BLOG CARDS
   ========================================================================== */

.irt-post-card {
    border: 1px solid var(--irt-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    background: #fff;
}

.irt-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(11, 58, 98, 0.08);
}

.irt-post-card__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.irt-post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.irt-post-card__body {
    padding: 1.25rem;
}

.irt-post-card__tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--irt-accent);
    margin-bottom: 0.5rem;
}

.irt-post-card__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.irt-post-card__title a {
    color: var(--irt-dark);
}

.irt-post-card__title a:hover {
    color: var(--irt-accent);
}

.irt-post-card__meta {
    font-size: 0.8rem;
    color: var(--irt-text);
}

/* ==========================================================================
   15. SINGLE POST
   ========================================================================== */

.irt-prose {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--irt-text);
}

.irt-prose p {
    margin-bottom: 1.25rem;
}

.irt-prose h2, .irt-prose h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.irt-prose img {
    border-radius: 8px;
}

.irt-prose ul, .irt-prose ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

/* ==========================================================================
   16. PRODUCT CARDS (WooCommerce)
   ========================================================================== */

.irt-product-card {
    border: 1px solid var(--irt-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.irt-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(11, 58, 98, 0.1);
}

.irt-product-card__image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--irt-gray-light);
}

.irt-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.irt-product-card__body {
    padding: 1.25rem;
    text-align: center;
}

/* ==========================================================================
   17. FAQs
   ========================================================================== */

.irt-faq details {
    border: 1px solid var(--irt-border);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.irt-faq summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--irt-dark);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.irt-faq summary::-webkit-details-marker {
    display: none;
}

.irt-faq summary::after {
    content: "\F282";
    font-family: 'bootstrap-icons';
    transition: transform 0.2s ease;
    color: var(--irt-accent);
}

.irt-faq details[open] summary::after {
    transform: rotate(180deg);
}

.irt-faq details[open] summary {
    border-bottom: 1px solid var(--irt-border);
}

.irt-faq .faq-answer {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: var(--irt-text);
    line-height: 1.7;
}

/* ==========================================================================
   18. PAGINATION
   ========================================================================== */

.pagination .page-link {
    color: var(--irt-primary);
    border-color: var(--irt-border);
}

.pagination .page-item.active .page-link {
    background-color: var(--irt-primary);
    border-color: var(--irt-primary);
}

.pagination .page-link:hover {
    color: var(--irt-accent);
}

/* ==========================================================================
   19. 404 & SEARCH
   ========================================================================== */

.irt-empty-state {
    padding: 5rem 0;
    text-align: center;
}

.irt-empty-state i {
    font-size: 4rem;
    color: var(--irt-border);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   20. UTILITIES
   ========================================================================== */

.bg-light-custom {
    background-color: var(--irt-gray-light) !important;
}

.text-accent {
    color: var(--irt-accent) !important;
}

.text-primary-custom {
    color: var(--irt-primary) !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}



/* ==========================================================================
   21. LISTAS
   ========================================================================== */
.irt-features__list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-left: 2px solid var(--irt-accent);
}

.irt-features__list li {
    padding-left: 24px;
    position: relative;
    color: var(--color-text);
    font-size: 16px;
    line-height: 26px;
}

.irt-features__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-accent);
}