:root {
    --bs-primary: #e3b32a;
    --bs-primary-rgb: 224, 129, 38;
    --bs-dark: #1a1a1a;
    --font-family-sans-serif: 'Poppins', sans-serif;
}

/* Override final hero performance */
#heroCarousel .carousel-inner {
    margin-top: 0 !important;
}

#heroCarousel .code-slideshow {
    padding-top: 8.25rem !important;
    padding-bottom: 3.25rem !important;
    gap: 0 !important;
}

#heroCarousel .code-container {
    max-height: min(72vh, 760px) !important;
}

@media (max-width: 991.98px) {
    #heroCarousel .carousel-item {
        min-height: 500px !important;
        height: auto !important;
    }

    #heroCarousel .code-slideshow {
        min-height: 500px !important;
        height: auto !important;
        padding-top: 6.4rem !important;
        padding-bottom: 2rem !important;
        background: linear-gradient(180deg, #11161d 0%, #0b1016 100%) !important;
    }

    #heroCarousel .hero-bg-video {
        display: none !important;
    }

    #heroCarousel .code-container {
        width: calc(100vw - 1rem) !important;
        max-width: 620px !important;
        max-height: none !important;
        height: auto !important;
        transform: none !important;
        border-width: 4px !important;
        border-radius: 16px !important;
    }

    #heroCarousel .code-content {
        min-height: 340px !important;
        height: auto !important;
        padding: 0.85rem !important;
    }
}

body {
    font-family: var(--font-family-sans-serif);
    line-height: 1.6;
    padding-top: 72px; 
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.mobile-language-switcher {
    display: none;
}

.site-logo {
    width: min(375px, 100%);
    height: 35px;
    object-fit: contain;
    object-position: left center;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem;
    border: 1px solid rgba(26, 26, 26, 0.1);
    border-radius: 999px;
    background: #fff;
}

.language-switcher__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 32px;
    padding: 0;
    border-radius: 999px;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.2s ease;
}

.language-switcher__link:hover {
    background: rgba(227, 179, 42, 0.14);
    color: #1a1a1a;
}

.language-switcher__link.is-active {
    background: #e3b32a;
    color: #1a1a1a;
}

.language-switcher__flag {
    display: block;
    width: 20px;
    height: 15px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* Hero portada */
#heroCarousel {
    overflow: hidden;
}

#heroCarousel .carousel-item {
    width: 100vw;
    height: 100vh;
    min-height: 680px;
    margin-left: calc(-50vw + 50%);
    background: #0f1318;
}

#heroCarousel .carousel-item::before {
    background: linear-gradient(180deg, rgba(5, 8, 12, 0.36), rgba(5, 8, 12, 0.62));
    z-index: 1;
}

#heroCarousel .code-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 10.5rem 2rem 4rem;
    overflow: hidden;
    background: linear-gradient(135deg, #131a22 0%, #0c1117 100%);
}

#heroCarousel .hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.26;
    pointer-events: none;
}

#heroCarousel .code-slideshow::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(227, 179, 42, 0.08), transparent 22%),
        radial-gradient(circle at 80% 25%, rgba(227, 179, 42, 0.05), transparent 18%),
        linear-gradient(180deg, rgba(7, 11, 16, 0.08), rgba(7, 11, 16, 0.28));
    z-index: 1;
}

#heroCarousel .code-container {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100vw - 10rem));
    max-width: 1180px;
    max-height: min(82vh, 920px);
    margin: 0 auto;
    overflow: hidden;
    border: 6px solid #2a2d2f;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(47, 51, 54, 0.72) 0%, rgba(28, 31, 34, 0.66) 100%);
    box-shadow:
        0 36px 80px rgba(0, 0, 0, 0.48),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 -10px 24px rgba(255, 255, 255, 0.03) inset;
}

@media (min-width: 992px) {
    #heroCarousel .code-container {
        transform: scale(0.84);
        transform-origin: center center;
    }
}

#heroCarousel .code-container::before {
    content: none;
}

#heroCarousel .code-content {
    position: relative;
    z-index: 2;
    min-height: min(44vh, 460px);
    padding: 1.25rem 7rem 1.25rem 1.25rem;
    background:
        linear-gradient(180deg, rgba(24, 27, 30, 0.22), rgba(13, 15, 18, 0.28)),
        radial-gradient(circle at center, rgba(160, 255, 170, 0.025), transparent 58%);
    color: #8cff95;
}

#heroCarousel .code-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(160, 255, 170, 0.06) 0,
            rgba(160, 255, 170, 0.06) 1px,
            rgba(0, 0, 0, 0) 1px,
            rgba(0, 0, 0, 0) 4px
        );
    opacity: 0.65;
    pointer-events: none;
    z-index: 1;
}

#heroCarousel .code-content::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 56%, rgba(0, 0, 0, 0.14) 100%);
    pointer-events: none;
    z-index: 1;
}

#heroCarousel .code-line,
#heroCarousel .line-number,
#heroCarousel .js-keyword,
#heroCarousel .js-function,
#heroCarousel .js-variable,
#heroCarousel .js-string,
#heroCarousel .js-number {
    position: relative;
    z-index: 2;
    font-family: 'VT323', monospace;
    font-size: clamp(1.55rem, 2vw, 2.2rem);
    line-height: 1.18;
    letter-spacing: 0.03em;
    font-weight: 400;
    color: #8cff95 !important;
    text-shadow: 0 0 8px rgba(140, 255, 149, 0.34);
}

#heroCarousel .line-number {
    min-width: 1.6rem;
    margin-right: 0.85rem;
    color: rgba(140, 255, 149, 0.56) !important;
}

#heroCarousel .cursor {
    background: #8cff95;
    box-shadow: 0 0 10px rgba(140, 255, 149, 0.6);
}

.nav-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-link-icon i {
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .navbar-nav {
        align-items: center;
        gap: 1.2rem;
    }

    .navbar-nav .nav-link {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        padding-left: 0;
        padding-right: 0;
    }

    .navbar-nav .nav-link-icon {
        display: none;
    }

    .navbar-nav .btn.btn-outline-primary .nav-link-icon {
        display: none;
    }

    .navbar-nav .btn.btn-outline-primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* === CONTENEDORES A ANCHO COMPLETO === */
.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    max-width: 100% !important;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Ajustar el padding en pantallas móviles */
@media (max-width: 767.98px) {
    .container,
    .container-fluid,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .navbar > .container {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) auto;
        grid-template-areas:
            "toggle brand lang"
            "menu menu menu";
        align-items: center;
        gap: 0.5rem;
    }

    .mobile-nav-toggle {
        grid-area: toggle;
        margin-right: 0;
        width: 38px;
        height: 38px;
        padding: 0;
        border: 1px solid rgba(227, 179, 42, 0.95);
        border-radius: 999px;
        background: #fff;
        box-shadow: 0 8px 20px rgba(227, 179, 42, 0.14);
        justify-self: start;
        transition: all 0.2s ease;
    }

    .mobile-nav-toggle:hover,
    .mobile-nav-toggle:focus {
        background: rgba(227, 179, 42, 0.08);
        border-color: #e3b32a;
        box-shadow: 0 10px 24px rgba(227, 179, 42, 0.2);
    }

    .mobile-nav-toggle .navbar-toggler-icon {
        width: 18px;
        height: 18px;
        background-size: 18px 18px;
    }

    .navbar-brand {
        grid-area: brand;
        justify-content: center;
        justify-self: center;
        margin-right: 0;
        overflow: hidden;
    }

    .mobile-language-switcher {
        grid-area: lang;
        display: flex;
        justify-content: flex-end;
        justify-self: end;
    }

    .navbar-collapse {
        grid-area: menu;
        width: 100%;
        margin-top: 0.5rem;
        padding: 0.75rem 0 0;
        border-top: 1px solid rgba(26, 26, 26, 0.08);
        align-self: start;
    }

    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), #fff);
        border-radius: 18px;
        padding: 0.9rem;
        border: 1px solid rgba(26, 26, 26, 0.06);
        box-shadow: 0 20px 40px rgba(16, 21, 28, 0.08);
    }

    .navbar-nav {
        gap: 0.35rem;
    }

    .navbar-nav .nav-item {
        width: 100%;
    }

    .navbar-nav .nav-link,
    .navbar-nav .btn.btn-outline-primary {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        width: 100%;
        min-height: 48px;
        padding: 0.8rem 0.95rem;
        border-radius: 14px;
        font-weight: 600;
    }

    .navbar-nav .nav-link {
        color: #1a1a1a;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        background: rgba(227, 179, 42, 0.1);
        color: #1a1a1a;
    }

    .navbar-nav .nav-link .nav-link-icon,
    .navbar-nav .btn.btn-outline-primary .nav-link-icon {
        width: 32px;
        height: 32px;
        border-radius: 999px;
        background: rgba(227, 179, 42, 0.14);
        color: #8e6a00;
        flex: 0 0 32px;
    }

    .navbar-nav .btn.btn-outline-primary {
        justify-content: flex-start;
        border-color: rgba(227, 179, 42, 0.9);
        color: #1a1a1a;
        background: #fff;
    }

    .navbar-nav .btn.btn-outline-primary:hover,
    .navbar-nav .btn.btn-outline-primary:focus {
        background: rgba(227, 179, 42, 0.1);
        border-color: #e3b32a;
        color: #1a1a1a;
    }

    .site-logo {
        width: min(210px, 100%);
        height: 32px;
        object-position: center;
    }

    .nav-language-switcher {
        margin-top: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .language-switcher {
        justify-content: flex-start;
        width: fit-content;
    }
}

@media (max-width: 575.98px) {
    .navbar > .container {
        grid-template-columns: 38px minmax(0, 1fr) auto;
        gap: 0.35rem;
    }

    .site-logo {
        width: min(178px, 100%);
        height: 28px;
    }

    .mobile-nav-toggle {
        width: 34px;
        height: 34px;
    }

    .mobile-language-switcher .language-switcher {
        gap: 0.15rem;
        padding: 0.15rem;
    }

    .mobile-language-switcher .language-switcher__link {
        width: 34px;
        height: 28px;
    }
}

@media (min-width: 768px) {
    .mobile-language-switcher {
        display: none;
    }

    .navbar > .container {
        display: flex;
        align-items: center;
    }

    .navbar-brand {
        margin-right: 1rem;
    }
}

@media (max-width: 991.98px) {
    #heroCarousel .carousel-item {
        min-height: 620px;
    }

    #heroCarousel .code-slideshow {
        padding: 7rem 1.5rem 3rem;
    }

    #heroCarousel .code-container {
        width: min(100%, calc(100vw - 3rem));
        max-height: min(60vh, 760px);
    }

}

