/* 
 * MAIN.CSS - Base Styles (Unified)
 * Centralized variables, resets, and animations for all pages.
 */

:root {
    /* --- Core Brand Colors --- */
    --yellow: rgb(251, 184, 0);
    --white: rgb(255, 255, 255);
    --white-glass: rgba(255, 255, 255, 0.60);
    --black: rgb(32, 32, 38);
    --dark-black: rgb(0, 0, 0);
    --dark-gray: rgb(65, 63, 63);
    --gray: rgb(160, 159, 162);
    --light-gray: #f4f4f4;

    /* --- Typography Scale --- */
    --text-xs: 0.8rem;
    --text-sm: 0.95rem;
    --text-base: 1.05rem;
    --text-lg: 1.25rem;
    --text-xl: 1.8rem;
    --text-2xl: 2.5rem;
    --text-3xl: 3.5rem;
    --text-hero: 4.5rem;
    --text-nav: 0.8rem;

    /* Standard specific legacy aliases */
    --text-titleh1: 3rem;
    --text-titleh2: 2rem;
    --text-titleh3: 1.5rem;
    --text-titleh4: 1.25rem;

    /* --- Spacing Scale --- */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 5rem;

    /* Standard specific layout distances */
    --space-between-elements: 3rem;
    --space-between-sections: 6rem;
    --space-between-title-text: 0.5rem;

    /* --- Structural --- */
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;
    --header-height: 60px;
    --content-max-width: 1400px;
    --margin-with-screen: 20px;
    --info-padding-y: 1rem;
    --info-padding-x: 1.5rem;

    /* --- Shadows --- */
    --shadow-sm: 0 0 12px rgba(0, 0, 0, 0.12);
    --shadow-base: 0 0 30px rgba(0, 0, 0, 0.18);
    --shadow-hover: 0 0 45px rgba(0, 0, 0, 0.22);

    /* --- Interactivity & Effects --- */
    --hover-scale: scale(1.05);
    --hover-translate: translateY(-5px);
}

/* --- 1. Global Resets & Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    /* Minimal global reset to prevent snapping while preserving control */
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.5;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-y: visible;
    overflow-x: visible;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    opacity: 0;
    /* Anti-FOUC: Hidden until JS transforms components */
    transition: opacity 0.5s ease-in-out;
}

