/* ============================================================
   RED CIRCUITO — Custom Stylesheet
   ============================================================ */

/* ===== VARIABLES ===== */
:root {
    --rc-black:      #1a1a1a;
    --rc-dark:       #f8f9fa;
    --rc-darker:     #f1f3f5;
    --rc-card:       #ffffff;
    --rc-red:        #E84520;
    --rc-red-hover:  #d93a18;
    --rc-red-dim:    rgba(232, 69, 32, 0.10);
    --rc-red-border: rgba(232, 69, 32, 0.35);
    --rc-white:      #ffffff;
    --rc-gray:       #6b7280;
    --rc-light:      #374151;
    --rc-border:     rgba(0, 0, 0, 0.08);
    --rc-font:       'Inter', sans-serif;
    --rc-ease:       all 0.3s ease;
    --rc-radius:     8px;
}

/* ===== RESET / BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: #ffffff;
    color: var(--rc-black);
    font-family: var(--rc-font);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--rc-black);
    line-height: 1.2;
}

a {
    color: var(--rc-red);
    text-decoration: none;
    transition: var(--rc-ease);
}
a:hover { color: var(--rc-red-hover); }

img { max-width: 100%; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--rc-darker); }
::-webkit-scrollbar-thumb { background: var(--rc-red); border-radius: 3px; }

/* ===== UTILITY ===== */
.text-red   { color: var(--rc-red)   !important; }
.text-gray  { color: var(--rc-gray)  !important; }
.text-light-gray { color: var(--rc-light) !important; }
.bg-dark-card { background: var(--rc-card); }

.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rc-red);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -1px;
}

.divider-red {
    width: 56px;
    height: 4px;
    background: var(--rc-red);
    border-radius: 2px;
    margin: 1.25rem 0 2rem;
}

.divider-red.centered { margin: 1.25rem auto 2rem; }

/* ===== NAVBAR ===== */
.navbar-rc {
    background: rgba(28, 28, 28, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--rc-border);
    padding: 0.6rem 0;
    transition: var(--rc-ease);
    z-index: 1050;
}

.navbar-rc.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.navbar-rc .navbar-brand {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--rc-white) !important;
    letter-spacing: -0.5px;
}
.navbar-rc .navbar-brand span { color: var(--rc-red); }

.navbar-rc .nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 0.5rem 1.1rem !important;
    position: relative;
    transition: var(--rc-ease);
}
.navbar-rc .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.1rem;
    right: 1.1rem;
    height: 2px;
    background: var(--rc-red);
    transform: scaleX(0);
    transition: transform 0.25s ease;
    border-radius: 2px;
}
.navbar-rc .nav-link:hover,
.navbar-rc .nav-link.active-link {
    color: var(--rc-white) !important;
}
.navbar-rc .nav-link:hover::after,
.navbar-rc .nav-link.active-link::after {
    transform: scaleX(1);
}

.navbar-toggler {
    border-color: var(--rc-border) !important;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ===== BUTTONS ===== */
.btn-rc {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--rc-red);
    color: var(--rc-white);
    border: 2px solid var(--rc-red);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.8rem 2rem;
    border-radius: var(--rc-radius);
    transition: var(--rc-ease);
    cursor: pointer;
}
.btn-rc:hover {
    background: var(--rc-red-hover);
    border-color: var(--rc-red-hover);
    color: var(--rc-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(232, 69, 32, 0.35);
}

.btn-rc-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--rc-white);
    border: 2px solid rgba(255,255,255,0.5);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.8rem 2rem;
    border-radius: var(--rc-radius);
    transition: var(--rc-ease);
    cursor: pointer;
}
.btn-rc-outline:hover {
    background: var(--rc-white);
    border-color: var(--rc-white);
    color: var(--rc-black);
    transform: translateY(-2px);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    background: #160e0a;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Orbe grande animado derecha */
.hero::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,69,32,0.18) 0%, rgba(232,69,32,0.04) 50%, transparent 70%);
    top: 50%;
    right: -8%;
    transform: translateY(-50%);
    animation: heroOrbFloat 8s ease-in-out infinite alternate;
    z-index: 1;
    pointer-events: none;
}