@media (max-width: 767.98px) {
    #heroCarousel .carousel-item {
        min-height: 560px;
        height: 92vh;
    }

    #heroCarousel .code-slideshow {
        padding: 5.7rem 0.35rem 0.6rem;
    }

    #heroCarousel .hero-bg-video {
        opacity: 0.14;
    }

    #heroCarousel .code-container {
        width: calc(100vw - 0.7rem);
        height: calc(92vh - 6.3rem);
        max-height: none;
        border-radius: 14px;
        border-width: 4px;
    }

    #heroCarousel .code-header {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    #heroCarousel .code-content {
        min-height: 100%;
        height: 100%;
        padding: 0.75rem;
    }

    #heroCarousel .code-line,
    #heroCarousel .line-number,
    #heroCarousel .js-keyword,
    #heroCarousel .js-function,
    #heroCarousel .js-variable,
    #heroCarousel .js-string,
    #heroCarousel .js-number {
        font-size: clamp(1.08rem, 4vw, 1.5rem);
    }
}

.cv-on-page-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--bs-dark) 0%, #2c3e50 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    z-index: 1000;
    padding: 0;
}

.cv-on-page-nav .container {
    padding: 0;
}

/* CORRECCIÓN: Usar .cv-nav-links en lugar de .nav */
.cv-nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cv-nav-links .nav-item {
    flex: 1;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.cv-nav-links .nav-item:last-child {
    border-right: none;
    flex: 1;
}

.cv-nav-links .nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.cv-nav-links .nav-link i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.cv-nav-links .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: var(--bs-primary);
    transition: transform 0.3s ease;
}

.cv-nav-links .nav-link:hover {
    background: rgba(224, 129, 38, 0.15);
    color: var(--bs-primary);
}

.cv-nav-links .nav-link:hover::after,
.cv-nav-links .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.cv-nav-links .nav-link.active {
    background: rgba(224, 129, 38, 0.1);
    color: var(--bs-primary);
}

/* Estilo para Descargar CV */
.cv-nav-links .nav-link.download-cv-btn {
    background: #e3b32a;
    color: white !important;
    font-weight: 700;
}

.cv-nav-links .nav-link.download-cv-btn:hover {
    background: #fdc527;
    color: white !important;
}

.cv-nav-links .nav-link.download-cv-btn::after {
    display: none;
}

/* Footer Styles */
.cv-page-footer {
    background-color: var(--bs-dark);
    color: #bdc3c7;
    padding: 2rem 1rem;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.cv-page-footer p {
    margin-bottom: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.cv-page-footer .footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem; /* Espacio entre elementos */
}

/* Botón Cerrar Sesión en el footer */
.logout-footer-btn {
    border-color: #6c757d;
    color: #bdc3c7;
    font-size: 0.85rem;
    padding: 0.375rem 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.logout-footer-btn:hover {
    border-color: #dc3545;
    background-color: #dc3545;
    color: white;
    transform: translateY(-1px);
}

/* Responsive para móviles */
@media (max-width: 576px) {
    .cv-page-footer .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}
    
    .cv-page-footer .footer-content p {
        order: 2; /* El texto va abajo en móvil */
    }
    
    .cv-page-footer .footer-content .logout-footer-btn {
        order: 1; /* El botón va arriba en móvil */
    }
}

.simple-dashboard-header {
    display: none;
}

/* Ocultar el header del logo cuando haces scroll */
.simple-dashboard-header.header-hidden {
    transform: translateY(-100%);
    opacity: 0;
}

/* Ajuste del padding-top del body cuando hay menú CV */
body.cv-page {
    padding-top: 50px;
}

/* Cuando el header está oculto, reducir el padding */
body.cv-page.header-scrolled {
    padding-top: 58px;
}

/* Responsive para el menú CV */
@media (max-width: 767.98px) {
    .cv-nav-links .nav-link {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .cv-nav-links .nav-link i {
        display: block;
        margin: 0 0 0.25rem 0;
        font-size: 1.1rem;
    }
    
    .simple-dashboard-header {
        top: 60px;
        display: none;
    }
    
    body.cv-page {
        padding-top: 140px;
    }
    
    body.cv-page.header-scrolled {
        padding-top: 60px;
    }
    
    .cv-page-footer .footer-content {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .cv-nav-links .nav-link {
        padding: 0.6rem 0.25rem;
        font-size: 0.65rem;
    }
    
    .cv-nav-links .nav-link i {
        font-size: 1rem;
    }
}
@media (max-width: 600px) {
    body.cv-page {
        padding-top: 50px;
    }
}
/* ============================================
   ESTILOS PARA POSTS GRATUITOS
   ============================================ */

/* Contenedor de la card gratuita */
.post-card.free-content {
    border: 2px solid #e3b32a;
    position: relative;
    overflow: visible;
}

.post-card.free-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #e3b32a 0%, #fdc527 50%, #e3b32a 100%);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.post-card.free-content:hover::before {
    opacity: 0.5;
}

/* Badge "GRATIS" en la esquina superior derecha */
.free-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.4);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.free-badge i {
    font-size: 0.9rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% { 
        transform: scale(1.2) rotate(180deg);
        opacity: 0.8;
    }
}

/* Efecto de brillo sutil en la imagen (SIN ZOOM) */
.post-card.free-content .card-img-top {
    position: relative;
}

.post-card.free-content:hover .card-img-top {
    transform: scale(1) !important; /* Fuerza que NO haga zoom */
}

.post-card.free-content .card-img-top::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(227, 179, 42, 0.1) 50%,
        transparent 70%
    );
    pointer-events: none;
}

/* Ajuste del badge de categoría para no solaparse */
.post-card.free-content .badge.bg-primary {
    margin-right: 80px; /* Espacio para el badge GRATIS */
}

/* Efecto hover mejorado para posts gratuitos */
.post-card.free-content:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(227, 179, 42, 0.25) !important;
}

/* === RESPONSIVE === */
@media (max-width: 767px) {
    .free-badge {
        padding: 0.35rem 0.65rem;
        font-size: 0.7rem;
        top: 10px;
        right: 10px;
    }
    
    .post-card.free-content .badge.bg-primary {
        margin-right: 75px;
    }
}

@media (max-width: 575px) {
    .free-badge {
        padding: 0.3rem 0.5rem;
        font-size: 0.65rem;
        top: 8px;
        right: 8px;
    }
    
    .free-badge i {
        font-size: 0.8rem;
    }
    
    .post-card.free-content .badge.bg-primary {
        margin-right: 70px;
    }
}

/* Hero/Carousel */
#heroCarousel.carousel .carousel-item {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* Footer */
footer {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%) !important;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--bs-primary) 50%, transparent 100%);
}

footer .container {
    position: relative;
    z-index: 2;
}

/* Section Headers */
footer h6 {
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    color: var(--bs-primary) !important;
    font-size: 1.1rem;
}

/* Custom HR */
footer hr {
    background: linear-gradient(90deg, var(--bs-primary) 0%, transparent 100%) !important;
    height: 3px !important;
    opacity: 0.8;
    border: none;
}

/* Links Styling */
footer a.text-white-50 {
    text-decoration: none;
    transition: all 0.3s ease;
    color: #b0b0b0 !important;
    position: relative;
    padding: 0.2rem 0;
    display: inline-block;
}

footer a.text-white-50::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--bs-primary);
    transition: width 0.3s ease;
}

footer a.text-white-50:hover {
    color: #ffffff !important;
    transform: translateX(5px);
}

footer a.text-white-50:hover::after {
    width: 100%;
}

/* Contact Info */
footer .contact-info {
    color: #b0b0b0 !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

footer .contact-info:hover {
    color: var(--bs-primary) !important;
}

footer .contact-info i {
    color: var(--bs-primary);
    width: 20px;
    text-align: center;
}

/* Reducir espacio y tamaño de fuente en enlaces de navegación y legal */
footer .col-md-2 p,
footer .col-md-3 p {
    margin-bottom: 0.3rem !important; /* Muy reducido */
    line-height: 1.3 !important; /* Menor altura de línea */
}

footer .col-md-2 a.text-white-50,
footer .col-md-3 a.text-white-50 {
    font-size: 0.85rem !important; /* Fuente más pequeña */
    padding: 0.1rem 0 !important; /* Padding reducido */
}

/* Ajustar hover para el nuevo tamaño */
footer .col-md-2 a.text-white-50:hover,
footer .col-md-3 a.text-white-50:hover {
    transform: translateX(2px); /* Movimiento más sutil */
}

/* Social Icons */
footer .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

footer .social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(227, 179, 42, 0.4), transparent);
    transition: left 0.5s ease;
}

footer .social-icons a:hover::before {
    left: 100%;
}

footer .social-icons a:hover {
    background: var(--bs-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(227, 179, 42, 0.3);
}

footer .social-icons a i {
    transition: transform 0.3s ease;
}

footer .social-icons a:hover i {
    transform: scale(1.1);
}

/* Footer Bottom */
.bg-black {
    background: #000000 !important;
    position: relative;
}

.bg-black::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #333 50%, transparent 100%);
}

.footer-copyright {
    font-size: 12px;
	font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    footer .col-md-3,
    footer .col-md-2,
    footer .col-md-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    footer hr {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    footer .social-icons {
        justify-content: center;
    }
}

/* Animation for footer appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer .row > div {
    animation: fadeInUp 0.6s ease forwards;
}

footer .row > div:nth-child(1) { animation-delay: 0.1s; }
footer .row > div:nth-child(2) { animation-delay: 0.2s; }
footer .row > div:nth-child(3) { animation-delay: 0.3s; }
footer .row > div:nth-child(4) { animation-delay: 0.4s; }

/* Sección de últimos vídeos */
#ultimos-videos {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding-left: 2rem;
    padding-right: 2rem;
}

/* --- NAVEGACIÓN PRINCIPAL --- */
.navbar {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.navbar .nav-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #444;
    position: relative;
    padding-left: 1rem;
    padding-right: 1rem;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background-color: var(--bs-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    transform: scaleX(1);
}

.navbar .nav-link.active {
    color: var(--bs-primary) !important;
}

.navbar .btn-sm {
    padding: 0.5rem 1rem;
    font-weight: 600;
}
.simple-logout-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
}
#form-success-message {
            background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
            border: none !important;
            border-left: 5px solid #e3b32a !important;
            border-radius: 12px !important;
            padding: 2rem !important;
            box-shadow: 0 10px 30px rgba(227, 179, 42, 0.2) !important;
            animation: slideInSuccess 0.5s ease-out;
            position: relative;
            overflow: hidden;
        }
        
        #form-success-message::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, #e3b32a 0%, #d4a325 100%);
        }
        
        @keyframes slideInSuccess {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        #form-success-message .success-icon-container {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #e3b32a 0%, #d4a325 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            animation: scaleInIcon 0.5s ease-out 0.2s both;
            box-shadow: 0 4px 15px rgba(227, 179, 42, 0.3);
        }
        
        @keyframes scaleInIcon {
            0% {
                transform: scale(0) rotate(-45deg);
            }
            50% {
                transform: scale(1.1) rotate(10deg);
            }
            100% {
                transform: scale(1) rotate(0);
            }
        }
        
        #form-success-message .success-icon-container i {
            color: #1a1a1a;
            font-size: 2rem;
        }
        
        #form-success-message .alert-heading {
            color: #1a1a1a !important;
            font-weight: 700 !important;
            font-size: 1.5rem !important;
            margin-bottom: 1rem !important;
            text-align: center !important;
        }
        
        #form-success-message p {
            color: #4a5568 !important;
            font-size: 1rem !important;
            line-height: 1.6 !important;
            margin-bottom: 1.5rem !important;
            text-align: center !important;
        }
        
        #form-success-message .email-reminder {
            background: linear-gradient(135deg, #fffbf0 0%, #fff8e1 100%);
            border-left: 3px solid #e3b32a;
            padding: 1rem 1.5rem;
            border-radius: 8px;
            margin-top: 1rem;
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        #form-success-message .email-reminder-icon {
            width: 40px;
            height: 40px;
            background-color: #e3b32a;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        
        #form-success-message .email-reminder-icon i {
            color: #1a1a1a;
            font-size: 1.2rem;
        }
        
        #form-success-message .email-reminder-text {
            color: #1a1a1a;
            font-size: 0.9rem;
            line-height: 1.5;
            margin: 0;
        }
        
        #form-success-message .email-reminder-text strong {
            color: #e3b32a;
            font-weight: 600;
        }
        
        #form-success-message .success-decorative-line {
            width: 80px;
            height: 3px;
            background: linear-gradient(90deg, transparent, #e3b32a, transparent);
            margin: 1.5rem auto;
        }