body.is-ready {
    opacity: 1;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.page,
.page-frame {
    overflow-y: visible !important;
    overflow-x: visible !important;
    height: auto !important;
    min-height: 0 !important;
}

@media (prefers-reduced-motion: reduce) {

    .reveal,
    .main-header,
    .logo-area,
    .menu_list,
    .banner_overlay,
    .banner_title,
    .banner_subtitle {
        transition: none !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* --- Auth Gatekeeper (Premium Full-Screen Overlay) --- */
#gatekeeper {
    position: fixed;
    inset: 0;
    background: #ffffff;
    /* Clean white background */
    z-index: 1000000;
    display: none;
    /* Controlled by JS */
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#gatekeeper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(251, 184, 0, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.login-card {
    background: #ffffff;
    padding: 3.5rem 3rem;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
    width: 100%;
    max-width: 420px;
    text-align: center;
    position: relative;
    z-index: 10;
    border: 2px solid transparent;
    /* Set a base border width to prevent jump */
    animation: gatekeeper-appear 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.4s ease;
}

.login-card:hover {
    border-color: var(--yellow);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.22);
}

@keyframes gatekeeper-appear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-card img {
    height: 50px;
    margin-bottom: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.login-card h2 {
    color: var(--black);
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: none;
}

.form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fcfcfc;
    color: var(--black);
    outline: none;
}

.form-group input:focus {
    border-color: var(--yellow);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(251, 184, 0, 0.1);
}

.login-btn {
    background: var(--yellow);
    color: var(--black);
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;
    width: 100%;
}

.login-btn:hover {
    background: var(--black);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

#login-error {
    color: #ff4d4d;
    font-size: 0.85rem;
    font-weight: 800;
    margin-top: 1.5rem;
    display: none;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.back-link-container {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.back-link {
    font-size: 0.8rem;
    font-weight: 900;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--yellow);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #ccc;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--black);
}

/* --- 2. Shared Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--yellow);
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
    text-shadow: 1px 1px 0 var(--black);
    /* Standardize: reliant on container gap */
}

h1 {
    font-size: var(--text-titleh1);
}

h2 {
    font-size: var(--text-titleh2);
}

h3 {
    font-size: var(--text-titleh3);
}

h4 {
    font-size: var(--text-titleh4);
}

p,
.section-text p,
.intro p,
.card-content p {
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--black);
    margin: 0;
    text-align: justify;
    text-justify: auto;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.section-text ul,
.section-text li {
    line-height: 1.5;
    color: var(--black);
    margin: 0;
}

.section-text li {
    display: list-item;
}

.section-text ul {
    display: flex;
    flex-direction: column;
    gap: 0;
}

button {
    background-color: var(--yellow);
    color: var(--black);
    font-size: var(--text-base);
    font-weight: 800;
    text-transform: uppercase;
    padding: var(--space-sm) var(--space-lg);
    border: 2px solid var(--yellow);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

/* --- 3. Page Structural Helpers --- */
.page-frame {
    width: calc(100% - (var(--margin-with-screen) * 2));
    max-width: var(--content-max-width);
    margin: 0 auto;
    background-color: var(--white);
    position: relative;
    min-height: 100vh;
}

.page {
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    background: transparent;
    display: flex;
    flex-direction: column;
}

.page::before,
.page::after {
    content: '';
    display: block;
    height: var(--space-between-sections, 6rem);
    width: 100%;
    flex-shrink: 0;
}

.section-divider {
    max-width: var(--content-max-width, 1400px);
    width: 100%;
    margin: var(--space-between-sections) auto;
    padding: 0 var(--margin-with-screen, 20px);
    box-sizing: border-box;
}

.section-divider::after {
    content: '';
    display: block;
    height: 2px;
    background-color: var(--yellow);
    width: 100%;
}

.section-divider.is-invisible::after {
    background-color: transparent !important;
}

/* --- 4. Shared Section Templates --- */
.section-info-image {
    background-color: var(--white);
    display: flex;
    justify-content: center;
    width: 100%;
    height: var(--section-min-height, auto);
    min-height: var(--section-min-height, auto);

}

.section-wrapper {
    max-width: var(--content-max-width, 1400px);
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--margin-with-screen, 20px);
    display: grid;
    grid-template-columns: var(--section-grid-ratio, repeat(2, 1fr));
    gap: var(--section-gap, var(--space-between-elements));
    align-items: stretch;
    position: relative;
}

.section-image-wrapper {
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: 200px;
}

.image-yellow-bg {
    position: absolute;
    top: 15px;
    left: 15px;
    bottom: 0;
    right: 0;
    background-color: var(--yellow);
    z-index: 0;
}

.section-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-right: 15px;
    padding-bottom: 15px;
    object-fit: cover;
    object-position: var(--section-image-pos, center);
    z-index: 1;
}

.section-text {
    background-color: var(--white);
    padding: var(--info-padding-y) var(--info-padding-x);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: var(--space-between-title-text);
    line-height: 1.5;
    box-shadow: var(--shadow-base);
    height: 100%;
}

.section-link {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--black);
    text-transform: uppercase;
    margin-top: auto;
    transition: all 0.3s ease;
    display: inline-block;
}

.section-link:hover {
    transform: translateX(5px);
    color: var(--yellow);
}

.section-wrapper.reverse .section-image-wrapper {
    order: 2;
}

.section-wrapper.reverse .section-text {
    order: 1;
}

/* --- GALLERY SECTION --- */
.section-gallery-inner {
    max-width: var(--content-max-width, 1400px);
    width: 100%;
    margin: 0 auto;
    padding: var(--space-lg) var(--margin-with-screen, 20px);
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}


.gallery-images-grid {
    display: grid;
    grid-template-columns: var(--gallery-cols, repeat(4, 1fr));
    gap: var(--space-between-elements);
    width: 100%;
}

.gallery-images-grid .image-yellow-bg {
    top: 10px !important;
    left: 10px !important;
}

.gallery-images-grid .section-image-wrapper img {
    padding-right: 10px !important;
    padding-bottom: 10px !important;
    box-shadow: none !important;
    /* Reset box-shadow on desktop */
}