/* Anillo decorativo */
.hero::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 1px solid rgba(232,69,32,0.18);
    box-shadow: 0 0 60px rgba(232,69,32,0.08) inset;
    top: 50%;
    right: 8%;
    transform: translateY(-50%) rotate(0deg);
    animation: heroRingSpin 25s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes heroOrbFloat {
    0%   { transform: translateY(-50%) scale(1);    opacity: 0.8; }
    100% { transform: translateY(-53%) scale(1.12); opacity: 1; }
}
@keyframes heroRingSpin {
    0%   { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 75% at 88% 42%, rgba(232,69,32,0.32) 0%, rgba(232,69,32,0.06) 50%, transparent 68%),
        radial-gradient(ellipse 40% 50% at 5% 85%,  rgba(232,69,32,0.15) 0%, transparent 55%),
        radial-gradient(ellipse 60% 35% at 50% -5%, rgba(232,69,32,0.09) 0%, transparent 60%),
        linear-gradient(150deg, #130d0a 0%, #1e1008 35%, #1f1510 65%, #1c1c1c 100%);
    animation: heroGlowPulse 7s ease-in-out infinite alternate;
}
@keyframes heroGlowPulse {
    0%   { opacity: 0.88; }
    100% { opacity: 1; }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(232,69,32,0.35) 1.2px, transparent 1.2px);
    background-size: 36px 36px;
    -webkit-mask-image: radial-gradient(ellipse 85% 85% at 60% 50%, black 15%, transparent 100%);
    mask-image: radial-gradient(ellipse 85% 85% at 60% 50%, black 15%, transparent 100%);
    animation: dotsDrift 20s ease-in-out infinite alternate;
}
@keyframes dotsDrift {
    0%   { background-position: 0 0; }
    100% { background-position: 18px 18px; }
}

.hero-content { position: relative; z-index: 2; }

.hero-brand-line { margin-bottom: 1.5rem; }
.hero-logo {
    height: 72px;
    object-fit: contain;
    display: block;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(229,9,20,0.12);
    border: 1px solid var(--rc-red-border);
    color: var(--rc-red);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    color: #ffffff;
}
.hero-title .accent { color: var(--rc-red); }

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    max-width: 480px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-screen {
    background: #1e1e1e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
}
.hero-screen::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rc-red), transparent);
}

.screen-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: linear-gradient(180deg, #1c1c1c 0%, #282828 100%);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding: 2.5rem 0;
    position: relative;
}
.stats-bar::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.08));
    pointer-events: none;
}

.stat-item { text-align: center; }

.stat-number {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--rc-red);
    line-height: 1;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 0.75rem;
    color: #9a9a9a;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0.4rem;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    background: rgba(255,255,255,0.08);
    align-self: stretch;
    margin: 0 auto;
}

/* ===== CARDS ===== */
.card-rc {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: var(--rc-radius);
    transition: var(--rc-ease);
    overflow: hidden;
    height: 100%;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.card-rc:hover {
    border-color: var(--rc-red-border);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(232,69,32,0.15), 0 0 0 1px var(--rc-red-border);
}

.service-icon-wrap {
    width: 60px;
    height: 60px;
    background: var(--rc-red-dim);
    border: 1px solid var(--rc-red-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--rc-red);
    margin-bottom: 1.5rem;
    transition: var(--rc-ease);
}
.card-rc:hover .service-icon-wrap {
    background: var(--rc-red);
    border-color: var(--rc-red);
    color: var(--rc-white);
    transform: scale(1.08);
}

/* ===== PAGE HERO ===== */
.page-hero {
    padding: 7rem 0 4rem;
    background: linear-gradient(160deg, #1a1a1a 0%, #2d0e04 100%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232,69,32,0.12) 0%, transparent 65%);
    border-radius: 50%;
}

.page-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -1.5px;
    color: #ffffff;
}

.breadcrumb-rc {
    font-size: 0.8rem;
    color: #9a9a9a;
    margin-bottom: 1rem;
}
.breadcrumb-rc a { color: #9a9a9a; }
.breadcrumb-rc a:hover { color: #ffffff; }
.breadcrumb-rc span { color: var(--rc-red); }

/* ===== BLOG SECTIONS ===== */
.section-posts       { padding: 4rem 0 5rem; }
.section-posts-empty { padding: 1rem 0; }

/* ── Post destacado ── */
.post-featured-link {
    display: block;
    text-decoration: none;
    margin-bottom: 2rem;
}
.post-featured {
    background: var(--rc-card);
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius);
    overflow: hidden;
    transition: var(--rc-ease);
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.post-featured:hover {
    border-color: var(--rc-red-border);
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(232,69,32,0.15);
}
.post-featured-img-wrap { overflow: hidden; }
.post-featured-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.post-featured:hover .post-featured-img { transform: scale(1.03); }
.post-featured-body { padding: 2rem; }
.post-featured-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--rc-black);
    margin: 0.5rem 0 0.85rem;
    line-height: 1.3;
    letter-spacing: -0.3px;
}
.post-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--rc-red);
    font-weight: 700;
    margin-top: 0.9rem;
    transition: gap 0.2s;
}
.post-featured:hover .post-readmore,
.post-card:hover .post-readmore { gap: 0.6rem; }

