:root {
    --brand-red: #F41035;
    --brand-red-dark: #D10D2D;
    --brand-dark: #111;
    --brand-white: #FCFCFC;
    --brand-gray: #F5F5F5;
}

* { margin: 0; padding: 0; box-sizing: border-box; list-style: none; text-decoration: none; border: none; outline: none; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; background: var(--brand-white); color: #000; overflow-x: hidden;  }
.container { width: 92%; margin: 0 auto; max-width: 1200px; }
.u-text-red { color: var(--brand-red); }
img { width: 100%; display: block; }

.hero-main__description{
    line-height: 30PX;
}

/* REVEAL SYSTEM */
.reveal { transform: translateY(30px); opacity: 0; transition: 0.8s ease-out; }
.reveal.active { transform: translateY(0); opacity: 1; }
.arrow-mov { transform: rotate(45deg); display: inline-block; transition: 0.3s; }

/* HEADER */
.header-main { box-shadow: 0 4px 20px rgba(0,0,0,0.02); background: #fff; position: sticky; top: 0; z-index: 2000; padding: 15px 0; }
.header-main__container { display: flex; justify-content: space-between; align-items: center; }
.header-main__logo img { height: 40px; width: auto; }
.nav-logic { display: none; }
.nav-menu { position: fixed; top: 0; right: -100%; width: 85%; height: 100vh; background: #fff; transition: 0.5s; z-index: 2500; display: flex; justify-content: center; align-items: center; }
.nav-menu__list { display: flex; flex-direction: column; gap: 30px; text-align: center; }
.nav-menu__link { font-size: 22px; font-weight: 800; color: var(--brand-dark); }
.nav-menu__heart { color: var(--brand-red); }
.nav-menu__btn { border: 2px solid var(--brand-red); color: var(--brand-red); padding: 12px 25px; border-radius: 8px; font-weight: 800; }
/* ✅ ESTADO HOVER */
.nav-menu__btn:hover { 
    background-color: var(--brand-red); 
    color: #fff; 
    transform: translateY(-3px); /* Efecto de elevación */
    box-shadow: 0 8px 20px rgba(244, 16, 53, 0.3); /* Sombra roja difuminada */
}


.hamburger-btn { position: fixed; bottom: 25px; right: 20px; width: 60px; height: 60px; background: var(--brand-red); border-radius: 50%; z-index: 3000; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; }
.hamburger-btn__bar { width: 25px; height: 3px; background: #fff; transition: 0.4s; }
#menu-toggler:checked ~ .header-main .nav-menu { right: 0; }

@media (min-width: 900px) {
    .hamburger-btn { display: none; }
    .nav-menu { position: static; width: auto; height: auto; background: transparent; }
    .nav-menu__list { flex-direction: row; gap: 40px; }
    .nav-menu__link { font-size: 14px; }
}

/* HERO (45/45 - H1 Max 50px) */
.hero-main { padding: 60px 0; min-height: 80vh; display: flex; align-items: center; }
.hero-main__grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.hero-main__title { font-size: clamp(32px, 5vw, 50px); font-weight: 800; line-height: 1.1; margin-bottom: 25px; }
.hero-main__cta { background: var(--brand-red); color: #fff; padding: 20px 40px; border-radius: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 15px; margin-top: 20px; }
.hero-main__cta:hover { background: black; color: #fff; padding: 20px 40px; transition: 0.2s; transform: scale(1.05) translateY(-5px); 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); border-radius: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 15px; margin-top: 20px; }







@media (min-width: 900px) {
    .hero-main__grid { grid-template-columns: 45% 45%; justify-content: space-between; }
}

/* PORTFOLIO */
.portfolio { padding: 80px 0; }
.portfolio__title { font-size: 32px; font-weight: 800; text-align: center; margin-bottom: 50px; line-height:35px;}
.portfolio__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 1100px) {
    .portfolio__grid--carousel { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; padding-bottom: 20px; scrollbar-width: none; }
    .portfolio__grid--carousel::-webkit-scrollbar { display: none; }
    .portfolio__grid--carousel .p-card { min-width: 85%; scroll-snap-align: center; flex-shrink: 0; }
}
.p-card__image-holder { height: 320px; border-radius: 20px; overflow: hidden; background: #eee; margin-bottom: 20px; }
.p-card__image-holder img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.p-card__name { font-size: 20px; font-weight: 300; margin-bottom: 10px; color:black; }

/* FEEDBACK CAROUSEL CSS3 */
.feedback-section { padding: 100px 0; background: #fff; overflow: hidden; }
.feedback-section__title { font-size: 32px; font-weight: 800; text-align: center; margin-bottom: 50px;  line-height:35px;}
.feedback-section__carousel-viewport { width: 100%; overflow: hidden; position: relative; }
.feedback-section__track { 
    display: flex; 
    gap: 30px; 
    width: max-content; 
    animation: scrollFeedback 40s linear infinite; 
}
.feedback-section__track:hover { animation-play-state: paused; }

.feedback-card { 
    width: 450px; 
    padding: 40px; 
    border: 1px solid #eee; 
    border-radius: 20px; 
    background: #fff; 
    flex-shrink: 0;
}
.feedback-card__stars { color: #FFCC00; margin-bottom: 15px; }
.feedback-card__quote { font-style: italic; color: #444; margin-bottom: 20px; line-height: 1.6; }
.feedback-card__user { display: flex; flex-direction: column; font-weight: 800; }
.feedback-card__company { color: var(--brand-red); font-size: 14px; }

@keyframes scrollFeedback {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); }
}

/* BLOG (SIMETRÍA 16:10) */
.blog-feed { background: var(--brand-gray); padding: 80px 0; }
.blog-feed__title { font-size: 32px; font-weight: 800; text-align: center; margin-bottom: 50px; }
.blog-feed__grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.b-card__image-holder { width: 100%; aspect-ratio: 16 / 10; border-radius: 15px; overflow: hidden; margin-bottom: 40px; background: #ddd; }
.b-card__image-holder img { width: 100%; height: 100%; object-fit: cover; }
.b-card__name { font-size: 18px; font-weight: 300; color:black; }
@media (min-width: 768px) { .blog-feed__grid { grid-template-columns: 1fr 1fr; } }

/* BRANDS CARRUSEL CSS3 */
.brands-carousel { padding: 60px 0; background: #fff; overflow: hidden; border-top: 1px solid #f0f0f0; }
.brands-carousel__track { display: flex; width: max-content; animation: scrollBrands 25s linear infinite; }
.brands-carousel__item { width: 250px; display: flex; justify-content: center; flex-shrink: 0; }
.brands-carousel__item img { height: 40px; width: auto; filter: grayscale(1); opacity: 0.4; }

@keyframes scrollBrands {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* CONTACTO */
.contact-block { padding: 100px 0; }
.contact-block__grid { display: grid; grid-template-columns: 1fr; gap: 50px; }
.contact-block__title { font-size: clamp(32px, 4vw, 42px); font-weight: 800; margin-bottom: 20px; LINE-HEIGHT:46px; }
.contact-block__description { color: #555; margin-bottom: 30px; line-height: 1.6; }
.contact-block__actions { display: flex; flex-wrap: wrap; gap: 15px; }

.btn-action { flex: 1; min-width: 160px; padding: 18px; border-radius: 12px; font-weight: 800; color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; transition: 0.3s; }
.btn-action--wa { background: #25D366; }
.btn-action--call { background: var(--brand-dark); }
.btn-action:hover { transform: scale(1.02); }

.main-form { background: #fff; padding: 40px; border-radius: 24px; border: 1px solid #eee; box-shadow: 0 10px 30px rgba(0,0,0,0.02); }
.main-form__group { margin-bottom: 20px; }
.main-form__label { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; color: #aaa; margin-bottom: 5px; }
.main-form__input, .main-form__textarea { width: 100%; padding: 15px; background: #F9F9F9; border-radius: 10px; font-family: inherit; }
.main-form__textarea { height: 100px; resize: none; }
.main-form__submit { width: 100%; padding: 20px; background: var(--brand-red); color: #fff; font-size: 18px; font-weight: 400; border-radius: 12px; cursor: pointer; transition: 0.3s; }
.main-form__submit:hover { background: var(--brand-dark); }

@media (min-width: 900px) { .contact-block__grid { grid-template-columns: 1fr 1fr; gap: 80px; } }

/* REUSABLES */
.custom-link { display: inline-flex; align-items: center; gap: 10px; color: var(--brand-red); font-weight: 800; margin-top: 15px; transition: 0.3s; }
.custom-link__line { height: 2px; width: 30px; background: var(--brand-red); transition: 0.3s; }
.custom-link--dark { color: var(--brand-red); }
.custom-link--dark .custom-link__line { background: var(--brand-red)}
.custom-link:hover .custom-link__line { width: 45px; }
.custom-link:hover .arrow-mov { transform: translate(5px, -5px) rotate(45deg); }

.portfolio__footer, .blog-feed__footer { display: flex; justify-content: center; margin-top: 40px; }
.btn-cracknear { background: var(--brand-red); color: white;  padding: 15px 40px; border-radius: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 15px; transition: 0.3s; }
.btn-cracknear:hover { background: var(--brand-dark); border-color: var(--brand-red); color: #fff; }


.p-card:hover {
   filter: brightness(0.8) saturate(1.5); transition: width 2s ease-in-out 0.5s;
}





/* MODAL */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
}

.modal-overlay.active {
    display: flex; /* Se muestra con la clase active */
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: modalPop 0.3s ease-out;
}

@keyframes modalPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}







/* FOOTER */
.site-footer { background: #F41035; color: #fff; padding: 80px 0 40px; }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 40px; text-align: center; }
.site-footer__logo { height: 35px; width: 60px; filter: brightness(0) invert(1); margin-bottom: 15px; }
.site-footer__social { display: flex; justify-content: center; gap: 15px; }
.site-footer__link { width: 45px; height: 45px; background: rgba(255,255,255,0.1); border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.site-footer__link:hover { background: var(--brand-red); transform: translateY(-3px); }
.site-footer__bottom { margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); }
.site-footer__copy { font-size: 12px; color: #444; }

@media (min-width: 900px) { 
    .site-footer__grid { grid-template-columns: 1fr 1fr; text-align: left; } 
    .site-footer__social { justify-content: flex-end;  } 
    .site-footer__bottom { text-align: center; }
}

/* --- YO.CSS: DISEÑO INDEPENDIENTE --- */

:root {

    --brand-red: #F41035;

    --brand-dark: #111;

    --brand-white: #FCFCFC;

    --brand-gray: #F5F5F5;

}



* { margin: 0; padding: 0; box-sizing: border-box; list-style: none; text-decoration: none; border: none; outline: none; line-height:22px;}

body { font-family: 'Montserrat', sans-serif; background: var(--brand-white); color: #000; overflow-x: hidden; }

.container { width: 92%; margin: 0 auto; max-width: 1200px; }

.u-text-red { color: var(--brand-red); }



/* REVEAL */

.reveal { transform: translateY(30px); opacity: 0; transition: 0.8s ease-out; }

.reveal.active { transform: translateY(0); opacity: 1; }



/* --- HEADER & NAV (ESTRUCTURA DUPLICADA) --- */

.header-main { background: #fff; position: sticky; top: 0; z-index: 2000; padding: 7px 0; border-bottom: 1px solid #eee; }

.header-main__container { display: flex; justify-content: space-between; align-items: center; }

.header-main__logo img { height: 69px; }

.nav-logic { display: none; }

.nav-menu {  position: fixed; top: 0; right: -100%; width: 85%; height: 100vh; background: #fff; transition: 0.5s cubic-bezier(0.7, 0, 0.3, 1); z-index: 2500; display: flex; justify-content: center; align-items: center; }

.nav-menu__list { display: flex; flex-direction: column; gap: 30px; text-align: center;  }

.nav-menu__link { font-size: 22px; font-weight: 800; color: var(--brand-dark); }

.nav-menu__btn { border: 2px solid var(--brand-red); color: var(--brand-red); padding: 12px 25px; border-radius: 8px; font-weight: 800; }

.hamburger-btn { position: fixed; bottom: 25px; right: 20px; width: 60px; height: 60px; background: var(--brand-red); border-radius: 50%; z-index: 3000; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }

.hamburger-btn__bar { width: 25px; height: 3px; background: #fff; transition: 0.4s; }

#menu-toggler:checked ~ .header-main .nav-menu { right: 0; }

#menu-toggler:checked ~ .header-main .hamburger-btn__bar--top { transform: translateY(8px) rotate(45deg); }

#menu-toggler:checked ~ .header-main .hamburger-btn__bar--mid { opacity: 0; }

#menu-toggler:checked ~ .header-main .hamburger-btn__bar--bot { transform: translateY(-8px) rotate(-45deg); }



@media (min-width: 900px) {

    .hamburger-btn { display: none; }

    .nav-menu { position: static; width: auto; height: auto; background: transparent; }

    .nav-menu__list { flex-direction: row; align-items: center; gap: 40px; }

    .nav-menu__link { font-size: 14px; }

}



/* --- ABOUT HERO (PAGINA YO) --- */

.about-hero { padding: 100px 0; }

.about-hero__grid { display: grid; grid-template-columns: 1fr; gap: 50px; align-items: center; }

.about-hero__image { width: 100%; }

.about-hero__img { width: 100%; border-radius: 30px; filter: grayscale(1); transition: 0.5s; }

.about-hero__img:hover { filter: grayscale(0); }

.about-hero__tag { color: var(--brand-red); font-weight: 800; font-size: 12px; letter-spacing: 2px; }

.about-hero__title { font-size: clamp(32px, 5vw, 48px); font-weight: 800; margin: 20px 0; line-height: 1.1; }

.about-hero__text { font-size: 1.1rem; line-height: 1.7; color: #555; margin-bottom: 30px; }

.about-hero__stats { display: flex; gap: 30px; border-top: 1px solid #eee; padding-top: 30px; }

.stat-item strong { display: block; font-size: 24px; color: var(--brand-dark); }

.stat-item p { font-size: 12px; color: #888; font-weight: 700; text-transform: uppercase; }



@media (min-width: 900px) {

    .about-hero__grid { grid-template-columns: 40% 55%; justify-content: space-between; }

}



/* --- PHILOSOPHY --- */

.philosophy { padding-bottom: 80px; }

.philosophy__card { background: var(--brand-dark); color: #fff; padding: 60px; border-radius: 40px; text-align: center; }

.philosophy__title { font-size: 32px; margin-bottom: 20px; }

.philosophy__desc { font-size: 1.2rem; opacity: 0.8; max-width: 700px; margin: 0 auto; }



/* --- BRANDS CAROUSEL (AISLADO) --- */

.brands-carousel { padding: 60px 0; overflow: hidden; background: #fff; }

.brands-carousel__label { text-align: center; font-size: 12px; font-weight: 800; color: #ccc; text-transform: uppercase; margin-bottom: 30px; letter-spacing: 1px; }

.brands-carousel__track { display: flex; width: calc(250px * 16); animation: scrollBrands 25s linear infinite; }

.brands-carousel__item { width: 250px; display: flex; justify-content: center; }

.brands-carousel__item img { height: 95px; filter: grayscale(1); opacity: 0.3; }

@keyframes scrollBrands { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-250px * 4)); } }





@media (min-width: 900px) {

    .site-footer__grid { grid-template-columns: 1fr 1fr; text-align: left; }

    .site-footer__social { justify-content: flex-end; }

    .site-footer__bottom { grid-column: span 2; text-align: center; }

}




/* ==========================================================================
   🔒 LOCK: INDEX STYLES (DO NOT MODIFY ABOVE THIS LINE)
   Los estilos superiores pertenecen a la arquitectura base y Home.
   ==========================================================================
*/

/* --- SECCIÓN ESPECÍFICA: YO.HTML (NAMESPACE: .page-yo) --- */

.page-yo .about-hero { 
    padding: 100px 0; 
    min-height: 70vh; 
    display: flex; 
    align-items: center; 
}

/* Aplicando regla de ingeniería: 45% Texto | 45% Imagen */
.page-yo .about-hero__grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 40px; 
    align-items: center; 
}

/* Regla estricta: H1 máximo 50px */
.page-yo .about-hero__title { 
    font-size: clamp(32px, 5vw, 50px); 
    font-weight: 800; 
    line-height: 1.1; 
    margin: 15px 0 25px; 
}

.page-yo .about-hero__tag { 
    color: var(--brand-red); 
    font-weight: 800; 
    font-size: 13px; 
    letter-spacing: 3px; 
}

.page-yo .about-hero__text { 
    font-size: 1.15rem; 
    line-height: 1.8; 
    color: #444; 
    margin-bottom: 35px; 
}

.page-yo .about-hero__stats { 
    display: flex; 
    gap: 40px; 
    border-top: 1px solid #eee; 
    padding-top: 30px; 
}

.page-yo .stat-item strong { 
    display: block; 
    font-size: 28px; 
    color: var(--brand-dark); 
}

.page-yo .stat-item p { 
    font-size: 11px; 
    font-weight: 700; 
    text-transform: uppercase; 
    color: #999; 
}

.page-yo .about-hero__img { 
    width: 100%; 
    border-radius: 40px; 
    filter: grayscale(100%); 
    transition: filter 0.6s cubic-bezier(0.4, 0, 0.2, 1); 
}

.page-yo .about-hero__img:hover { 
    filter: grayscale(0%); 
}

/* PHILOSOPHY BLOCK */
.page-yo .philosophy { padding: 60px 0 100px; }
.page-yo .philosophy__card { 
    background: var(--brand-dark); 
    padding: 80px 40px; 
    border-radius: 50px; 
    text-align: center; 
    color: #fff; 
}

.page-yo .philosophy__title { 
    font-size: 36px; 
    font-weight: 800; 
    margin-bottom: 25px; 
}

.page-yo .philosophy__desc { 
    font-size: 1.2rem; 
    max-width: 800px; 
    margin: 0 auto; 
    line-height: 1.6; 
    opacity: 0.9; 
}



/* ==========================================================================
   CONSCIENCIA ACCORDEON - EXCLUSIVO CRACKNEAR (BEM)
   ========================================================================== */

.consciencia-accordion {
    padding: 60px 0;
    background-color: var(--brand-white);
}

.consciencia-accordion__wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.consciencia-accordion__item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

/* Ocultamos el checkbox lógico */
.consciencia-accordion__input {
    display: none;
}

/* Encabezado del acordeón */
.consciencia-accordion__header {
    display: flex;
    align-items: center;
    padding: 25px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.consciencia-accordion__number {
    font-size: 14px;
    font-weight: 800;
    color: var(--brand-red);
    margin-right: 20px;
    font-family: 'Montserrat', sans-serif;
}

.consciencia-accordion__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-dark);
    flex-grow: 1;
    margin: 0;
    transition: color 0.3s ease;
}

.consciencia-accordion__icon {
    font-size: 16px;
    color: #ccc;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Contenido oculto por defecto */
.consciencia-accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    background-color: transparent;
}

.consciencia-accordion__text {
    padding: 0 0 30px 35px;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* ✅ LÓGICA DE APERTURA (Sin JS) */
.consciencia-accordion__input:checked ~ .consciencia-accordion__header .consciencia-accordion__title {
    color: var(--brand-red);
}

.consciencia-accordion__input:checked ~ .consciencia-accordion__header .consciencia-accordion__icon {
    transform: rotate(180deg);
    color: var(--brand-red);
}

.consciencia-accordion__input:checked ~ .consciencia-accordion__content {
    max-height: 500px; /* Suficiente para el texto */
    transition: max-height 0.5s ease-in-out;
}

/* Hover effect */
.consciencia-accordion__header:hover .consciencia-accordion__title {
    color: var(--brand-red);
}

/* Responsivo */
@media (max-width: 768px) {
    .consciencia-accordion__title {
        font-size: 18px;
    }
}




/* --- RESPONSIVE INGENIERÍA --- */
@media (min-width: 900px) {
    /* Implementación del Layout 45/45 */
    .page-yo .about-hero__grid { 
        grid-template-columns: 45% 45%; 
        justify-content: space-between; 
    }
}

@media (max-width: 768px) {
    .page-yo .about-hero__stats { 
        justify-content: space-around; 
    }
    .page-yo .philosophy__card { 
        padding: 40px 20px; 
    }
}


/* ==========================================================================
   🔒 LOCK: PREVIOUS STYLES (INDEX & YO) - DO NOT MODIFY ABOVE
   ==========================================================================
*/

/* --- SECCIÓN ESPECÍFICA: PROYECTOS.HTML (NAMESPACE: .page-projects) --- */

.page-projects .projects-hero { padding: 80px 0; }

/* Grid 45% Texto | 45% Imagen */
.page-projects .projects-hero__grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 40px; 
    align-items: center; 
}

/* H1 limitado a 50px */
.page-projects .projects-hero__title { 
    font-size: clamp(32px, 5vw, 50px); 
    font-weight: 800; 
    line-height: 1.1; 
    margin-bottom: 25px; 
}

.page-projects .projects-hero__description { 
    font-size: 1.1rem; 
    color: #555; 
    margin-bottom: 30px; 
    line-height: 1.7; 
}

/* Filtros Estilo Cracknear */
.page-projects .projects-hero__filter { 
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap; 
}

.filter-tag { 
    padding: 8px 18px; 
    background: #f0f0f0; 
    border-radius: 50px; 
    font-size: 12px; 
    font-weight: 700; 
    cursor: pointer; 
    transition: 0.3s; 
}

.filter-tag:hover, .filter-tag.active { 
    background: var(--brand-red); 
    color: #fff; 
}

.page-projects .projects-hero__img { 
    width: 100%; 
    border-radius: 24px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
}

/* Grid de Proyectos */
.projects-feed { padding-bottom: 100px; }
.projects-feed__grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 40px; 
}



.work-card__link { 
    padding: 12px 25px; 
    border: 2px solid #fff; 
    color: #fff; 
    font-weight: 800; 
    border-radius: 8px; 
}

.work-card__info { padding: 25px 0; }
.work-card__category { 
    font-size: 10px; 
    font-weight: 800; 
    color: #cfcfcf; 
    letter-spacing: 2px; 
}



/* Responsive */
@media (min-width: 900px) {
    .page-projects .projects-hero__grid { 
        grid-template-columns: 45% 45%; 
        justify-content: space-between; 
    }
}
/* ==========================================================================
   🔒 LOCK: PREVIOUS STYLES (INDEX, YO, PROYECTOS)
   ==========================================================================
*/

/* --- SECCIÓN ESPECÍFICA: BLOG.HTML (NAMESPACE: .page-blog) --- */

.page-blog .blog-hero { padding: 100px 0 60px; }

/* Layout 45/45 */
.page-blog .blog-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

/* H1 50px Máximo */
.page-blog .blog-hero__title {
    font-size: clamp(32px, 5vw, 50px);
    font-weight: 800;
    line-height: 1.1;
}

.page-blog .blog-hero__tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--brand-red);
}

.page-blog .blog-hero__description {
    font-size: 1.2rem;
    color: #666;
    max-width: 450px;
    margin-top: 20px;
}

.page-blog .blog-hero__abstract-shape {
    width: 100%;
    height: 300px;
    background: radial-gradient(circle, #eee 2px, transparent 2px);
    background-size: 20px 20px;
    border-radius: 30px;
    background-color: #f9f9f9;
}

/* ARCHIVE SYSTEM */
.blog-archive { padding-bottom: 100px; }

/* Tarjeta Destacada */
.post-card--featured {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 80px;
    border-bottom: 1px solid #eee;
    padding-bottom: 60px;
}

/* ⚙️ AJUSTE DE INGENIERÍA: Alturas Uniformes */
.post-card__image {
    width: 100%;
    aspect-ratio: 16 / 10; /* Forzado de altura uniforme */
    border-radius: 20px;
    overflow: hidden;
    background: #f0f0f0;
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorte inteligente para mantener simetría */
    transition: transform 0.8s ease;
}

.post-card:hover .post-card__image img {
    transform: scale(1.05);
}

.post-card__content { padding: 15px 0; }
.post-card__date { font-size: 12px; font-weight: 700; color: #aaa; margin-bottom: 10px; display: block; }
.post-card__title { font-size: 22px; font-weight: 800; line-height: 1.3; margin-bottom: 15px; }

.post-card--featured .post-card__title { font-size: clamp(28px, 4vw, 38px); }

/* GRID DE 3 ARTÍCULOS */
.blog-archive__grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
}

@media (min-width: 768px) {
    .blog-archive__grid {
        grid-template-columns: repeat(3, 1fr); /* 3 artículos por fila */
    }
}

@media (min-width: 900px) {
    .page-blog .blog-hero__grid {
        grid-template-columns: 45% 45%;
        justify-content: space-between;
    }
    
    .post-card--featured {
        grid-template-columns: 55% 40%;
        align-items: center;
    }
}

/* --- MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    z-index: 5000;
}

.modal-content {
    background: #fff;
    padding: 50px;
    border-radius: 30px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.8);
    transition: 0.3s;
}

.modal-overlay.active { display: flex; }
.modal-overlay.active .modal-content { transform: scale(1); }

.modal-icon { font-size: 50px; color: var(--brand-red); margin-bottom: 20px; }
.modal-content h2 { font-weight: 800; margin-bottom: 10px; }
.modal-content p { color: #666; margin-bottom: 30px; line-height: 1.6; }
.modal-btn { 
    background: var(--brand-dark); 
    color: #fff; 
    padding: 12px 30px; 
    border-radius: 10px; 
    font-weight: 800; 
    cursor: pointer; 
}






@media (max-width: 1200px) {
    /* Forzamos a que el contenedor del logo sea flexible y centre su contenido */
    .header-main__container {
        display: flex;
        justify-content: center; /* Centra horizontalmente el logo */
        align-items: center;
        position: relative; /* Para que el botón hamburguesa no mueva el logo */
    }

    /* Aseguramos que el logo no sea empujado por otros elementos */
    .header-main__logo {
        margin: 0 auto;
        display: block;
        z-index: 10;
    }
    
    .intervencion-header__title{
        LINE-HEIGHT:35PX;
    }
    
    #menu-toggler:checked ~ .header-main .nav-menu{
        box-shadow: 0 0 8px 0px #707070;


    }

.site-footer__logo { height: 35px; width: 60px; filter: brightness(0) invert(1); margin-bottom: 15px; margin-left:auto; margin-right:auto; margin-bottom:30px; }

    .hero-main__title{
        text-align: center;
        font-size: 29px;
    }

    .hero-main__description{
        text-align: center;
    }

    .hero-main__cta{
        display: block;
        text-align: center;
    }

    .hero-main__visual{
        display: none;
    }

.portfolio__title{
    font-size: 23px;

}

.p-card__name, .b-card__name{
    font-size: 17px;
}

.feedback-section__title, .blog-feed__title, .contact-block__title{
    font-size: 25px;
    text-align: center;
    LINE-HEIGHT:35PX;
}

.post-det-title{
    font-size:28px !important;
}

.contact-block__description{
    text-align: center;
}


   
}









/* ==========================================================================
   INTERVENCION DETALLE - EXCLUSIVO CRACKNEAR
   ========================================================================== */

.intervencion-detalle {
    padding: 80px 0;
    background: #fff;
    color: var(--brand-dark);
}

/* Header */
.intervencion-header { text-align: center; margin-bottom: 50px; }
.intervencion-header__id { font-size: 12px; font-weight: 800; color: var(--brand-red); text-transform: uppercase; letter-spacing: 3px; display: block; margin-bottom: 10px; }
.intervencion-header__title { font-size: clamp(32px, 5vw, 48px); font-weight: 800; margin-bottom: 15px; }
.intervencion-header__meta { color: #888; font-size: 14px; font-weight: 600; }

/* Carrusel Visual */
.intervencion-visual { margin-bottom: 80px; position: relative; }
.intervencion-visual__carousel { 
    width: 100%; 
    height: 600px; 
    border-radius: 30px; 
    overflow: hidden; 
    background: #f5f5f5; 
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}
.intervencion-visual__track { display: flex; height: 100%; transition: 0.5s ease-in-out; }
.intervencion-visual__slide { min-width: 100%; height: 100%; }
.intervencion-visual__img { width: 100%; height: 100%; object-fit: cover; }

/* Botones Carrusel */
.intervencion-visual__nav { position: absolute; bottom: 30px; right: 30px; display: flex; gap: 15px; }
.intervencion-visual__btn { 
    width: 50px; height: 50px; border-radius: 50%; background: #fff; 
    color: var(--brand-dark); border: none; cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.intervencion-visual__btn:hover { background: var(--brand-red); color: #fff; transform: scale(1.1); }

/* Núcleo de información (Grid 3 columnas) */
.intervencion-nucleo { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    margin-bottom: 80px;
}

.intervencion-col { 
    padding: 40px; 
    background: #fcfcfc; 
    border-radius: 24px; 
    border: 1px solid #f0f0f0; 
    transition: 0.3s;
}
.intervencion-col--active { border-color: var(--brand-red); background: #fff; box-shadow: 0 20px 40px rgba(0,0,0,0.05); }

.intervencion-col__header { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.intervencion-col__icon { font-size: 24px; color: var(--brand-red); }
.intervencion-col__title { font-size: 20px; font-weight: 800; }
.intervencion-col__text { font-size: 16px; line-height: 1.7; color: #555; }
.intervencion-col__list { padding-left: 20px; }
.intervencion-col__list li { margin-bottom: 12px; font-weight: 600; color: #333; }

/* Footer del caso */
.intervencion-footer { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; border-top: 1px solid #eee; padding-top: 50px; }
.intervencion-footer__back { font-weight: 700; color: #888; text-decoration: underline; transition: 0.3s; }
.intervencion-footer__back:hover { color: var(--brand-red); }

@media (max-width: 900px) {
    .intervencion-visual__carousel { height: 350px; }
    .intervencion-nucleo { grid-template-columns: 1fr; }
}













/* ==========================================================================
   ⚡️ MÓDULO SKELETON LOADING (CRACKNEAR - HEURÍSTICA #1)
   ========================================================================== */

:root {
    --sk-bg: #eeeeee;
    --sk-shimmer: linear-gradient(
        90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.5) 50%, 
        rgba(255,255,255,0) 100%
    );
}

/* Bloque Principal */
.sk-loading {
    position: relative;
    overflow: hidden;
    background-color: var(--sk-bg) !important;
    border-color: var(--sk-bg) !important;
    color: transparent !important;
    pointer-events: none;
    user-select: none;
    border-radius: 8px; /* Radio neutro por defecto */
}

/* Elemento Shimmer (El brillo que viaja) */
.sk-loading::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: var(--sk-shimmer);
    animation: sk-shimmer-run 1.5s infinite;
    z-index: 1;
}

@keyframes sk-shimmer-run {
    100% { transform: translateX(100%); }
}

/* Variantes de forma (Modificadores BEM) */
.sk-loading--circle { border-radius: 50%; }
.sk-loading--rect { border-radius: 20px; } /* Ajustado a tu UI */
.sk-loading--text { height: 1.2em; margin-bottom: 0.5rem; display: inline-block; width: 100%; }

/* Ocultar contenido real mientras carga */
.sk-loading * {
    visibility: hidden !important;
}

/* Imagen específica: Mantiene el aspect-ratio de tus cards */
.sk-loading.p-card__image-holder,
.sk-loading.b-card__image-holder {
    background-color: var(--sk-bg) !important;
    
    
}









/*BLOG*/
/* ==========================================================================
   ARTÍCULO DE BLOG (DETALLE) - NAMESPACE: .post-det
   ========================================================================== */

.post-det-container {
    max-width: 850px;
    margin: 60px auto;
    padding: 0 25px;
}

.post-det-header {
    text-align: left;
    margin-bottom: 40px;
}

.post-det-category {
    color: var(--brand-red);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.post-det-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    margin: 15px 0;
    color: var(--brand-dark);
    text-align:center;
}

.post-det-featured {
    width: 100%;
    height: 450px;
    background-color: var(--brand-gray);
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 50px;
}

.post-det-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 40px;
    color: var(--brand-dark);
    margin-bottom:32px;
    line-height:32px;
}

.post-det-content p {
    font-size: 18px;
    margin-bottom: 25px;
    color: #444;
    line-height:33px;
}

/* Checklist Cracknear */
.post-det-checklist {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.post-det-checklist li {
    background: var(--brand-gray);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    transition: 0.3s;
}

.post-det-checklist li:hover { transform: translateX(5px); }

.post-det-icon {
    color: var(--brand-red);
    font-weight: 900;
    margin-right: 15px;
    font-size: 20px;
}

.post-det-ux-box {
    margin: 40px 0;
    border-radius: 0 15px 15px 0;
}

/* Sección Relacionados */
.post-det-related {
    margin-top: 80px;
    padding-top: 50px;
    border-top: 1px solid #eee;
}

.post-det-related__title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.post-det-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.post-det-related__item {
    text-decoration: none;
    display: block;
}

.post-det-related__img {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 15px;
    object-fit: cover;
    margin-bottom: 15px;
    filter: grayscale(1);
    transition: 0.4s;
}

.post-det-related__item:hover .post-det-related__img {
    filter: grayscale(0);
}

.post-det-related__name {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-dark);
    line-height: 1.4;
}














/*TITULO DEL PROYECTOS*/
/* ==========================================================================
   NUEVOS AJUSTES: HERO CENTRADO & METADATOS BLOG
   ========================================================================== */

/* Hero Section Centrado para Index */
.hero-cracknear {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 80vh;
    padding: 70px 20px;
    background-color: var(--brand-white);
}

.hero-cracknear__content {
    max-width: 900px; /* Ancho máximo para el H1 de 50px */
    width: 100%;
}

.hero-cracknear__title {
    font-size: 50px; /* Tamaño máximo solicitado */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--brand-dark);
}

/* Metadatos del Blog */
.post-det-meta {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    font-size: 14px;
    color: #888;
}

.post-det-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Adaptación para celulares (Responsive) */
@media (max-width: 768px) {
    .hero-cracknear {
        min-height: 60vh;
        padding: 60px 15px;
    }
    .hero-cracknear__title {
        font-size: 36px; /* Ajuste para que no desborde en móvil */
    }
    .post-det-meta {
        gap: 10px;
    }
}







/*FECHA Y HORA DEL BLOG*/
.post-det-meta {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    color: #777;
    margin-top: 20px;
}
.post-det-author { color: var(--brand-dark); font-weight: 700; }
.post-det-separator { color: var(--brand-red); font-weight: 800; }









/* --- EFECTO "BEYOND THE LIMIT" PARA CRACKNEAR --- */
/* --- ESTADO BASE (Para que el regreso sea suave) --- */

/* La imagen: añadimos la transición aquí para el "vuelta a la normalidad" */
.b-card__image-holder img {
    transform: scaleX(1); /* Posición original */
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    backface-visibility: hidden; /* Evita parpadeos en el flip */
}

/* El título: lo forzamos a negro siempre */
.b-card__name {
    color: var(--brand-dark) !important; /* Se mantiene negro */
    transition: transform 0.3s ease; /* Solo por si quieres un leve movimiento */
}

/* La flecha: transición de regreso */
.arrow-mov {
    transform: translateX(0) rotate(45deg);
    transition: transform 0.4s ease, color 0.3s;
    display: inline-block;
}

/* La línea: transición de regreso */
.custom-link__line {
    width: 30px;
    height: 2px;
    background-color: var(--brand-red);
    transition: width 0.4s ease, background-color 0.3s;
}

/* --- ESTADO HOVER (La acción) --- */

/* Flip 2D de la imagen */
.card-link-wrapper:hover .b-card__image-holder img {
    filter: brightness(0.8) saturate(1.5); transition: width 2s ease-in-out 0.5s;
}

/* El título se queda igual (No añadimos color rojo aquí) */

/* Movimiento de la flecha en línea recta */
.card-link-wrapper:hover .arrow-mov {
    transform: translateX(10px) rotate(45deg);
    color: var(--brand-red); /* La flecha sí puede cambiar para dar feedback */
}

/* Estiramiento de la línea */
.card-link-wrapper:hover .custom-link__line {
    width: 60px;
    background-color: var(--brand-red);
}








/*proyectos*/
/* BLOCK: c-case-study */
/* BLOCK: c-case-study */
/* ================================================================
   C-CASE-STUDY: SISTEMA SUIZO-BRITÁNICO (PURO FONDO BLANCO)
   ================================================================ */

.c-case-study {
    --c-red: #F41035;
    --c-dark: #111;
    --c-text: #333;
    width: 100%;
    background-color: #fff; /* Aseguramos fondo blanco puro */
}

/* Base de Secciones */
.c-case-study__section {
    padding: 120px 0;
    border-bottom: 1px solid #f2f2f2;
}

.c-case-study__grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 80px;
    align-items: start;
}

/* Utilidades */
.u-no-break { white-space: nowrap !important; }

/* COLUMNA IZQUIERDA (Desktop) */
.c-case-study__col-left {
    text-align: left;
}

.c-case-study__link-box {
    margin-top: 35px;
}

.c-case-study__external-link {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--c-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
    transition: transform 0.4s ease, color 0.4s ease;
}

.c-case-study__link-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background-color: var(--c-red);
    transition: width 0.4s ease;
}

.c-case-study__external-link:hover {
    color: var(--c-red);
    transform: translateX(10px);
}

.c-case-study__external-link:hover .c-case-study__link-line {
    width: 100%;
}

/* COLUMNA DERECHA (Desktop - Alineado a la derecha) */
.c-case-study__col-right {
    text-align: LEFT !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
}

.c-case-study__lead-text,
.c-case-study__body-text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--c-text);
    max-width: 580px;
}

/* !!! NUEVO CSS: IMAGEN FULL-WIDTH !!! */
.c-case-study__full-image-section {
    width: 100% !important;
    overflow: hidden;
    line-height: 0; /* Elimina espacio no deseado debajo */
}

.c-case-study__full-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* METADATA HORIZONTAL */
.c-case-study__metadata {
    margin-top: 60px;
    width: 100%;
    max-width: 600px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.c-case-study__meta-row {
    display: flex !important;
    justify-content: flex-end; /* Alinea el conjunto a la derecha */
    gap: 20px;
    margin-bottom: 15px;
}

.c-case-study__meta-label {
    font-weight: 900;
    color: var(--c-red);
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    width: 250px; /* Ancho fijo para alineación vertical */
    text-align: left;
}

.c-case-study__meta-value {
    color: var(--c-dark);
    font-weight: 500;
    font-size: 1rem;
    flex: 1;
    text-align: LEFT;
}

/* TESTIMONIO */
.c-case-study__quote-content {
    font-size: 2.1rem;
    font-style: italic;
    font-weight: 600;
    line-height: 1.3;
    color: var(--c-dark);
    margin-bottom: 20px;
    max-width: 600px;
}

.c-case-study__quote-author {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--c-red);
    letter-spacing: 2px;
}

/* --- RESPONSIVE / MOBILE (< 1200PX) --- */
@media (max-width: 1200px) {
    .c-case-study__section {
        padding: 80px 0;
    }

    .c-case-study__grid {
        grid-template-columns: 1fr !important;
        gap: 50px;
        text-align: center !important;
    }

    .u-no-break { white-space: normal !important; }

    .c-case-study__col-left, 
    .c-case-study__col-right {
        text-align: center !important;
        align-items: center !important;
        margin: 0 auto;
    }

    .c-case-study__meta-row {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .c-case-study__meta-label,
    .c-case-study__meta-value {
        width: 100%;
        text-align: center !important;
    }

    .c-case-study__external-link { font-size: 1.5rem; }
    .c-case-study__quote-content { font-size: 1.7rem; }
}