.gallery-images-grid .section-image-wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: var(--gallery-ratio, 16 / 10);
    min-height: 0;
    transition: all 0.4s var(--ease-smooth);
    cursor: zoom-in;
    overflow: hidden;
}

.gallery-images-grid .section-image-wrapper img {
    transition: transform 0.4s var(--ease-smooth);
}

.gallery-images-grid .section-image-wrapper:hover img {
    transform: scale(1.1);
}

.gallery-images-grid .section-image-wrapper:hover {
    z-index: 20;
}


/* --- 5. GRIDS & CARDS --- */
.grid-section {
    background-color: var(--white);
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: var(--section-min-height, auto);
}

.section-grid-wrapper {
    max-width: var(--content-max-width, 1400px);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--margin-with-screen, 20px);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.grid {
    display: grid;
    grid-template-columns: var(--grid-columns, repeat(auto-fit, minmax(min(100%, 300px), 1fr)));
    gap: var(--space-between-elements);
    width: 100%;
    flex: 1;
}

.intro,
.card-inner {
    background: var(--white);
    box-shadow: var(--shadow-base);
    padding: var(--info-padding-y) var(--info-padding-x);
    display: flex;
    flex-direction: column;
    gap: var(--space-between-title-text);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro:hover,
.card-inner:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card {
    grid-column: var(--card-span, span 1);
    width: 100%;
    min-height: var(--card-height);
    height: var(--card-height, 100%);
}

.card-inner {
    padding: 0;
    overflow: hidden;
    height: 100%;
}

.card-image {
    position: relative;
    height: 50%;
    width: 100%;
    cursor: default;
    /* Explicitly disable zoom cursor on cards */
}

.card-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: var(--card-image-pos, center);
}

.card-content {
    padding: var(--info-padding-y) var(--info-padding-x);
    height: 50%;
    display: flex;
    flex-direction: column;
    gap: var(--space-between-title-text);
}

/* --- 6. PAGE COMPONENTS --- */
.section-title {
    text-align: center;
    width: 100%;
    margin-bottom: var(--space-md);
}

.page-intro {
    text-align: center;
    max-width: var(--content-max-width, 1400px);
    margin: 0 auto;
    padding: var(--space-between-sections) var(--margin-with-screen);
    display: flex;
    flex-direction: column;
    gap: var(--space-between-title-text);
    align-items: center;
    width: 100%;
}

.page>.page-intro:first-child {
    padding-top: 0;
}

.page>.page-intro:last-child {
    padding-bottom: 0;
}

.section-title+.page-intro {
    padding-top: 0;
    padding-bottom: 0;
}

.page-intro p {
    max-width: 800px;
    text-align: center;
}



/* --- 7. LEGAL & POLICY SECTIONS --- */
.legal-section {
    max-width: var(--content-max-width, 1400px);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--margin-with-screen, 20px);
    box-sizing: border-box;
}

.legal-content {
    padding: var(--info-padding-y) var(--info-padding-x);
    background-color: var(--white);
    box-shadow: var(--shadow-base);
    display: flex;
    flex-direction: column;
    gap: var(--space-between-title-text);
}


.legal-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-content li {
    color: var(--black);
    line-height: 1.5;
}

/* --- 9. CLIENTS SECTION --- */
.clients-section {
    padding: 0;
    width: 100%;
    background: var(--white);
}

.clients-grid {
    max-width: var(--content-max-width, 1400px);
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--logo-width, 180px)), 1fr));
    justify-items: center;
    align-items: start;
    gap: var(--clients-gap, 2rem);
    padding: var(--space-lg) var(--margin-with-screen);
}

.client-logo {
    background: transparent;
    transition: all 0.5s var(--ease-smooth);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-rows: 180px auto;
    /* Fixed area for logo to ensure row alignment */
    width: 100%;
    height: 100%;
    border: 1px solid transparent;
}

.client-logo-media {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.client-logo:hover,
.client-logo.active {
    transform: translateY(-5px);
    background: var(--white);
    box-shadow: var(--shadow-hover);
    border-color: var(--yellow);
}

.client-logo img {
    width: 90%;
    max-width: 180px;
    height: 120px;
    margin: 15px auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.5s ease;
}

.logo-dual-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    width: 90%;
    margin: 15px auto;
}