/* ── Blog sidebar ── */
.blog-sidebar {
    position: sticky;
    top: 90px;
}
.sidebar-header {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--rc-gray);
    padding: 0 0 0.75rem;
    border-bottom: 1px solid var(--rc-border);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sidebar-header i { color: var(--rc-red); font-size: 0.9rem; }

/* ── Tarjeta publicidad sidebar ── */
.pub-card {
    background: var(--rc-card);
    border: 1px solid var(--rc-border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.pub-card:hover {
    border-color: var(--rc-red-border);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(232,69,32,0.18);
}
.pub-card-img-wrap {
    position: relative;
    overflow: hidden;
}
.pub-card-img {
    width: 100%;
    height: 165px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.pub-card:hover .pub-card-img { transform: scale(1.05); }
.pub-card-video-thumb {
    height: 165px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--rc-red);
}
.pub-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(229,9,20,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.25s;
}
.pub-card:hover .pub-card-overlay { opacity: 1; }
.pub-card-body { padding: 0.85rem 1rem; }
.pub-card-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--rc-black);
    margin: 0 0 0.3rem;
    line-height: 1.35;
}
.pub-card-desc {
    font-size: 0.78rem;
    color: var(--rc-gray);
    margin: 0 0 0.5rem;
    line-height: 1.5;
}
.pub-card-cta {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--rc-red);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.2s;
}
.pub-card:hover .pub-card-cta { gap: 0.5rem; }

/* ── Modal publicidad ── */
.pub-modal-content {
    background: #ffffff;
    border: 1px solid rgba(232,69,32,0.2);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.18);
}
.pub-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    background: #f8f8f8;
}
.pub-modal-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.2px;
}
.pub-modal-close {
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
    color: #666;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}
.pub-modal-close:hover { background: #E84520; color: #fff; border-color: #E84520; }
.pub-modal-body { padding: 1.5rem; }
.pub-modal-media { margin-bottom: 1.25rem; border-radius: 8px; overflow: hidden; }
.pub-modal-img { width: 100%; display: block; max-height: 400px; object-fit: cover; }
.pub-modal-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}
.pub-modal-video iframe,
.pub-modal-video video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}
.pub-modal-desc {
    color: #555;
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0 0 1.25rem;
}
.pub-modal-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Bootstrap modal backdrop oscuro */
.modal-backdrop { background: #000; }
.modal-backdrop.show { opacity: 0.75; }

/* ===== BLOG CARDS ===== */
.post-card {
    background: var(--rc-card);
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius);
    overflow: hidden;
    transition: var(--rc-ease);
    height: 100%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.post-card:hover {
    border-color: var(--rc-red-border);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(232,69,32,0.15);
}
.post-card .post-img {
    height: 210px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.5s ease;
}
.post-card:hover .post-img { transform: scale(1.04); }
.post-card .post-img-placeholder {
    height: 210px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rc-gray);
    font-size: 2.5rem;
}
.post-card .post-body { padding: 1.5rem; }
.post-date {
    font-size: 0.72rem;
    color: var(--rc-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
.post-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rc-black);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.post-excerpt { font-size: 0.88rem; color: var(--rc-gray); line-height: 1.7; }

/* ===== FORMS ===== */
.form-control,
.form-select {
    background: #fafafa !important;
    border: 1.5px solid rgba(0,0,0,0.12) !important;
    color: var(--rc-black) !important;
    padding: 0.85rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: var(--rc-ease);
}
.form-control:focus,
.form-select:focus {
    border-color: var(--rc-red) !important;
    box-shadow: 0 0 0 0.2rem rgba(232,69,32,0.12) !important;
    background: #ffffff !important;
}
.form-control::placeholder { color: #9ca3af !important; }

.form-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--rc-light);
    margin-bottom: 0.5rem;
}

