:root {
    --nortiar-red: #FF0000;
    --text-color-dark: #2c3e50;
    --text-color-medium: #555;
    --bg-light: #f9f9f9;
    --bg-white: #fff;
    --radius: 8px;
    --shadow: 0 5px 15px rgba(0,0,0,0.05);
}

html {
    scroll-behavior: smooth;
}

body { font-family: 'Raleway', sans-serif; line-height: 1.6; color: var(--text-color-medium); background-color: var(--bg-white); margin: 0; padding: 0; font-weight: 400; }
h1, h2, h3 { font-weight: 300; letter-spacing: .05em; text-transform: uppercase; color: var(--text-color-dark); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Header & Navigation --- */
.top-bar {
    background-color: #f8f9fa;
    padding: 8px 0;
    font-size: 0.8rem;
    border-bottom: 1px solid #e9ecef;
}
.top-bar-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.top-right-nav a {
    color: var(--text-color-medium);
    text-decoration: none;
    margin-left: 15px;
    font-weight: 300;
    text-transform: uppercase;
    display: inline-flex;
    opacity: 75%;  
    vertical-align: top;
    align-items: center;
}

.top-right-nav a svg {
    margin: 0 5px;
}

header { background-color: var(--bg-white); padding: 15px 0; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; }
.nav-container { display: flex; justify-content: center; align-items: center; position: relative; }
.logo { max-height: 45px; height: auto; display: block; }
.logo-link { margin: 0 20px; }

.main-nav { display: flex; align-items: center; justify-content: center; width: 100%; }
.main-nav a { color: var(--text-color-dark); text-decoration: none; font-weight: 500; font-size: 0.9rem; text-transform: uppercase; position: relative; padding: 5px 15px; letter-spacing: 2px; display: inline-flex; align-items: center;}
.main-nav a .menu-icon {
    opacity: 0;
    width: 0;
    transition: all 0.3s ease-in-out;
    margin-right: 0;
}
.main-nav a:hover .menu-icon {
    opacity: 1;
    width: auto;
    margin-right: 8px;
}
.main-nav a .menu-item-inner {
    position: relative;
    display: inline-block;
}
.main-nav a .menu-item-inner::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--nortiar-red);
    transition: width 0.3s ease;
}
.main-nav a:hover .menu-item-inner::after {
    width: 100%;
}
.main-nav a:not(.logo-link) .menu-item-inner::after {
    content: '';
    position: absolute;
    width: 0;
    height: 4px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--nortiar-red);
    transition: width 0.3s ease;
}

.main-nav a:not(.logo-link):hover .menu-item-inner::after { 
    width: 100%; 
}

.mobile-logo { display: none; }
.mobile-only-link { display: none; }

/* --- Hamburger Menu --- */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0; z-index: 1001; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }
.hamburger span { display: block; width: 25px; height: 3px; background-color: var(--text-color-dark); margin: 5px 0; transition: all 0.3s ease-in-out; }

.hero { position: relative; height: 80vh; display: flex; align-items: center; justify-content: center; color: var(--bg-white); text-align: center; overflow: hidden; }
.hero-video-bg { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; z-index: -1; transform: translate(-50%, -50%); background-size: cover; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 0; }
.hero-content { position: relative; z-index: 1; padding: 20px; }
.hero h1 { font-size: 2.5em; margin-bottom: 15px; color: var(--bg-white); text-shadow: 2px 2px 4px rgba(0,0,0,0.7); line-height: 1em; }
.hero .animated-underline {
    color: black;
    padding: 4px 8px;
    text-shadow: none;
    line-height: 35px !important;
}
    .hero h1 span {
    font-size: 3.5rem;
    color: black;
    padding: 4px 18px;
    text-shadow: none;
    display: ruby-text;
    margin-bottom: -60px;
    }