.logo-dual-container img {
    max-width: 100px !important;
    height: 80px !important;
    margin: 0 !important;
}

.client-logo:hover img,
.client-logo.active img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.client-info {
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.6s var(--ease-smooth);
    background-color: #fafafa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 10px;
}

.client-logo.active .client-info {
    max-height: 400px;
    opacity: 1;
    padding: 15px 10px 20px;
}

.client-info h2,
.client-info h3 {
    text-align: center;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.client-info p {
    text-align: justify;
    text-justify: auto;
    /* Prevents large gaps */
    hyphens: none;
    /* Prevents hyphenation */
    word-break: normal;
    /* Keeps words intact */
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--black);
}

/* --- Secondary Clients Grid --- */
.logo-grid-simple {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    padding: var(--space-xl) var(--margin-with-screen);
    max-width: var(--content-max-width, 1400px);
    margin: 0 auto;
}

.simple-logo {
    width: 154px;
    height: 100px;
    object-fit: contain;
    transition: transform 0.3s var(--ease-smooth);
}

.simple-logo:hover {
    transform: scale(1.08);
}

/* --- Certificaciones --- */
.certifications-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding: 2rem 0 0 0;
}

.certifications-grid img {
    /* Tamaño predeterminado zona de protección (820 x 510) - scaled to 50% */
    width: 410px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 820 / 510;
    object-fit: contain;
    transition: transform 0.3s var(--ease-smooth);
}

.certifications-grid img:hover {
    transform: scale(1.05);
}

/* --- 10. SYSTEM UTILITIES --- */
.version-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--white);
    pointer-events: none;
    transition: background-color 0.5s ease;
}

/* --- 11. CONTACT PAGE BASE (Moved from responsive.css) --- */
section#contact-main-grid {
    display: grid;
    grid-template-columns: var(--contact-grid-ratio, 0.9fr 1.1fr);
    grid-template-rows: auto minmax(0, 1fr);
    /* Standardized Premium Ratio */
    column-gap: var(--contact-grid-gap, 6rem);
    row-gap: var(--space-xl);
    padding: 1rem var(--margin-with-screen);
    max-width: var(--content-max-width, 1400px);
    width: 100%;
    margin: 0 auto !important;
    align-items: stretch;
}

.contact-form-column {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.contact-info-text-column {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.calc-info-col {
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 0;
}

.calc-info-col p {
    line-height: 1.6;
    color: var(--dark-gray);
    text-align: left;
}

.contact-map-column {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    height: 100%;
}

.contact-form-column .contact-form {
    padding: 1.5rem;
    height: fit-content;
    display: flex;
    flex-direction: column;
}

.contact-form button {
    margin-top: auto;
    width: fit-content;
    align-self: flex-start;
}

.contact-map-card {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.contact-form-column .contact-form,
.contact-map-card {
    background-color: var(--white);
    border: 1px solid var(--gray);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.contact-form:hover,
.contact-map-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-base);
    border-color: var(--yellow);
}

.contact-info-text-column h2 {
    font-size: var(--text-titleh2);
    margin: 0;
}

.contact-info-text-column p {
    color: var(--black);
    font-size: var(--text-lg);
    font-weight: 700;
    margin: 0;
    max-width: 600px;
}

.contact-page-social {
    display: flex;
    gap: var(--space-lg);
    margin-top: 1rem;
}

.contact-page-social img {
    height: 30px;
    width: auto;
    transition: all 0.3s ease;
}

.contact-page-social a:hover img {
    transform: scale(1.1);
}

.contact-map-card iframe {
    width: 100%;
    height: 100%;
    flex: 1;
    border: 0;
    display: block;
    min-height: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-sm);
    gap: var(--space-xs);
}

.form-group label {
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--black);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-sm);
    border: 2px solid var(--gray);
    background-color: var(--white);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--yellow);
}

/* --- 12. GLOBAL UTILITIES & FIXES (Moved from responsive.css) --- */
.page>*:last-child {
    margin-bottom: 0 !important;
}

.page>.section-divider:last-child {
    display: none !important;
}

.image-yellow-bg {
    display: block !important;
    z-index: 0 !important;
}

.card .image-yellow-bg {
    display: none !important;
}

.card-image img,
.section-image-wrapper img {
    position: relative !important;
    z-index: 1 !important;
}