.form-group { margin-bottom: 1.5rem; }

/* ===== CONTACT INFO ===== */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.contact-icon-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--rc-red-dim);
    border: 1px solid var(--rc-red-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rc-red);
    font-size: 1.15rem;
}
.contact-item-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--rc-gray);
    margin-bottom: 0.2rem;
}
.contact-item-value {
    font-size: 0.95rem;
    color: var(--rc-black);
    font-weight: 500;
}

/* ── Social icons en página de contacto (fondo claro) ── */
.contact-social {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.contact-social a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rc-gray);
    font-size: 1rem;
    transition: var(--rc-ease);
}
.contact-social a:hover {
    border-color: var(--rc-red);
    color: var(--rc-red);
    transform: translateY(-2px);
}

/* ===== NOSOTROS ===== */
.value-card {
    background: var(--rc-card);
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius);
    padding: 2rem;
    transition: var(--rc-ease);
    border-left: 4px solid var(--rc-red) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.value-card:hover {
    background: #fafafa;
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(232,69,32,0.1);
}

/* ===== FOOTER ===== */
.footer {
    background: #111111;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 4rem 0 1.5rem;
}
.footer-brand {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--rc-white);
    letter-spacing: -0.5px;
}
.footer-brand span { color: var(--rc-red); }
.footer-desc {
    font-size: 0.88rem;
    color: var(--rc-gray);
    line-height: 1.7;
    margin-top: 0.75rem;
    max-width: 280px;
}
.footer-heading {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--rc-light);
    margin-bottom: 1.25rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
    color: var(--rc-gray);
    font-size: 0.88rem;
    transition: var(--rc-ease);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.footer-links a:hover {
    color: var(--rc-white);
    padding-left: 4px;
}
.footer-social {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.footer-social a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rc-gray);
    font-size: 1rem;
    transition: var(--rc-ease);
}
.footer-social a:hover {
    border-color: var(--rc-red);
    color: var(--rc-red);
    transform: translateY(-2px);
}
.footer-divider { border-color: rgba(255,255,255,0.08); margin: 2rem 0 1.5rem; }
.footer-copy { font-size: 0.78rem; color: var(--rc-gray); }

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, #1f0d04 0%, #1a1a1a 50%, #1f0d04 100%);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(229,9,20,0.12) 0%, transparent 65%);
    border-radius: 50%;
}

/* ===== PROPUESTA ===== */
.benefit-card {
    background: var(--rc-card);
    border: 1px solid var(--rc-border);
    border-radius: var(--rc-radius);
    padding: 2rem;
    transition: var(--rc-ease);
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.benefit-card:hover {
    border-color: var(--rc-red-border);
    transform: translateY(-4px);
}
.benefit-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--rc-red);
    line-height: 1;
}