/* --- ESTILOS PARA HEADER SIMPLE (DASHBOARD) --- */
.simple-dashboard-header {
	display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 0; /* Ajusta el padding vertical si es necesario */
    z-index: 10;
}

/* Asegura que el logo sea visible sobre el fondo oscuro */
.simple-dashboard-header .navbar-brand img {
    
}
/* Estilos para el botón de logout usando colores corporativos */
.simple-dashboard-header .btn-outline-primary {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
    background-color: rgba(255, 255, 255, 0.1); /* Fondo semitransparente para mejor visibilidad */
    font-weight: 600;
    border-width: 2px;
}
.simple-dashboard-header .btn-outline-primary:hover {
    background-color: var(--bs-primary);
    color: #fff;
}
.simple-logout-header .btn-outline-light {
    font-weight: 600;
    border-width: 2px;
}
/* Estilos para el menú superpuesto en la portada */
body:has(.navbar-homepage) {
    padding-top: 0;
}
.navbar-homepage {
    background-color: transparent !important;
    box-shadow: none !important;
}
.navbar-homepage .navbar-brand img {
    filter: brightness(0) invert(1);
}
.navbar-homepage .nav-link {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}
.navbar-homepage .navbar-toggler-icon {
    filter: invert(1);
}
.navbar-homepage .btn-outline-primary {
    border-color: rgba(255,255,255,0.7);
    color: #fff;
}
.navbar-homepage .btn-outline-primary:hover {
    border-color: #fff;
    background-color: rgba(255,255,255,0.1);
}

/* Estilo del menú de la portada cuando el usuario hace scroll */
.navbar-homepage.navbar-scrolled {
    background-color: #fff !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075) !important;
}
.navbar-homepage.navbar-scrolled .navbar-brand img {
    filter: none;
}
.navbar-homepage.navbar-scrolled .nav-link {
    color: #444;
    text-shadow: none;
}
.navbar-homepage.navbar-scrolled .navbar-toggler-icon {
    filter: none;
}
.navbar-homepage.navbar-scrolled .btn-outline-primary {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}
.navbar-homepage.navbar-scrolled .btn-outline-primary:hover {
    background-color: var(--bs-primary);
    color: #fff;
}

.text-custom-gold {
  color: #e3b32a !important; 
  
}

/* --- COMPONENTES GENERALES --- */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: #c87020;
    border-color: #c87020;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.btn-outline-primary {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-outline-primary:hover {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
    transform: translateY(-2px);
}
.video-card, .post-card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.video-card:hover, .post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
}
.post-card .card-img-top {
    transition: transform 0.3s ease;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.post-card:hover .card-img-top {
    transform: scale(1.05);
}

/* --- SECCIONES ESPECÍFICAS --- */
#heroCarousel.carousel .carousel-item {
    height: 100vh;
    min-height: 600px;
    background: no-repeat center center scroll;
    background-size: cover;
    position: relative;
}
#heroCarousel.carousel .carousel-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}
#heroCarousel .carousel-caption {
    bottom: 25%;
    z-index: 2;
}

#category-tabs .nav-link {
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    transition: all 0.3s ease;
}
#category-tabs .nav-link.active,
#category-tabs .nav-link:hover {
    color: var(--bs-primary);
    background-color: transparent;
    border-bottom-color: var(--bs-primary);
}

.post-header {
    background-color: #343a40;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 8rem;
    padding-bottom: 8rem;
    position: relative;
    color: #fff;
}
.post-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1;
}
.post-heading {
    position: relative;
    z-index: 2;
}
.post-heading .post-category {
    font-size: 0.9rem;
    letter-spacing: 2px;
}
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Login & Dashboard */
body.bg-light {
    padding-top: 0;
}
.login-page-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f8f9fa;
}
.dashboard-hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/background-1920x1080.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.curriculum-wrapper {
    background-color: #f4f7f6; /* Un fondo gris muy claro para la página */
    padding-top: 0;
    padding-bottom: 0;
    /* Aseguramos que se muestre por encima del fondo del dashboard si existe */
    position: relative;
    z-index: 5;
}

/* La "hoja" blanca del CV */
.cv-container {
    max-width: 1200px; /* Ancho máximo del CV */
    margin: 0 auto;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden; /* Importante para que las columnas no se salgan */
}

/* Columna Izquierda (Perfil) */
.cv-left-col {
    background-color: var(--bs-dark); /* Adaptado a tu variable --bs-dark */
    color: #ffffff;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
}

.cv-left-col .profile-pic {
    width: 200px;           /* Ancho fijo */
    height: 200px;          /* Alto fijo */
    object-fit: cover;      /* Mantenemos el recorte */
    border-radius: 8px; 
    border: 4px solid #ffffff;
    margin: 1.5rem 0;       /* Margen vertical */
    align-self: center;   /* Centrado horizontal en columna flex */
    flex-shrink: 0;       /* Evita que se encoja */
}

.cv-left-col .cv-name {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.cv-left-col .cv-subtitle {
    font-size: 1rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 2.5rem;
    color: #bdc3c7; /* Un gris claro */
}

.cv-left-col .cv-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--bs-primary); /* Adaptado a tu variable --bs-primary */
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.cv-left-col .cv-profile-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #ecf0f1; /* Blanco suave */
}

.cv-left-col .contact-info p {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #ecf0f1;
    display: flex;
    align-items: center;
}

.cv-left-col .contact-info i {
    width: 25px; /* Ancho fijo para el icono */
    margin-right: 10px;
    text-align: center;
    color: var(--bs-primary); /* Adaptado a tu variable --bs-primary */
    font-size: 1.1rem;
}

/* Columna Derecha (Experiencia) */
.cv-right-col {
    padding: 3rem 2.5rem;
}

.cv-right-col .cv-main-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--bs-dark); /* Adaptado a tu variable --bs-dark */
    margin-bottom: 2.5rem;
    border-bottom: 4px solid var(--bs-primary); /* Adaptado a tu variable --bs-primary */
    padding-bottom: 1rem;
}

/* Cada item de trabajo */
.job-item {
    margin-bottom: 2.5rem;
    position: relative;
    padding-left: 2rem; /* Espacio para la "línea de tiempo" */
    border-left: 3px solid #e0e0e0; /* Línea de tiempo */
}

/* El punto en la línea de tiempo */
.job-item::before {
    content: '';
    position: absolute;
    left: -9.5px; /* (18px / 2) - 3px border */
    top: 5px;
    width: 18px;
    height: 18px;
    background-color: var(--bs-primary); /* Adaptado a tu variable --bs-primary */
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 0 0 3px var(--bs-primary); /* Adaptado a tu variable --bs-primary */
}

.job-item:last-child {
    margin-bottom: 0;
}

.job-item .job-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--bs-primary); /* Adaptado a tu variable --bs-primary */
    margin-bottom: 0.25rem;
}

.job-item .job-meta {
    font-size: 0.95rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 1rem;
}

.job-item .job-meta .job-location {
    margin-right: 1.5rem;
}

.job-item .job-meta i {
    margin-right: 0.5rem;
    color: var(--bs-dark); /* Adaptado a tu variable --bs-dark */
}

.job-item .job-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #333;
}

/* Sección de Descarga */
.cv-download-section {
    text-align: center;
    padding: 2.5rem;
    background-color: #f8f9fa; /* Fondo ligeramente gris */
    border-top: 1px solid #dee2e6;
}
.cv-download-section .lead {
    margin-bottom: 1.5rem;
    color: #333;
}

.cv-section-title-right {
    font-size: 2.25rem; /* Un poco más pequeño que el H2 principal */
    font-weight: 700;
    color: var(--bs-dark);
    margin-top: 3.5rem; /* Margen superior para separar de la sección anterior */
    margin-bottom: 2rem;
    border-bottom: 3px solid #e0e0e0;
    padding-bottom: 0.75rem;
}

.job-item .job-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #333;
}

.job-item .job-description a {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.job-item .job-description a:hover {
    color: #c87020;
    border-bottom-color: var(--bs-primary);
    text-decoration: none;
}

/* --- Estilos Habilidades (Columna Izquierda) --- */
.skills-group-left {
    margin-bottom: 1.5rem;
}

.skills-group-title-left {
    font-size: 0.9rem;
    font-weight: 600;
    color: #bdc3c7; /* Gris claro, igual que el subtítulo */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.25rem;
    /* Usamos un borde sutil con el color primario */
    border-bottom: 1px solid var(--bs-primary); 
}

.skills-list-left {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem; /* Menos espacio, más compacto */
}

.skill-tag-left {
    background-color: rgba(255, 255, 255, 0.1); /* Fondo oscuro semi-transparente */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
    font-weight: 400;
    color: #ecf0f1; /* Texto blanco suave */
    transition: all 0.2s ease;
}

.skill-tag-left:hover {
    background-color: var(--bs-primary); /* Color naranja al pasar el ratón */
    border-color: var(--bs-primary);
    color: #fff; /* Texto blanco */
    transform: scale(1.05);
}

/* Anula el velo oscuro global en el carrusel de formación */
#educationCarousel .carousel-item::before {
    content: none; /* Desactiva el pseudo-elemento */
    background: none; /* Elimina el fondo */
}

/* Título para las secciones de la col. derecha (Formación, etc.) */
.cv-section-title-right {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--bs-dark);
    margin-top: 3.5rem; /* Margen superior para separar de la sección anterior */
    margin-bottom: 2rem;
    border-bottom: 3px solid #e0e0e0;
    padding-bottom: 0.75rem;
}

.education-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columnas de igual tamaño */
    gap: 1rem; /* Espacio entre las tarjetas */
    padding: 0.5rem; /* ¡Paso 3: Añadir el padding aquí! */
}

/* Contenedor para cada item de Formación (versión compacta) */
.education-item {
    margin-bottom: 0; /* El 'gap' del grid ya se encarga del espacio */
    padding: 1.25rem; /* Menos padding */
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* Asegura que todos los items de una fila tengan la misma altura */
    display: flex;
    flex-direction: column; 
}