.card-inner {
    height: 100% !important;
    display: flex;
    flex-direction: column;
}

.card-image {
    height: 45% !important;
}

.card-content {
    height: 55% !important;
    padding: 0.5rem 1.5rem 1.5rem 1.5rem !important;
    gap: var(--space-between-title-text) !important;
}

.card-content h2 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
    font-size: 1.5rem !important;
}

.card-content h3 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
    font-size: 1.3rem !important;
}

.card-content p {
    margin-bottom: 0 !important;
    line-height: 1.4 !important;
}

.card-content .section-link {
    margin-bottom: 0 !important;
}

/* --- 13. PAINT CALCULATOR --- */
/* Modern range slider inherited */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
    margin: 10px 0;
    padding: 0 !important;
    border: none !important;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--yellow);
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.range-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.range-val {
    font-weight: 800;
    color: var(--yellow);
    font-size: 1.1rem;
    background: var(--black);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

select.calc-input {
    width: 100%;
    padding: var(--space-xs) 2.5rem var(--space-xs) var(--space-sm) !important;
    font-size: var(--text-sm) !important;
    border: 2px solid var(--gray) !important;
    background-color: var(--white) !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: border-color 0.3s;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem top 50%;
    background-size: 0.65rem auto;
    color: var(--black);
}

select.calc-input:focus {
    outline: none;
    border-color: var(--yellow) !important;
}

.calc-results-box {
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.3;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(var(--light-gray), 0.5);
}

.calc-results-box.show {
    opacity: 1;
    background: rgba(251, 184, 0, 0.1);
    border-color: var(--yellow);
}

.result-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.result-label {
    font-size: 1.1rem;
    color: var(--gray-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--black);
    line-height: 1;
}

@keyframes pulseResult {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.calc-results-box.updated .result-value {
    animation: pulseResult 0.3s ease;
}

.calc-form-container {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-evenly !important;
    padding: 2rem !important;
    gap: 1rem !important;
}

/* --- 10. PREMIUM LIGHTBOX --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000000;
    display: none;
    opacity: 0;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 100px;
    /* Space for buttons */
    box-sizing: border-box;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-overlay.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    cursor: pointer;
    z-index: 2100;
    transition: all 0.4s var(--ease-smooth);
    padding: 0;
    outline: none;
}

.lightbox-close svg {
    width: 18px;
    height: 18px;
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
}

.lightbox-close svg,
.lightbox-nav svg {
    stroke: var(--white);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.08);
}

.lightbox-nav:hover {
    transform: translateY(-50%) scale(1.08);
}

.lightbox-close:hover svg,
.lightbox-nav:hover svg {
    stroke: var(--yellow);
}

.lightbox-close {
    top: 30px;
    right: 40px;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-nav.prev {
    left: 40px;
}

.lightbox-nav.next {
    right: 40px;
}

.lightbox-nav.clicked,
.lightbox-close.clicked {
    background: var(--yellow) !important;
    border-color: var(--yellow) !important;
    transform: scale(0.94) !important;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.15s ease,
        border 0.15s ease !important;
}

/* Specific centering for nav as it has a Y transform */
.lightbox-nav.clicked {
    transform: translateY(-50%) scale(0.94) !important;
}

.lightbox-nav.clicked svg,
.lightbox-close.clicked svg {
    stroke: var(--black) !important;
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 30px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2100;
}

.section-image-wrapper,
.img-container img {
    cursor: zoom-in;
}

.section-gallery .section-image-wrapper,
.section-image-wrapper {
    transition: transform 0.4s var(--ease-smooth);
}

.section-gallery .section-image-wrapper:hover,
.section-image-wrapper:hover {
    transform: translateY(-5px);
}
/* --- TOAST NOTIFICATIONS --- */
.asinec-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background: var(--black);
    color: var(--white);
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border-left: 5px solid var(--yellow);
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 700;
    font-size: var(--text-sm);
    pointer-events: none;
}

.asinec-toast.visible {
    transform: translateX(0);
}

.asinec-toast.error {
    border-left-color: #ff4d4d;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toast-icon {
    background: var(--yellow);
    color: var(--black);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    flex-shrink: 0;
}

.asinec-toast.error .toast-icon {
    background: #ff4d4d;
    color: var(--white);
}