/* ===== BADGE ===== */
.badge-rc {
    background: rgba(229,9,20,0.15);
    color: var(--rc-red);
    border: 1px solid var(--rc-red-border);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ===== RICH TEXT CONTENT ===== */
.rich-content {
    color: var(--rc-light);
    font-size: 1rem;
    line-height: 1.9;
}
.rich-content h1,.rich-content h2,.rich-content h3 {
    color: var(--rc-white);
    margin-top: 2rem;
}
.rich-content p { margin-bottom: 1.25rem; }
.rich-content a { color: var(--rc-red); }
.rich-content img { border-radius: var(--rc-radius); margin: 1.5rem 0; }
.rich-content blockquote {
    border-left: 4px solid var(--rc-red);
    padding: 1rem 1.5rem;
    background: var(--rc-darker);
    border-radius: 0 var(--rc-radius) var(--rc-radius) 0;
    color: var(--rc-gray);
    margin: 1.5rem 0;
}

/* ===== ALERTS ===== */
.alert-success {
    background: rgba(25,135,84,0.15) !important;
    border-color: rgba(25,135,84,0.3) !important;
    color: #75b798 !important;
}
.alert-danger {
    background: rgba(229,9,20,0.12) !important;
    border-color: var(--rc-red-border) !important;
    color: #ff8080 !important;
}
.btn-close { filter: invert(1) grayscale(100%); }

/* ===== VIDEO EMBED ===== */
.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--rc-radius);
    border: 1px solid var(--rc-border);
}
.video-embed iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 0 0 rgba(229,9,20,0.4); }
    50%       { box-shadow: 0 0 0 12px rgba(229,9,20,0); }
}

.animate-fade-up  { animation: fadeInUp 0.7s ease forwards; }
.animate-fade-in  { animation: fadeIn 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.45s; opacity: 0; }

/* ===== NAVBAR ADMIN BUTTON ===== */
.nav-admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(229, 9, 20, 0.1);
    border: 1px solid var(--rc-red-border);
    border-radius: 8px;
    color: var(--rc-red) !important;
    font-size: 1.05rem;
    text-decoration: none;
    transition: var(--rc-ease);
    cursor: pointer;
}
.nav-admin-btn:hover,
.nav-admin-btn[aria-expanded="true"] {
    background: var(--rc-red);
    border-color: var(--rc-red);
    color: var(--rc-white) !important;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.35);
    transform: translateY(-1px);
}
.nav-admin-btn.dropdown-toggle::after { display: none; }