.hero p { font-size: 1.2em; font-weight: 300; color: var(--bg-white); max-width: 700px; margin: 0 auto; text-shadow: 1px 1px 3px rgba(0,0,0,0.7); }
.hero p span {
    padding: 5px 10px !important;
}
.section { padding: 80px 0; text-align: center; background-color: var(--bg-white); }
.section.bg-light { background-color: var(--bg-light); }
h2 { font-size: 2.5em; margin-bottom: 20px; }
h3 { font-size: 1.8em; margin-bottom: 15px; cursor: pointer; }
.section p { max-width: 800px; margin: 0 auto 30px auto; font-size: 1.15em; }
.visual-asset, .grid-2-cols img { max-width: 100%; height: auto; border-radius: 8px; margin: 40px auto; display: block; mix-blend-mode: multiply; }
.grid-2-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1000px; margin: 40px auto; text-align: left; }
.grid-2-cols .text-content { display: flex; flex-direction: column; justify-content: center; }
.cta-section { background-color: var(--nortiar-red); color: var(--bg-white); padding: 80px 0; text-align: center; }
.cta-button { display: inline-block; background-color: var(--bg-white); color: var(--nortiar-red); padding: 18px 40px; border-radius: 50px; text-decoration: none; font-size: 1.4em; font-weight: 700; transition: all 0.3s ease; }

/* --- Card Styles --- */
.card { background: var(--bg-white); border-radius: var(--radius); padding: 25px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.5rem; color: var(--text-dark); margin: 0 0 15px 0; display: flex; align-items: center; cursor: default; }
.card.ok h3::before { content: '✅'; margin-right: 10px; }
.card.bad h3::before { content: '❌'; margin-right: 10px; }
.card ul { list-style: none; padding: 0; margin: 0; }
.card li { margin-bottom: 10px; padding-left: 5px; display: inline-flex;}