.education-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #e9ecef;
    transition: all 0.3s ease;
}

.education-item:hover {
    border-color: #dee2e6;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    transform: translateY(-3px);
}

.education-item:hover::before {
    background-color: var(--bs-primary); /* Acento naranja */
}


.education-item:last-child {
    margin-bottom: 0;
}

/* Título del curso/grado (fuente más pequeña) */
.education-title {
    font-size: 1.05rem; /* <--- REDUCIDO */
    font-weight: 600;
    color: var(--bs-primary); 
    margin-bottom: 0.5rem;
}

/* Metadatos (Centro, fecha) (fuente más pequeña) */
.education-meta {
    font-size: 0.8rem; /* <--- REDUCIDO */
    font-weight: 500;
    color: #555;
    margin-bottom: 0.75rem;
}

.education-meta .education-location {
    margin-right: 1rem; /* Menos margen */
}

.education-meta i {
    margin-right: 0.4rem;
    color: var(--bs-dark);
}

/* Descripción opcional (fuente más pequeña) */
.education-description {
    font-size: 0.85rem; /* <--- REDUCIDO */
    line-height: 1.6;
    color: #333;
    margin-top: 0.75rem; /* Menos margen */
    margin-bottom: 0;
    padding-top: 0.75rem; /* Menos padding */
    border-top: 1px dashed #e0e0e0;
    /* Esto hace que la descripción se quede abajo si la tarjeta es alta */
    margin-top: auto; 
}

/* Da un poco de espacio interno a la diapositiva */
#educationCarousel .carousel-item {
    padding: 0; /* Relleno para que la cuadrícula no se pegue */
    height: auto;           /* <-- ¡ARREGLO! Anula el 100vh */
    min-height: unset;
	width: 100%;          /* ¡Paso 2: Forzar ancho al 100%! */
    margin-left: 0;
}

/* Estilo de los círculos (indicadores) */
#educationCarousel .carousel-indicators [data-bs-target] {
    background-color: #ccc; /* Color de círculos inactivos */
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    opacity: 0.7;
}

/* Color del círculo activo */
#educationCarousel .carousel-indicators .active {
    background-color: var(--bs-primary); /* Tu color naranja */
    opacity: 1;
}

/* Posición de los círculos (por defecto están muy arriba) */
#educationCarousel .carousel-indicators {
    position: static; /* Los saca del flujo de la imagen */
    margin-top: 1rem; /* Los baja para que queden debajo */
    margin-bottom: 0;
}

/* ============================================
   CV - AJUSTES RESPONSIVE (MÓVIL)
   ============================================ */

@media (max-width: 991.98px) {
    /* --- CV en Tablets (cuando se apilan) --- */
    .cv-left-col, .cv-right-col {
        /* Aseguramos que ocupen el 100% del ancho */
        width: 100%; 
        max-width: 100%;
        flex: 0 0 100%;
    }

    .cv-left-col {
        padding: 2rem 1.5rem;
    }

    .cv-right-col {
        padding: 2.5rem 1.5rem;
    }

    .cv-right-col .cv-main-title {
        font-size: 2.25rem; /* Reducir título principal */
    }

    .cv-section-title-right {
        font-size: 1.75rem; /* Reducir títulos de sección */
    }
	
}

@media (max-width: 767.98px) {
    /* --- CV en Móviles (pantallas pequeñas) --- */
    .curriculum-wrapper {
        padding-top: 0.5rem;
        padding-bottom: 1rem;
    }

    .cv-left-col {
        padding: 2rem 1rem; /* Menos padding lateral */
    }

    .cv-left-col .cv-name {
        font-size: 1.75rem; /* Reducir el nombre */
    }

    .cv-left-col .profile-pic {
        /* Reducir la foto en móviles */
        width: 150px;
        height: 150px;
        margin: 1rem 0;
    }

    .cv-left-col .cv-section-title {
        font-size: 1.15rem; /* Títulos de la barra lateral más pequeños */
    }

    .cv-right-col {
        padding: 2rem 1rem; /* Menos padding */
    }
	
	.education-grid {
        grid-template-columns: 1fr; /* Cambia de 2 a 1 columna */
        gap: 1rem; /* Un poco menos de espacio en la vista móvil */
    }
    
    .job-item {
        padding-left: 1.5rem; /* Reducir espacio de la timeline */
    }

    .job-item .job-title,
    .education-item .education-title {
        font-size: 1.1rem; /* Títulos de trabajo/formación más pequeños */
    }

    .job-item .job-meta,
    .education-item .education-meta {
        font-size: 0.85rem; /* Metadatos más pequeños */
    }
    
    /* Ajustar el formulario de descarga */
    .cv-download-section {
        padding: 1.5rem 1rem;
    }
    .cv-download-section .lead {
        font-size: 1rem;
    }
    .cv-download-section .btn-lg {
        font-size: 0.9rem;
        padding: 0.75rem 1.25rem;
    }
}

/* --- ESTILO SECCIÓN ÚLTIMOS VÍDEOS --- */
#ultimos-videos {
    background-color: var(--bs-primary);
}

#ultimos-videos h2 {
    color: #fff;
    font-weight: 800;
}

#faq-home {
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(227, 179, 42, 0.1), transparent 26%),
        radial-gradient(circle at bottom right, rgba(12, 21, 32, 0.16), transparent 28%),
        linear-gradient(180deg, #f7f7f4 0%, #ffffff 100%);
}

.faq-home-intro {
    max-width: 760px;
}

.faq-home-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(227, 179, 42, 0.42);
    border-radius: 999px;
    background: rgba(227, 179, 42, 0.1);
    color: #8f6c12;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.faq-home-intro h2 {
    color: #16202b;
    font-weight: 800;
}

.faq-home-intro p {
    color: #5e6976;
    font-size: 1.05rem;
    line-height: 1.75;
}

.faq-home-card {
    padding: 1.6rem 1.5rem;
    border: 1px solid rgba(18, 30, 44, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 42px rgba(12, 21, 32, 0.06);
    backdrop-filter: blur(10px);
}

.faq-home-question {
    margin: 0 0 0.85rem;
    color: #16202b;
    font-size: 1.08rem;
    line-height: 1.35;
    font-weight: 800;
}

.faq-home-answer p {
    margin: 0;
    color: #536171;
    line-height: 1.8;
}

.services-home-intro {
    max-width: 760px;
}

.services-home-intro h2 {
    color: #16202b;
    font-weight: 800;
}

.services-home-intro p {
    color: #5d6976;
    font-size: 1.05rem;
    line-height: 1.75;
}

.services-fluid {
    width: 100vw;
    max-width: none;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.services-layout {
    width: 100%;
    max-width: none;
    margin: 0;
}

.services-stack {
    display: grid;
    gap: 1rem;
    max-width: 840px;
    margin-left: auto;
    margin-right: 0;
}

.service-widget {
    position: relative;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 1.15rem;
    align-items: center;
    min-height: 132px;
    padding: 1.35rem 1.45rem;
    border: 2px solid rgba(227, 179, 42, 0.75);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 249, 247, 0.96));
    box-shadow: 0 12px 28px rgba(12, 21, 32, 0.05);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.service-widget::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.service-widget:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px rgba(12, 21, 32, 0.1);
}

.service-widget:hover::before {
    opacity: 1;
}

.service-widget > * {
    position: relative;
    z-index: 1;
}

.service-widget-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    margin-bottom: 0;
    color: #b88a12;
    font-size: 2.5rem;
    line-height: 1;
    transition: color 0.3s ease, transform 0.3s ease;
}

.service-widget-content {
    min-width: 0;
}

.service-widget-title {
    margin: 0 0 0.35rem;
    color: #16202b;
    font-size: 0.8rem;
    line-height: 1.18;
    font-weight: 800;
}

.service-widget-text {
    margin: 0;
    color: #556373;
    font-size: 0.65rem;
    line-height: 1.45;
}

.service-widget-dev::before {
    background: linear-gradient(180deg, rgba(227, 179, 42, 0.1), rgba(227, 179, 42, 0.02) 55%, transparent 100%);
}

.service-widget-consulting::before {
    background: linear-gradient(180deg, rgba(213, 159, 24, 0.1), rgba(213, 159, 24, 0.02) 55%, transparent 100%);
}

.service-widget-transformation::before {
    background: linear-gradient(180deg, rgba(196, 139, 16, 0.1), rgba(196, 139, 16, 0.02) 55%, transparent 100%);
}

.service-widget-training::before {
    background: linear-gradient(180deg, rgba(176, 121, 10, 0.1), rgba(176, 121, 10, 0.02) 55%, transparent 100%);
}

.service-widget-dev:hover {
    border-color: #e3b32a;
}

.service-widget-consulting:hover {
    border-color: #d59f18;
}

.service-widget-transformation:hover {
    border-color: #c48b10;
}

.service-widget-training:hover {
    border-color: #b0790a;
}

.service-widget-dev:hover .service-widget-icon {
    color: #9f7310;
    transform: translateY(-2px);
}

.service-widget-consulting:hover .service-widget-icon {
    color: #936900;
    transform: translateY(-2px);
}

.service-widget-transformation:hover .service-widget-icon {
    color: #855d00;
    transform: translateY(-2px);
}

.service-widget-training:hover .service-widget-icon {
    color: #744d00;
    transform: translateY(-2px);
}

@media (max-width: 767.98px) {
    .services-home-intro p {
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .services-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .service-widget {
        grid-template-columns: 72px minmax(0, 1fr);
        min-height: 0;
        padding: 1.15rem 1.1rem;
        border-radius: 22px;
    }

    .services-stack {
        max-width: none;
    }

    .service-widget-icon {
        width: 72px;
        font-size: 2rem;
    }

    .service-widget-title {
        font-size: 1.2rem;
    }

    .service-widget-text {
        font-size: 0.94rem;
    }

    .faq-home-intro p {
        font-size: 0.98rem;
        line-height: 1.7;
    }

    .faq-home-card {
        padding: 1.3rem 1.15rem;
        border-radius: 18px;
    }

    .faq-home-question {
        font-size: 1rem;
    }
}

#ultimos-videos .container {
    position: relative;
}

.video-card {
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(10, 15, 22, 0.36);
    box-shadow: 0 18px 42px rgba(4, 8, 14, 0.22);
}

.video-card-media {
    position: relative;
    display: block;
    color: inherit;
    text-decoration: none;
    isolation: isolate;
}

.video-card-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 10, 16, 0.02) 0%, rgba(5, 10, 16, 0.14) 58%, rgba(4, 8, 14, 0.88) 100%);
    z-index: 1;
}

.video-card-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.video-card-overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    min-height: 25%;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.25rem 1.1rem;
    background: linear-gradient(180deg, rgba(9, 16, 24, 0.04) 0%, rgba(9, 16, 24, 0.58) 30%, rgba(9, 16, 24, 0.92) 100%);
    backdrop-filter: blur(8px);
}