.dropdown-admin {
    background: #0f0f0f;
    border: 1px solid rgba(229, 9, 20, 0.25);
    border-radius: 10px;
    padding: 0.5rem 0;
    min-width: 210px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    margin-top: 0.5rem !important;
}
.dropdown-header-admin {
    display: block;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--rc-light);
    letter-spacing: 0.3px;
}
.dropdown-divider-admin {
    border-color: rgba(255, 255, 255, 0.07);
    margin: 0.3rem 0;
}
.dropdown-item-admin {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    color: var(--rc-light);
    text-decoration: none;
    transition: var(--rc-ease);
    border-radius: 0;
}
.dropdown-item-admin:hover {
    background: rgba(229, 9, 20, 0.1);
    color: var(--rc-white);
    padding-left: 1.25rem;
}
.dropdown-item-admin i {
    font-size: 0.9rem;
    color: var(--rc-red);
    width: 16px;
}
.dropdown-item-admin.text-danger-soft { color: #ff8080; }
.dropdown-item-admin.text-danger-soft:hover { background: rgba(229,9,20,0.15); color: #ffaaaa; }
.dropdown-item-admin.text-danger-soft i { color: #ff8080; }

/* ===================================================================
   RESPONSIVE — Todos los breakpoints
   =================================================================== */

/* ── Tablet landscape / navbar (< 992px) ── */
@media (max-width: 991px) {
    /* Navbar */
    .navbar-rc .nav-link::after { display: none; }
    .navbar-collapse {
        background: rgba(28,28,28,0.99);
        backdrop-filter: blur(14px);
        padding: 1rem 1.25rem 1.5rem;
        margin-top: 0.5rem;
        border-radius: var(--rc-radius);
        border: 1px solid var(--rc-border);
    }
    .navbar-collapse .nav-link {
        padding: 0.65rem 0 !important;
        border-bottom: 1px solid var(--rc-border);
        font-size: 0.88rem !important;
    }
    .navbar-collapse .nav-link:last-child { border-bottom: none; }
    .navbar-collapse .btn-rc {
        margin-top: 0.75rem;
        width: 100%;
        justify-content: center;
    }
    /* Admin dropdown en mobile */
    .dropdown-admin {
        position: static !important;
        box-shadow: none !important;
        border: 1px solid var(--rc-border);
        margin-top: 0.5rem;
    }

    /* Secciones — reducir padding vertical */
    .section-posts  { padding: 3rem 0 4rem; }
    .blog-sidebar   { position: static; margin-top: 2rem; }

    /* Page hero */
    .page-hero { padding: 5.5rem 0 3rem; }

    /* Footer contact column — full en tablet */
    .footer .col-lg-3 { margin-top: 0; }
}

/* ── Tablet portrait (< 768px) ── */
@media (max-width: 767px) {

    /* ─ Hero ─ */
    .hero {
        min-height: auto;
        padding: 100px 0 4rem;
        text-align: center;
    }
    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
        letter-spacing: -1px;
    }
    .hero-subtitle {
        max-width: 100%;
        font-size: 0.97rem;
    }
    .hero-badge { margin-bottom: 1rem; }
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    .hero-actions .btn-rc,
    .hero-actions .btn-rc-outline { width: 100%; justify-content: center; }
    .hero-visual { margin-top: 2rem; }
    .hero-screen { padding: 1rem; }

    /* ─ Stats bar ─ */
    .stats-bar { padding: 2rem 0; }
    .stat-number { font-size: 2rem; }
    .stat-divider { display: none; }

    /* ─ Page hero ─ */
    .page-hero {
        padding: 5rem 0 2.5rem;
        text-align: center;
    }
    .page-hero-title { letter-spacing: -0.5px; }
    .page-hero .divider-red { margin-left: auto; margin-right: auto; }

    /* ─ Secciones generales ─ */
    .section-title { letter-spacing: -0.5px; }
    [style*="padding:5rem 0"],
    [style*="padding: 5rem 0"] { padding: 3rem 0 !important; }
    [style*="padding:4rem 0"],
    [style*="padding: 4rem 0"] { padding: 2.5rem 0 !important; }
    .section-posts  { padding: 2.5rem 0 3.5rem; }

    /* ─ Blog ─ */
    .post-featured-img  { height: 210px; }
    .post-featured-body { padding: 1.25rem; }
    .post-featured-title { font-size: 1.2rem; }
    .blog-sidebar { margin-top: 0; }
    .pub-card-img { height: 140px; }
    .pub-card-video-thumb { height: 140px; }

    /* ─ Botones globales en mobile ─ */
    .btn-rc, .btn-rc-outline {
        font-size: 0.78rem;
        padding: 0.7rem 1.4rem;
    }

    /* ─ Footer ─ */
    .footer { padding: 3.5rem 0 2rem; }
    .footer .col-6.col-lg-2,
    .footer .col-6.col-lg-3 { margin-bottom: 0.5rem; }
    .footer-brand { font-size: 1.4rem; }

    /* ─ Contacto form ─ */
    .form-control { font-size: 0.9rem; }

    /* ─ Cards de servicios ─ */
    .card-rc { margin-bottom: 0; }

    /* ─ Pub modal ─ */
    .pub-modal-body  { padding: 1rem; }
    .pub-modal-img   { max-height: 250px; }
    .pub-modal-actions { flex-direction: column; }
    .pub-modal-actions .btn-rc,
    .pub-modal-actions .btn-rc-outline { width: 100%; justify-content: center; }
}

/* ── Mobile pequeño (< 480px) ── */
@media (max-width: 480px) {
    .hero-title { font-size: clamp(1.8rem, 9vw, 2.4rem); }
    .page-hero-title { font-size: clamp(1.6rem, 8vw, 2.2rem); }
    .section-title  { font-size: clamp(1.5rem, 7vw, 2rem); }
    .stat-number    { font-size: 1.75rem; }

    /* Navbar brand */
    .navbar-rc .navbar-brand { font-size: 1.2rem; }

    /* Hero screen — ocultar en pantallas muy pequeñas */
    .hero-screen .row { display: none; }

    /* Footer — apilar todo */
    .footer .col-6 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Botones full width en hero */
    .btn-rc, .btn-rc-outline { width: 100%; justify-content: center; }

    /* Post featured — altura mínima de imagen */
    .post-featured-img { height: 180px; }

    /* Pub modal full screen */
    .modal-dialog { margin: 0.5rem; }

    /* Breadcrumb */
    .breadcrumb-rc { font-size: 0.72rem; }
}