/* --- Accordion Styles --- */
.accordion-trigger { display: inline-block; margin-left: 10px; font-weight: 700; color: var(--nortiar-red); border: 3px solid var(--nortiar-red); border-radius: 50%; width: 24px; height: 24px; line-height: 24px; text-align: center; font-size: 1rem; transition: transform 0.3s ease; cursor: pointer; vertical-align: text-top;}
.accordion-trigger.active { transform: rotate(45deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; background: #fafafa; border-radius: 8px; padding: 0 20px; margin-top: 10px; border-left: 3px solid var(--nortiar-red); }
.accordion-content div { padding: 20px 0; }
.accordion-content h4 { font-size: 1.2em; font-weight: 700; text-transform: uppercase; color: var(--nortiar-red); margin: 0 0 10px 0; }
.accordion-content ul { list-style: none; padding: 0; }
.accordion-content li { margin-bottom: 8px; font-size: 0.95em; }
.accordion-trigger-2 { position: absolute;margin-top: 14px; margin-left: 8px; font-weight: 500; color: var(--nortiar-red);background-color: #fff; width: auto; height: 24px; line-height: 16px; text-align: center; font-size: 0.9rem; transition: transform 0.3s ease; cursor: pointer; }

/* --- Animated Marker Underline --- */
.animated-underline {
    background-image: linear-gradient(120deg, rgba(255, 240, 102, 0.8), rgba(255, 255, 0, 0.9));
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-position: left;
    transition: background-size 1s ease-in-out;
    padding: 0.1em 0.3em;
    text-decoration: none;
    color: var(--text-color-dark);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    border-radius: 5px;
}
.animated-underline:hover,
.animated-underline.in-view {
    background-size: 100% 100%;
}

img.hogar {
    width: 30%;
    mix-blend-mode: multiply;
    margin-bottom: -14px;
    margin-top: -90px;
}

img.visual-asset.sistema {
    margin-top: -15px;
    margin-bottom: 10px;
}

.list-features {
    list-style-type: none;
    padding: 0;
    text-align: left;
    max-width: 600px;
    margin: 30px auto;
}

.list-features li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.list-features li::before {
    content: '✅';
    position: absolute;
    left: 0;
    font-size: 1.5em;
    line-height: 1;
}

div.card.ok > ul > li:before {
    content: '✔️ ';
    color: transparent;
    text-shadow: 0 0 #00b900;
    padding: 0px 10px 0px 0px;
}

div.card.bad > ul > li:before {
    content: '🚫 ';
    padding: 0px 10px 0px 0px;
}

body > section.cta-section > div > h2 {
    color: white;
}

.negative-statement {
    background-color: #ffebeb;
    border-left: 5px solid var(--nortiar-red);
    padding: 25px;
    margin: 50px auto;
    max-width: 800px;
    border-radius: 8px;
    text-align: left;
    font-size: 1.1em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.negative-statement h3 {
    color: var(--nortiar-red);
    margin-top: 0;
    display: flex;
    align-items: center;
    font-size: 1.2em;
}

.negative-statement h3::before {
    content: '🚫';
    margin-right: 10px;
    font-size: 1.5em;
}

img.faqs {
    max-width: 180px;
}
.negative-statement strong {
    color: red;
}
strong {
    display: contents;
}
.br-mobile { display: none; }

/* --- Mobile Viewport Adjustments --- */
@media (max-width: 880px) {
    .br-desktop { display: none; }
    .br-mobile { display: initial; }
    h1, h2, h3 { line-height: 1.2; }
    .hero { height: 9∂0vh; }
    .hero h1 { font-size: 1.8em; }
    .hero .animated-underline { 
        font-size: 1em; 
        line-height: 2.5rem; 
        background-image: linear-gradient(120deg, rgba(255, 240, 102, 0.8), rgba(255, 255, 0, 0.8));
        background-size: 0% 100%;
        background-repeat: no-repeat;
        background-position: left;
        transition: background-size 1s ease-in-out;
        padding: 0.1em 0.3em;
        text-decoration: none;
        color: var(--text-color-dark);
        box-decoration-break: clone;
        -webkit-box-decoration-break: clone;
        border-radius: 4px;
    }
    .hero .animated-underline.in-view {
        background-size: 100% 100%;
    }
    .hero h1 span {
    font-size: 2rem !important;
    margin-bottom: 20px;
    }

    .hero p { font-size: 1em; line-height: 1.4rem;}
    h2 { font-size: 2em; }
    h3 { font-size: 1.5em; }
    .section { padding: 60px 20px; }
    .grid-2-cols { grid-template-columns: 1fr; gap: 30px; }
    .grid-2-cols .visual-asset { order: -1; margin-top: 0; margin-bottom: 20px; }
    .cta-button { font-size: 1.2em; padding: 15px 30px; }
    .logo { max-width: 150px; }
    img.hogar { width: 150px; margin-top: -50px; }
    .card { margin-bottom: 20px; }
    .grid-2-cols .text-content { order: 2; }
    .negative-statement h3 { display: block; }
    .accordion-trigger {
    margin-left: 2px;    
    width: 16px;
    height: 16px;
    font-size: 0.7rem;
    line-height: 14px;
}
    .accordion-trigger-2 { 
    position: absolute; 
    margin-top: -2px;
    margin-left: 6px;     
    font-size: 0.6rem;
    text-align: left;
    line-height: 1.4em; 
    align-content: center;
}
    .accordion-trigger-2.accordion-trigger-2.b {
        margin-left: -4px;
        margin-top: -9px;
        background-color: transparent;
        padding: 8px;
    }

    /* --- Mobile Menu Styles --- */
    .top-bar { display: none; } /* Hide top bar on mobile */
    header {
        padding: 10px 0;
    }
    .nav-container { 
        display: flex;
        justify-content: center; 
        align-items: center;
        position: relative;
    }
    .main-nav {
        display: none;
        position: fixed; /* Use fixed to cover the whole screen */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center; /* Center items vertically */
        padding: 20px 0;
        box-shadow: none;
        z-index: 1001; /* Below hamburger */
    }
    .main-nav.active {
        display: flex;
    }
    .main-nav a {
        padding: 15px 0;
        width: 100%;
        font-size: 1.4em;
        margin-left: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .main-nav .menu-icon {
        display: inline-block; /* Show icons */
        opacity: 1;
        width: auto;
        margin-right: 15px; /* Add space */
        transition: transform 0.3s ease;
    }
    .main-nav a:hover .menu-icon {
        transform: scale(1.2) rotate(-10deg);
    }
    .desktop-logo { 
        display: none; /* Hidden by default on mobile */
    }
    .main-nav.active .desktop-logo {
        display: block;
        order: -1;
        margin-bottom: 20px;
        text-align: center;
    }
    .main-nav.active .desktop-logo .logo {
        max-height: 50px;
        margin: 0 auto;
    }
    .mobile-logo {
        display: block; /* This is the logo visible in the header */
    }
    .main-nav.active + .hamburger + .mobile-logo {
        display: none; /* Hide header logo when menu is open */
    }
    .mobile-only-link {
        display: none; /* Hidden by default */
    }
    .main-nav.active .mobile-only-link {
        display: block;
        order: 99;
        margin-top: 20px;
        font-size: 1.2em;
        font-weight: 700;
        color: var(--nortiar-red);
        text-align: center;
    }
    .hamburger { 
        display: block; 
        position: absolute; 
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1002; /* Above nav */
    }
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}