.video-card-title {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(227, 179, 42, 0.92);
    border-radius: 999px;
    background: rgba(227, 179, 42, 0.12);
    color: #f4cf66;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.video-card-desktop:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 54px rgba(4, 8, 14, 0.3);
}

.video-card-desktop .video-card-media:hover .video-card-button,
.video-card-mobile .video-card-media:hover .video-card-button {
    background: rgba(227, 179, 42, 0.2);
    color: #ffe08a;
}

#videosCarouselMobile {
    max-width: 680px;
    margin: 0 auto;
    padding-bottom: 3.25rem;
}

#videosCarouselMobile .carousel-inner {
    overflow: visible;
    margin-top: 0 !important;
}

#videosCarouselMobile .carousel-item {
    width: auto;
    height: auto;
    min-height: 0;
    margin-left: 0;
    background: none;
    position: relative;
}

#videosCarouselMobile .carousel-item::before {
    content: none;
}

.video-card-mobile {
    margin: 0 0.25rem;
}

.video-carousel-control {
    width: 12%;
    opacity: 1;
}

.video-carousel-control .carousel-control-prev-icon,
.video-carousel-control .carousel-control-next-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    background-color: rgba(9, 16, 24, 0.76);
    background-size: 48%;
    box-shadow: 0 8px 22px rgba(4, 8, 14, 0.22);
}

.video-carousel-indicators {
    bottom: -0.25rem;
    margin-bottom: 0;
}

.video-carousel-indicators [data-bs-target] {
    width: 44px;
    height: 44px;
    margin: 0 0.15rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    position: relative;
    opacity: 1;
}

.video-carousel-indicators [data-bs-target]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.42);
    transform: translate(-50%, -50%);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.video-carousel-indicators .active {
    background: transparent;
}

.video-carousel-indicators .active::before {
    background-color: #e3b32a;
    transform: translate(-50%, -50%) scale(1.08);
}

@media (max-width: 991.98px) {
    .video-card-overlay {
        padding: 1rem 1rem 0.95rem;
    }

    .video-card-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 767.98px) {
    #ultimos-videos {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    #videosCarouselMobile {
        max-width: none;
        padding-bottom: 2rem;
    }

    #videosCarouselMobile .carousel-inner {
        overflow: hidden;
    }

    .video-card {
        border-radius: 18px;
    }

    .video-card-mobile {
        margin: 0;
        background: #0c131b;
        box-shadow: 0 14px 28px rgba(4, 8, 14, 0.18);
    }

    .video-card-mobile .video-card-media::before {
        background: linear-gradient(180deg, rgba(5, 10, 16, 0.02) 0%, rgba(5, 10, 16, 0.08) 72%, rgba(5, 10, 16, 0.18) 100%);
    }

    .video-card-mobile .video-card-overlay {
        position: static;
        min-height: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.95rem 1rem 1rem;
        background: linear-gradient(180deg, #101821 0%, #0b1118 100%);
        backdrop-filter: none;
    }

    .video-card-overlay {
        min-height: 0;
        gap: 0.75rem;
        padding: 0.95rem 1rem 1rem;
    }

    .video-card-title {
        font-size: 0.92rem;
        line-height: 1.35;
        -webkit-line-clamp: 3;
    }

    .video-card-button {
        min-height: 38px;
        padding: 0.6rem 0.9rem;
        font-size: 0.72rem;
    }

    .video-carousel-control {
        display: none;
    }

    .video-carousel-indicators {
        bottom: -0.15rem;
    }
}

/* --- ESTILOS PARA SIDEBAR DEL POST --- */
.sticky-sidebar {
    position: sticky;
    top: 90px;
}

.post-tech-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
    white-space: pre-line;
}

.download-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid var(--bs-primary) !important;
}

.download-card .card-body {
    padding: 2rem;
}

.download-card .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    letter-spacing: 1px;
}

.download-card .btn-primary {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.download-card .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(224, 129, 38, 0.3);
}

.download-security-note {
    font-size: 0.9rem;
    color: #5c6773;
    line-height: 1.55;
}

/* Estilos para las tarjetas del sidebar */
.card.shadow-sm {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.shadow-sm:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,.15) !important;
}

.card-title i {
    color: var(--bs-primary);
}

/* --- TARJETA DE AUTOR --- */
.author-card .author-avatar {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid var(--bs-primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.author-social-links .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    transition: all 0.3s ease;
}

.author-social-links .btn:hover {
    transform: translateY(-2px);
}

* ============================================
   ESTILOS ESPECÍFICOS PARA PÁGINA DE CATEGORÍAS
   ============================================ */

/* Header específico para categorías */
.post-header[style*="category-bg.jpg"] {
    position: relative;
    padding: 120px 0 80px;
}

.post-header[style*="category-bg.jpg"]::before {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(227, 179, 42, 0.2) 100%) !important;
}

.post-header[style*="category-bg.jpg"] .post-heading h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.post-header[style*="category-bg.jpg"] .post-heading .meta {
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* Sección de categorías con fondo degradado */
section.py-5:has(.category-card) {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 30vh;
}

/* === TARJETAS DE CATEGORÍAS === */
.category-card {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 280px;
    background-color: #1a1a1a;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(227, 179, 42, 0.3);
}

/* Imagen de la categoría */
.category-card .category-card-img {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover .category-card-img {
    transform: scale(1.1);
}

/* Overlay con gradiente elegante */
.category-card .category-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg, 
        transparent 0%, 
        rgba(26, 26, 26, 0.4) 40%,
        rgba(26, 26, 26, 0.95) 100%
    );
    transition: background 0.4s ease;
}

.category-card:hover .category-card-overlay {
    background: linear-gradient(
        180deg, 
        rgba(227, 179, 42, 0.1) 0%, 
        rgba(26, 26, 26, 0.6) 40%,
        rgba(26, 26, 26, 0.98) 100%
    );
}

/* Título de la categoría */
.category-card .category-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    z-index: 2;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.category-card:hover .category-card-title {
    color: #e3b32a;
    transform: translateY(-5px);
    text-shadow: 2px 2px 8px rgba(227, 179, 42, 0.5);
}

/* Efecto de borde dorado en hover */
.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid transparent;
    border-radius: 12px;
    transition: border-color 0.3s ease;
    pointer-events: none;
}

.category-card:hover::after {
    border-color: #e3b32a;
}

/* Grid responsivo mejorado para categorías - 4 columnas centradas */
section.py-5:has(.category-card) .row.g-4 {
    row-gap: 2rem !important;
    column-gap: 1.5rem !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Forzar 4 columnas en pantallas grandes */
section.py-5:has(.category-card) .row.g-4 > [class*="col-"] {
    flex: 0 0 calc(25% - 1.125rem);
    max-width: calc(25% - 1.125rem);
}

/* Animación de entrada para las cards */
.category-card {
    animation: fadeInUpCategory 0.6s ease-out backwards;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }
.category-card:nth-child(7) { animation-delay: 0.7s; }
.category-card:nth-child(8) { animation-delay: 0.8s; }

@keyframes fadeInUpCategory {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mejora de accesibilidad */
.category-card:focus {
    outline: 3px solid #e3b32a;
    outline-offset: 2px;
}

.category-card:focus:not(:focus-visible) {
    outline: none;
}

/* Mensaje cuando no hay categorías */
section.py-5:has(.category-card) .lead {
    color: #1a1a1a;
    font-size: 1.2rem;
    padding: 60px 20px;
}

/* === RESPONSIVE === */

/* Tablets - 3 columnas */
@media (max-width: 991px) {
    .post-header[style*="category-bg.jpg"] .post-heading h1 {
        font-size: 2.5rem;
    }
    
    .category-card {
        height: 260px;
    }
    
    .category-card .category-card-title {
        font-size: 1.2rem;
        padding: 18px;
    }
    
    /* 3 columnas en tablets */
    section.py-5:has(.category-card) .row.g-4 > [class*="col-"] {
        flex: 0 0 calc(33.333% - 1rem);
        max-width: calc(33.333% - 1rem);
    }
}

/* Móviles grandes - 2 columnas */
@media (max-width: 767px) {
    .post-header[style*="category-bg.jpg"] {
        padding: 100px 0 60px;
    }
    
    .post-header[style*="category-bg.jpg"] .post-heading h1 {
        font-size: 2rem;
    }
    
    .post-header[style*="category-bg.jpg"] .post-heading .meta {
        font-size: 1rem;
    }
    
    .category-card {
        height: 240px;
    }
    
    .category-card .category-card-title {
        font-size: 1.1rem;
        padding: 16px;
    }
    
    /* 2 columnas en móviles grandes */
    section.py-5:has(.category-card) .row.g-4 > [class*="col-"] {
        flex: 0 0 calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
    }
}

/* Móviles pequeños - 1 columna */
@media (max-width: 575px) {
    .category-card {
        height: 220px;
    }
    
    section.py-5:has(.category-card) .row.g-4 {
        row-gap: 1.5rem !important;
    }
    
    /* 1 columna en móviles pequeños */
    section.py-5:has(.category-card) .row.g-4 > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* --- ESTILOS PARA "MÁS DEL AUTOR" CON THUMBNAILS --- */
.otros-posts-autor .otro-post-item {
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    border-left: 3px solid transparent;
}

.otros-posts-autor .otro-post-item:hover {
    background-color: #f8f9fa;
    border-left-color: var(--bs-primary);
    transform: translateX(3px);
}

.otro-post-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.otros-posts-autor .otro-post-item:hover .otro-post-thumb {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: scale(1.05);
}

.otros-posts-autor .otro-post-item .text-dark {
    transition: color 0.2s ease;
    font-weight: 500;
}

.otros-posts-autor .otro-post-item:hover .text-dark {
    color: var(--bs-primary) !important;
}

/* --- POSTS RELACIONADOS --- */
.related-post-item {
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.related-post-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.related-post-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.related-post-item:hover .related-post-thumb {
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.related-post-info h6 {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.related-post-item:hover .related-post-info h6 {
    color: var(--bs-primary);
}

/* --- PROTECCIÓN ANTI-BOT (Elementos ofuscados invisibles hasta decodificar) --- */
.ofuscado,
.nombre-ofuscado,
.social-link-ofuscado {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Cuando JavaScript los decodifica, se muestran */
.ofuscado:not(.ofuscado),
.nombre-ofuscado:not(.nombre-ofuscado),
.social-link-ofuscado:not(.social-link-ofuscado) {
    opacity: 1;
}

/* --- ESTILOS PARA BLOQUES DE ADSENSE (Anti-CLS) --- */
/* Contenedor del anuncio en sidebar (300x250) */
.ad-sidebar-container {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenedor del anuncio horizontal (adaptable) */
.ad-horizontal-container {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilo para el texto "Publicidad" */
.ad-sidebar-container small,
.ad-horizontal-container small {
    color: #6c757d;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- OPTIMIZACIÓN DE IMÁGENES EN GRIDS Y CARDS --- */
.post-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Asegurar que las miniaturas carguen con lazy loading sin CLS */
img[loading="lazy"] {
    min-height: 1px;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 991.98px) {
    .sticky-sidebar {
        position: static;
        margin-top: 3rem;
    }
    
    .related-post-thumb {
        width: 60px;
        height: 60px;
    }
    
    .author-card .author-avatar {
        width: 80px;
        height: 80px;
    }
    
    .otro-post-thumb {
        width: 50px;
        height: 50px;
    }
    
    .post-card .card-img-top {
        height: 180px;
    }
}

@media (max-width: 767.98px) {
    .download-card .card-body {
        padding: 1.5rem;
    }
    
    .download-card .btn-primary {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .post-tech-content {
        font-size: 0.9rem;
    }

    .download-gate-card {
        padding: 1.5rem;
    }

    .download-gate-ad-shell,
    .download-gate-ad-fallback {
        min-height: 250px;
    }
}

@media (max-width: 575.98px) {
    .sticky-sidebar {
        margin-top: 2rem;
    }
    
    .author-card .author-avatar {
        width: 70px;
        height: 70px;
    }
    
    .otro-post-thumb {
        width: 45px;
        height: 45px;
    }
    
    .related-post-thumb {
        width: 50px;
        height: 50px;
    }

    .download-gate-card {
        padding: 1.25rem;
        border-radius: 18px;
    }

    .download-gate-title {
        font-size: 1.45rem;
    }

    .download-gate-subtitle {
        font-size: 0.95rem;
    }

    .download-gate-ad-shell,
    .download-gate-ad-fallback {
        min-height: 220px;
    }
    
    .post-card .card-img-top {
        height: 160px;
    }
}

/* --- MEJORAS DE ACCESIBILIDAD --- */
.otro-post-item:focus,
.related-post-item:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

/* Mejora de contraste para enlaces */
.otros-posts-autor .otro-post-item .text-muted {
    font-size: 0.75rem;
}

/* --- ANIMACIONES SUTILES PARA UX --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card.shadow-sm {
    animation: fadeIn 0.3s ease-out;
}

/* Efecto de carga suave para imágenes */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"]:not([src]) {
    opacity: 0;
}

img[loading="lazy"][src] {
    opacity: 1;
}

/* --- TARJETA DE TECNOLOGÍA MINIMALISTA --- */
.tech-card-minimal {
    border-right: 4px solid var(--bs-primary) !important;
    transition: all 0.3s ease;
}

.tech-card-minimal:hover {
    border-right-width: 6px;
}

.tech-icon-wrapper {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #c87020 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(224, 129, 38, 0.2);
}

.tech-card-minimal .card-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.sidebar-ad-card {
    border: 1px solid rgba(227, 179, 42, 0.28) !important;
    background: linear-gradient(180deg, rgba(255, 248, 225, 0.78) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.sidebar-ad-card .card-body {
    padding: 1rem;
}

.post-inline-ad-shell {
    padding: 1.25rem;
    border: 1px solid rgba(227, 179, 42, 0.22);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 248, 225, 0.72) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.sidebar-ad-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8c6b10;
    margin-bottom: 0.85rem;
}

.download-gate-section {
    background: linear-gradient(180deg, #fffefb 0%, #f7f7f7 100%);
    min-height: calc(100vh - 160px);
}

.download-gate-card {
    background: #fff;
    border: 1px solid rgba(227, 179, 42, 0.25);
    border-radius: 22px;
    padding: 2rem;
}

.download-gate-header {
    margin-bottom: 1.75rem;
}

.download-gate-eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8c6b10;
}

.download-gate-title {
    font-size: clamp(1.75rem, 2.4vw, 2.4rem);
    font-weight: 700;
    color: #17212f;
    margin-bottom: 0.85rem;
}

.download-gate-subtitle {
    margin: 0 auto;
    max-width: 42rem;
    font-size: 1rem;
    color: #566273;
    line-height: 1.7;
}

.download-gate-alert {
    border: 0;
    border-radius: 16px;
    background: rgba(255, 193, 7, 0.14);
    color: #5c4b00;
}

.download-gate-ad-shell,
.download-gate-ad-fallback {
    min-height: 280px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.download-gate-ad-shell {
    padding: 1rem;
    border: 1px dashed rgba(227, 179, 42, 0.4);
    background: linear-gradient(180deg, rgba(255, 248, 225, 0.65) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.download-gate-ad-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(227, 179, 42, 0.15) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 1px solid rgba(227, 179, 42, 0.28);
    color: #253347;
    padding: 1.5rem;
}

.download-gate-ad-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.download-gate-button {
    min-height: 62px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.download-gate-button.is-processing {
    opacity: 0.85;
}

.download-gate-noscript {
    margin-top: 1rem;
    font-size: 0.92rem;
    color: #6b7280;
    text-align: center;
}

.tech-list {
    display: grid;
    gap: 0.75rem;
}

.tech-list-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-right: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.tech-list-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, transparent, rgba(224, 129, 38, 0.1));
    transition: width 0.3s ease;
}

.tech-list-item:hover {
    background: #fff;
    border-right-color: var(--bs-primary);
    transform: translateX(-5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tech-list-item:hover::before {
    width: 100%;
}

.tech-list-icon {
    font-size: 1.2rem;
    color: var(--bs-primary);
    margin-right: 1rem;
    min-width: 24px;
    transition: all 0.3s ease;
    z-index: 1;
}

.tech-list-item:hover .tech-list-icon {
    transform: scale(1.2) rotate(5deg);
}

.tech-list-item span {
    font-weight: 500;
    color: #495057;
    z-index: 1;
    transition: color 0.3s ease;
}

.tech-list-item:hover span {
    color: #2c3e50;
    font-weight: 600;
}

/* --- RESPONSIVE --- */
@media (max-width: 767.98px) {
    .tech-icon-wrapper {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .tech-card-minimal .card-title {
        font-size: 1rem;
    }
    
    .tech-list-item {
        padding: 0.65rem 0.85rem;
    }
    
    .tech-list-icon {
        font-size: 1.1rem;
        margin-right: 0.75rem;
    }
    
    .tech-list-item span {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .tech-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .tech-list {
        gap: 0.6rem;
    }
    
    .tech-list-item {
        padding: 0.6rem 0.75rem;
    }
    
    .tech-list-icon {
        font-size: 1rem;
        margin-right: 0.6rem;
    }
    
    .tech-list-item span {
        font-size: 0.85rem;
    }
}

/* --- BOTÓN DE DONACIÓN STRIPE --- */
.donation-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.donation-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(224, 129, 38, 0.05) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.donation-card:hover {
    border-color: var(--bs-primary) !important;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(224, 129, 38, 0.2) !important;
}

.donation-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    animation: heartbeat 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes heartbeat {
    0%, 100% { 
        transform: scale(1); 
    }
    10%, 30% { 
        transform: scale(1.15); 
    }
    20%, 40% { 
        transform: scale(1); 
    }
}

.donation-title {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.donation-text {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.btn-donation {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #c87020 100%);
    color: #fff;
    font-weight: 600;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(224, 129, 38, 0.3);
    text-decoration: none;
    display: inline-block;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-donation::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-donation:hover::before {
    left: 100%;
}

.btn-donation:hover {
    background: linear-gradient(135deg, #c87020 0%, var(--bs-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 129, 38, 0.4);
    color: #fff;
}

.btn-donation:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(224, 129, 38, 0.3);
}

.donation-secure {
    font-size: 0.75rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    position: relative;
    z-index: 1;
}

.donation-secure i {
    color: #5469d4; /* Color de Stripe */
}

/* --- RESPONSIVE --- */
@media (max-width: 767.98px) {
    .donation-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .donation-title {
        font-size: 1rem;
    }
    
    .donation-text {
        font-size: 0.85rem;
    }
    
    .btn-donation {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .donation-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .donation-title {
        font-size: 0.95rem;
    }
    
    .btn-donation {
        padding: 0.7rem 1rem;
    }
}

/* ============================================
   ESTILOS PARA CONTENIDO DE POSTS
   ============================================ */

/* --- TÍTULOS Y SECCIONES --- */
.post-section-title {
    color: #2c3e50;
    border-bottom: 4px solid var(--bs-primary);
    padding-bottom: 12px;
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 2rem;
}

.section-subtitle {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 15px;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 70%;
    background: linear-gradient(180deg, var(--bs-primary) 0%, #c87020 100%);
    border-radius: 3px;
}

/* --- VIDEO CONTAINER --- */
.video-container {
    margin: 2rem 0;
}

.video-container .ratio {
    border: 3px solid #e9ecef;
}

.video-container .ratio:hover {
    border-color: var(--bs-primary);
    transition: border-color 0.3s ease;
}

/* --- BLOQUES DE CÓDIGO --- */
.code-block-wrapper {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.code-block-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.code-label {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.code-file {
    font-family: 'Courier New', monospace;
    opacity: 0.8;
}

.code-block {
    background: #ecf0f1;
    padding: 1.25rem;
    margin: 0;
    font-size: 0.95rem;
    overflow-x: auto;
    font-family: 'Courier New', Consolas, monospace;
    line-height: 1.6;
    color: #2c3e50;
    border: none;
}

.code-block-php {
    background: #f8f9fa;
    border-left: 4px solid #777BB4;
}

.code-block code {
    color: inherit;
    background: transparent;
}

.code-example-title {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* --- CARACTERÍSTICAS (FEATURES GRID) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.feature-item {
    display: flex;
    align-items: start;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--bs-primary);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #fff;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.feature-item i {
    color: var(--bs-primary);
    font-size: 1.2rem;
    margin-right: 0.75rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.feature-item span {
    color: #495057;
    line-height: 1.5;
}

.feature-item code {
    background: #e9ecef;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}

/* --- DETALLES TÉCNICOS --- */
.technical-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.function-name {
    color: var(--bs-primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.tech-list {
    list-style: none;
    padding-left: 0;
    margin: 0.5rem 0 0 1.5rem;
}

.tech-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #495057;
    line-height: 1.6;
}

.tech-list li::before {
    content: '?';
    position: absolute;
    left: 0;
    color: var(--bs-primary);
    font-weight: bold;
}

.tech-list code {
    background: #fff;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    border: 1px solid #dee2e6;
    font-size: 0.9em;
}

/* --- TARJETAS DE BENEFICIOS --- */
.benefits-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.benefit-card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    border-color: var(--bs-primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(224, 129, 38, 0.15);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--bs-primary);
    margin-bottom: 1rem;
    display: block;
}

.benefit-card h6 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.benefit-card p {
    color: #6c757d;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
}

/* --- PASOS DE INSTALACIÓN --- */
.installation-steps {
    margin: 2rem 0;
}

.step-item {
    display: flex;
    align-items: start;
    margin-bottom: 2rem;
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 60px;
    width: 2px;
    height: calc(100% - 10px);
    background: linear-gradient(180deg, var(--bs-primary) 0%, #e9ecef 100%);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #c87020 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-right: 1.5rem;
    box-shadow: 0 4px 10px rgba(224, 129, 38, 0.3);
    position: relative;
    z-index: 1;
}

.step-content {
    flex: 1;
    padding-top: 0.5rem;
}

.step-content h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step-content p {
    color: #495057;
    margin: 0;
    line-height: 1.6;
}

.step-content code {
    background: #f8f9fa;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
    border: 1px solid #e9ecef;
}

/* --- MENSAJE DE ÉXITO --- */
.success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 4px solid #28a745;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.success-message i {
    font-size: 2rem;
    color: #28a745;
}

.success-message p {
    margin: 0;
    color: #155724;
    font-weight: 500;
    line-height: 1.5;
}

/* --- ALERTA DE ADVERTENCIA PERSONALIZADA --- */
.alert-danger-custom {
    background: #fff;
    border: 3px solid #e74c3c;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.15);
}

.alert-header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-header i {
    font-size: 2rem;
}

.alert-header h4 {
    margin: 0;
    font-weight: 700;
    font-size: 1.3rem;
}

.alert-body {
    padding: 1.5rem;
    background: #fdecea;
}

.alert-body p {
    color: #b71c1c;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.alert-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.alert-list li {
    color: #b71c1c;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.alert-list i {
    color: #e74c3c;
    font-size: 0.9rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 991.98px) {
    .post-section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1.3rem;
    }
    
    .benefits-cards {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 767.98px) {
    .post-section-title {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-right: 1rem;
    }
    
    .step-item:not(:last-child)::after {
        left: 19px;
        top: 50px;
    }
}

@media (max-width: 575.98px) {
    .benefits-cards {
        grid-template-columns: 1fr;
    }
    
    .code-block {
        font-size: 0.85rem;
        padding: 1rem;
    }
    
    .alert-header {
        flex-direction: column;
        text-align: center;
    }
}
#heroCarousel .carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: -100px;
}

@media (max-width: 768px) {
    #heroCarousel .carousel-inner {
        margin-top: -40px; /* Menos desplazamiento en móvil */
    }
}
#heroCarousel.carousel .carousel-item {
        height: 100vh;
    }

#heroCarousel .code-slideshow {
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, #363636 0%, #313131 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: 'Courier New', monospace;
        overflow: hidden;
        position: relative;
        gap: 30px;
        padding: 40px 20px; /* Añadido padding vertical */
    }

#heroCarousel .code-container {
        width: 100%;
        max-width: 1200px;
        max-height: calc(100vh - 80px); /* Limitar altura máxima */
        background: #1a1a1a;
        border-radius: 15px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
        overflow: hidden;
        border: 1px solid #333;
        display: flex;
        flex-direction: column;
    }

    .code-header {
        background: linear-gradient(to bottom, #f6f6f6, #d3d3d3);
        padding: 15px 20px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid #b5b5b5;
        flex-shrink: 0; /* No se comprime */
    }

    .code-dots {
        display: flex;
        gap: 8px;
    }

    .code-dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
    }

    .dot-red {
        background: #ff5f56;
    }

    .dot-yellow {
        background: #ffbd2e;
    }

    .dot-green {
        background: #27c93f;
    }

    .code-title {
    margin-left: 15px;
    color: #6c6c6c;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    font-weight: 600;
    letter-spacing: 0.3px;
}

    .code-content {
        padding: 30px;
        color: #f8f8f2;
        font-size: 15px;
        line-height: 1.5;
        position: relative;
        overflow-y: auto;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .code-line {
        margin-bottom: 10px;
        opacity: 0;
        animation: typewriter 0.5s forwards;
        white-space: nowrap;
        overflow: hidden;
    }

    .line-number {
        color: #6272a4;
        display: inline-block;
        width: 40px;
        text-align: right;
        margin-right: 20px;
        user-select: none;
    }

    .js-keyword {
        color: #ff79c6;
    }

    .js-function {
        color: #50fa7b;
    }

    .js-string {
        color: #f1fa8c;
    }

    .js-comment {
        color: #6272a4;
        font-style: italic;
    }

    .js-variable {
        color: #8be9fd;
    }

    .js-number {
        color: #bd93f9;
    }

    .cursor {
        display: inline-block;
        width: 8px;
        height: 20px;
        background: #f8f8f2;
        margin-left: 5px;
        animation: blink 1s infinite;
        vertical-align: middle;
    }

    @keyframes typewriter {
        to {
            opacity: 1;
        }
    }

    @keyframes blink {
        0%, 100% {
            opacity: 1;
        }
        50% {
            opacity: 0;
        }
    }

    /* Delays para cada línea de código */
    .line-1 { animation-delay: 0.5s; }
    .line-2 { animation-delay: 1s; }
    .line-3 { animation-delay: 1.5s; }
    .line-4 { animation-delay: 2s; }
    .line-5 { animation-delay: 2.5s; }
    .line-6 { animation-delay: 3s; }
    .line-7 { animation-delay: 3.5s; }
    .line-8 { animation-delay: 4s; }
    .line-9 { animation-delay: 4.5s; }
    .line-10 { animation-delay: 5s; }
    .line-11 { animation-delay: 5.5s; }
    .line-12 { animation-delay: 6s; }
    .line-13 { animation-delay: 6.5s; }
    .line-14 { animation-delay: 7s; }
    .line-15 { animation-delay: 7.5s; }

    @media (max-width: 768px) {
        .code-content {
            font-size: 13px;
            padding: 15px;
        }
        
        .line-number {
            width: 25px;
            margin-right: 10px;
        }
        
        .code-slideshow {
            padding: 20px 10px;
        }
    }
	
.qr-container {
    position: absolute;
    left: calc(50% + 500px); 
    top: 30%; /* Cambiado para centrarlo mejor */
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.qr-container img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.1;
	margin-top: 40px;
}

.qr-label {
    margin-top: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5); 
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
}

@media (max-width: 768px) {
    .qr-container {
        display: none;
    }
}
/* Estilos para el Modal de Contacto */
.modal-contacto .modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-contacto .modal-header {
    background: linear-gradient(135deg, #b69639 0%, #e3b32a 100%);
    color: white;
    padding: 25px 30px;
    border: none;
}

.modal-contacto .modal-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.modal-contacto .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-contacto .btn-close:hover {
    opacity: 1;
}

.modal-contacto .modal-body {
    padding: 35px 30px;
    background: #f8f9fa;
}

/* Estilos del formulario */
.modal-contacto .form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.modal-contacto .form-control,
.modal-contacto .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
}

.modal-contacto .form-control:focus,
.modal-contacto .form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.15);
    background: white;
}

.modal-contacto textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Captcha section */
.modal-contacto .captcha-section {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-contacto #captcha-pregunta {
    color: #e3b32a;
    font-size: 16px;
}

.modal-contacto #form_captcha {
    width: 80px;
    text-align: center;
    font-weight: 600;
}

/* Checkbox de privacidad */
.modal-contacto .form-check {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.modal-contacto .form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

.modal-contacto .form-check-input:checked {
    background-color: #27ae60;
    border-color: #27ae60;
}

.modal-contacto .form-check-label a {
    color: #e3b32a;
    text-decorate3b32aion: none;
    font-weight: 400;
	font-size: 10px;
}

.modal-contacto .form-check-label .acepto-text {
    font-size: 10px;
}
.modal-contacto .form-check-label a:hover {
    text-decoration: underline;
}
.modal-contacto .form-check-label {
    margin-left: 8px;
    font-size: 10px;
    color: #555;
    cursor: pointer;
    line-height: 1.5;
}

.modal-contacto .form-check-label strong {
    font-size: 10px;
    color: #2c3e50;
}

.contact-hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Botón de envío */
.modal-contacto #form-submit-button {
    background: linear-gradient(135deg, #e3b32a 0%, #e3ae17 100%);
    border: none;
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.modal-contacto #form-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.modal-contacto #form-submit-button:active {
    transform: translateY(0);
}

/* Mensajes de éxito y error */
.modal-contacto .alert {
    border: none;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.modal-contacto .alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.modal-contacto .alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

/* Iconos de éxito */
.modal-contacto .success-icon-container {
    text-align: center;
    margin-bottom: 15px;
}

.modal-contacto .success-icon-container i {
    font-size: 48px;
    color: #27ae60;
    animation: successPulse 1.5s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.modal-contacto .success-decorative-line {
    height: 3px;
    width: 60px;
    background: #e3b32a;
    margin: 15px auto;
    border-radius: 2px;
}

.modal-contacto .email-reminder {
    background: rgba(227, 179, 42, 0.1);
    border-left: 4px solid #e3b32a;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    gap: 12px;
    align-items: start;
}

.modal-contacto .email-reminder-icon {
    flex-shrink: 0;
}

.modal-contacto .email-reminder-icon i {
    font-size: 20px;
    color: #e3b32a;
}

.modal-contacto .email-reminder-text {
    margin: 0;
    font-size: 14px;
    color: #555;
}

/* Estilos para campos requeridos */
.modal-contacto .text-danger {
    color: #e74c3c !important;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-contacto .modal-dialog {
        margin: 10px;
    }
    
    .modal-contacto .modal-header {
        padding: 20px;
    }
    
    .modal-contacto .modal-title {
        font-size: 20px;
    }
    
    .modal-contacto .modal-body {
        padding: 25px 20px;
    }
    
    .modal-contacto .captcha-section {
        flex-direction: column;
        align-items: start;
        gap: 10px;
    }
    
    .modal-contacto #form-submit-button {
        width: 100%;
    }
}

/* Estados de validación */
.modal-contacto .form-control.is-invalid,
.modal-contacto .form-select.is-invalid {
    border-color: #e74c3c;
}

.modal-contacto .form-control.is-valid,
.modal-contacto .form-select.is-valid {
    border-color: #27ae60;
}
.btn-back {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.btn-back:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .btn-back {
        font-size: 12px;
        padding: 6px 12px;
        width: 100%;
        display: flex;
    }
    
    .mt-3.text-end {
        text-align: center !important;
    }
}
.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.lang-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap; /* Evita que se rompa en varias líneas */
}

.flag-icon {
    display: inline-block;
    vertical-align: middle;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    flex-shrink: 0; /* Evita que las banderas se reduzcan */
}

.lang-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.lang-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    flex-shrink: 0; /* Evita que el separador se reduzca */
}

/* Responsive - En móvil se apila verticalmente */
@media (max-width: 768px) {
    .language-selector {
        flex-wrap: nowrap; /* Evita que se rompa en varias líneas */
        justify-content: center;
    }
    
    /* Opcional: reducir un poco el tamaño en móvil si es necesario */
    .lang-link {
        font-size: 13px;
        padding: 3px 6px;
    }
    
    .flag-icon {
        width: 18px;
        height: 13px;
    }
}
.grecaptcha-badge {
    visibility: hidden !important;
}

/* Override final del hero retro frente a reglas legacy del carrusel antiguo */
#heroCarousel .code-line {
    display: flex;
    align-items: baseline;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
    opacity: 1 !important;
}

#heroCarousel .line-number,
#heroCarousel .js-keyword,
#heroCarousel .js-function,
#heroCarousel .js-variable,
#heroCarousel .js-string,
#heroCarousel .js-number {
    animation: none !important;
}

#heroCarousel .code-line-text {
    display: inline-block;
    min-height: 1em;
}

#heroCarousel .code-line.is-hidden .line-number,
#heroCarousel .code-line.is-hidden .code-line-text {
    opacity: 0;
}

#heroCarousel .code-line.is-typing .line-number,
#heroCarousel .code-line.is-complete .line-number,
#heroCarousel .code-line.is-typing .code-line-text,
#heroCarousel .code-line.is-complete .code-line-text {
    opacity: 1;
}

#heroCarousel .line-1 { animation-delay: 0.5s !important; }
#heroCarousel .line-2 { animation-delay: 1s !important; }
#heroCarousel .line-3 { animation-delay: 1.5s !important; }
#heroCarousel .line-4 { animation-delay: 2s !important; }
#heroCarousel .line-5 { animation-delay: 2.5s !important; }
#heroCarousel .line-6 { animation-delay: 3s !important; }
#heroCarousel .line-7 { animation-delay: 3.5s !important; }
#heroCarousel .line-8 { animation-delay: 4s !important; }
#heroCarousel .line-9 { animation-delay: 4.5s !important; }
#heroCarousel .line-10 { animation-delay: 5s !important; }
#heroCarousel .line-11 { animation-delay: 5.5s !important; }
#heroCarousel .line-12 { animation-delay: 6s !important; }
#heroCarousel .line-13 { animation-delay: 6.5s !important; }
#heroCarousel .line-14 { animation-delay: 7s !important; }

/* Override final servicios + portfolio */
#servicios {
    overflow: hidden;
}

.services-layout {
    --bs-gutter-x: 3.75rem;
}

.services-stack {
    display: grid;
    gap: 1rem;
    max-width: 790px;
    margin-left: auto;
    margin-right: 0;
}

.service-widget {
    min-height: 132px;
    padding: 1.35rem 1.5rem;
    border: 1px solid rgba(227, 179, 42, 0.9);
    border-radius: 1.65rem;
    background: linear-gradient(180deg, #fff 0%, #fffdf8 100%);
    box-shadow: 0 18px 36px rgba(15, 20, 30, 0.06);
}

.services-portfolio-panel {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 588px;
    padding-left: 1rem;
}

.services-portfolio-panel--empty {
    align-items: center;
}

.portfolio-carousel {
    width: min(100%, 760px);
    position: relative;
}

.portfolio-carousel-header {
    display: none;
}

.portfolio-carousel-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(227, 179, 42, 0.65);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    opacity: 1;
    transform: translateY(-50%);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 14px 26px rgba(15, 20, 30, 0.14);
}

.portfolio-carousel-control:hover,
.portfolio-carousel-control:focus {
    background: #e3b32a;
    border-color: #e3b32a;
    transform: translateY(calc(-50% - 1px));
}

.portfolio-carousel-control .carousel-control-prev-icon,
.portfolio-carousel-control .carousel-control-next-icon {
    width: 1rem;
    height: 1rem;
    filter: brightness(0) saturate(100%) invert(12%) sepia(9%) saturate(1077%) hue-rotate(177deg) brightness(94%) contrast(92%);
}

.portfolio-carousel-control:hover .carousel-control-prev-icon,
.portfolio-carousel-control:hover .carousel-control-next-icon,
.portfolio-carousel-control:focus .carousel-control-prev-icon,
.portfolio-carousel-control:focus .carousel-control-next-icon {
    filter: brightness(0) saturate(100%);
}

.portfolio-carousel-control--prev {
    left: 1rem;
}

.portfolio-carousel-control--next {
    right: 1rem;
}

.portfolio-carousel-inner {
    border-radius: 1.85rem;
    overflow: hidden;
    box-shadow: 0 28px 50px rgba(15, 20, 30, 0.12);
    background: #f4f0e4;
}

.portfolio-card,
.portfolio-slide-trigger,
.portfolio-figure {
    display: block;
    width: 100%;
}

.portfolio-slide-trigger {
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: zoom-in;
}

.portfolio-figure {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #f6f1e6;
    overflow: hidden;
}

.portfolio-figure::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--portfolio-bg-image);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(20px);
    transform: scale(1.08);
    opacity: 0.42;
}

.portfolio-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    display: block;
    transition: transform 0.35s ease;
}

.portfolio-slide-trigger:hover .portfolio-image,
.portfolio-slide-trigger:focus .portfolio-image {
    transform: scale(1.03);
}

.portfolio-caption {
    position: absolute;
    z-index: 2;
    inset: auto 0 0 0;
    min-height: 17%;
    padding: 0.85rem 1.15rem 0.9rem;
    background: linear-gradient(180deg, rgba(227, 179, 42, 0.52) 0%, rgba(214, 165, 29, 0.62) 100%);
    color: #121821;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.22rem;
    text-align: center;
}

.portfolio-title {
    margin: 0;
    font-size: clamp(1.18rem, 1.35vw, 1.55rem);
    font-weight: 700;
    line-height: 1.12;
    color: #121821;
}

.portfolio-description {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.35;
    color: rgba(18, 24, 33, 0.92);
    max-width: 92%;
}

.portfolio-empty-state {
    width: min(100%, 760px);
    min-height: 520px;
    padding: 2rem;
    border: 1px dashed rgba(227, 179, 42, 0.8);
    border-radius: 1.85rem;
    background: linear-gradient(180deg, #fff 0%, #fffaf0 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.7rem;
    color: #435166;
}

.portfolio-modal .modal-content {
    border: 0;
    border-radius: 1.65rem;
    overflow: hidden;
    box-shadow: 0 34px 70px rgba(15, 20, 30, 0.24);
}

.portfolio-modal .modal-header {
    padding: 1.15rem 1.35rem;
    border-bottom: 1px solid rgba(16, 21, 28, 0.08);
    background: #fff;
}

.portfolio-modal .modal-body {
    padding: 0;
    background: #f6f3ea;
}

.portfolio-modal-figure {
    margin: 0;
}

.portfolio-modal-image {
    width: 100%;
    max-height: 76vh;
    object-fit: contain;
    display: block;
    background: #f6f3ea;
}

.portfolio-modal-caption {
    padding: 1.1rem 1.35rem 1.4rem;
    background: #fff;
}

.portfolio-modal-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #425166;
}

@media (max-width: 1199.98px) {
    .services-stack {
        max-width: none;
    }

    .services-portfolio-panel {
        min-height: auto;
        padding-left: 0;
    }

    .portfolio-carousel,
    .portfolio-empty-state {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .services-layout {
        --bs-gutter-x: 0.75rem;
    }

    .service-widget {
        min-height: auto;
        padding: 1.15rem 1rem;
    }

    .services-portfolio-panel {
        margin-top: 0.4rem;
        padding-top: 0;
        padding-left: 0;
    }

    .portfolio-carousel-control {
        width: 42px;
        height: 42px;
    }

    .portfolio-carousel-control--prev {
        left: 0.7rem;
    }

    .portfolio-carousel-control--next {
        right: 0.7rem;
    }

    .portfolio-figure {
        aspect-ratio: 1 / 1;
    }

    .portfolio-caption {
        min-height: 19%;
        padding: 0.8rem 0.9rem 0.85rem;
    }

    .portfolio-title {
        font-size: 1.02rem;
    }

    .portfolio-description {
        font-size: 0.82rem;
    }

    .portfolio-empty-state {
        min-height: 320px;
        padding: 1.35rem;
    }

    .portfolio-modal .modal-dialog {
        margin: 0.65rem;
    }

    .portfolio-modal-image {
        max-height: 56vh;
    }
}

@media (min-width: 1200px) {
    .services-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 790px;
        align-content: start;
    }

    .service-widget {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        align-content: start;
        justify-items: center;
        text-align: center;
        min-height: 0;
        padding: 1.5rem 1.2rem;
    }

    .service-widget-icon {
        width: auto;
        margin-bottom: 0.1rem;
        font-size: 3rem;
    }

    .service-widget-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .service-widget-title {
        margin: 0 0 0.4rem;
        font-size: 1.05rem;
    }

    .service-widget-text {
        font-size: 0.72rem;
        line-height: 1.35;
        max-width: 28ch;
    }
}
@media (min-width: 1200px) {
    #servicios.py-5 {
        padding-top: 3.35rem !important;
        padding-bottom: 0.65rem !important;
    }

    .services-home-intro {
        margin-bottom: 2.6rem !important;
    }

    .services-portfolio-panel {
        margin-top: -1.9rem;
    }
}
@media (max-width: 767.98px) {
    #ultimos-videos {
        overflow-x: clip;
    }

    #videosCarouselMobile {
        width: 100%;
        overflow: hidden;
        padding-bottom: 2.8rem;
        touch-action: pan-y;
    }

    #videosCarouselMobile .carousel-inner {
        overflow: hidden;
        border-radius: 18px;
    }

    #videosCarouselMobile .carousel-item {
        width: 100%;
    }

    .video-card-mobile {
        width: 100%;
        max-width: 100%;
    }

    .video-carousel-indicators {
        bottom: -0.05rem;
        margin-bottom: 0;
        pointer-events: none;
    }

    .video-carousel-indicators [data-bs-target] {
        width: 22px;
        height: 22px;
        margin: 0 0.12rem;
        pointer-events: auto;
    }

    .video-carousel-indicators [data-bs-target]::before {
        width: 8px;
        height: 8px;
    }
}
@media (min-width: 992px) {
    #heroCarousel .code-content {
        padding-right: 3rem !important;
    }

    #heroCarousel .code-line,
    #heroCarousel .code-line-text {
        overflow: visible !important;
    }

    #heroCarousel .code-line,
    #heroCarousel .line-number,
    #heroCarousel .js-keyword,
    #heroCarousel .js-function,
    #heroCarousel .js-variable,
    #heroCarousel .js-string,
    #heroCarousel .js-number {
        font-size: clamp(1.35rem, 1.75vw, 1.95rem) !important;
    }
}


@media (min-width: 992px) {
    #heroCarousel .code-container {
        transform: scale(0.9) !important;
    }

    #heroCarousel .code-content {
        min-height: min(50vh, 520px) !important;
        padding-right: 1.75rem !important;
    }

    #heroCarousel .code-line,
    #heroCarousel .code-line-text {
        overflow: hidden !important;
    }

    #heroCarousel .code-line,
    #heroCarousel .line-number,
    #heroCarousel .js-keyword,
    #heroCarousel .js-function,
    #heroCarousel .js-variable,
    #heroCarousel .js-string,
    #heroCarousel .js-number {
        font-size: clamp(1.45rem, 1.9vw, 2.05rem) !important;
    }
}


@media (min-width: 992px) {
    #heroCarousel .code-container {
        transform: scale(0.92) !important;
    }

    #heroCarousel .code-content {
        min-height: min(56vh, 590px) !important;
        padding-right: 1.5rem !important;
    }

    #heroCarousel .code-line,
    #heroCarousel .line-number,
    #heroCarousel .js-keyword,
    #heroCarousel .js-function,
    #heroCarousel .js-variable,
    #heroCarousel .js-string,
    #heroCarousel .js-number {
        font-size: clamp(1.34rem, 1.78vw, 1.9rem) !important;
    }
}

.footer-about-text {
    font-size: 0.7rem;
    line-height: 1.4;
}