/* ============================================
   CORTE 0 — GLOBAL CUSTOM CSS
   Brand Book V1.0 — cortecero.local
   ============================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
    --c0-black: #000000;
    --c0-dark: #161616;
    --c0-white: #F7F7F9;
    --c0-gray: #B6B6BE;
    --c0-muted: #686874;
    --c0-blue: #2E3DFF;
    --c0-blue-hover: #4a55ff;
    --c0-transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Global Reset & Base --- */
body {
    background-color: var(--c0-black) !important;
    color: var(--c0-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Remove default link underlines in Elementor */
a, a:hover, a:focus, a:visited {
    text-decoration: none !important;
}

/* --- Scroll-Based Animations --- */
@keyframes c0FadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes c0FadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes c0SlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes c0SlideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes c0ScaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes c0PulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46, 61, 255, 0.4); }
    50% { box-shadow: 0 0 20px 10px rgba(46, 61, 255, 0); }
}

@keyframes c0LineGrow {
    from { height: 0; }
    to { height: 100%; }
}

@keyframes c0Marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes c0Float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes c0ScrollDown {
    0% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.5; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- Intersection Observer Animation Classes --- */
.c0-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--c0-transition), transform 0.8s var(--c0-transition);
}

.c0-animate.c0-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Premium Button Styles --- */
.elementor-button {
    transition: all 0.35s var(--c0-transition) !important;
    position: relative;
    overflow: hidden;
}

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

.elementor-button:hover::before {
    left: 100%;
}

.elementor-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(46, 61, 255, 0.3) !important;
}

/* Blue CTA buttons */
.elementor-button[style*="background-color: rgb(46, 61, 255)"],
.elementor-button[style*="background-color:#2E3DFF"] {
    box-shadow: 0 4px 15px rgba(46, 61, 255, 0.25);
}

.elementor-button[style*="background-color: rgb(46, 61, 255)"]:hover,
.elementor-button[style*="background-color:#2E3DFF"]:hover {
    background-color: var(--c0-blue-hover) !important;
    box-shadow: 0 8px 30px rgba(46, 61, 255, 0.45) !important;
}

/* --- Card Hover Effects --- */
.elementor-container[style*="border: 1px solid"],
[data-settings*="border_border"] {
    transition: all 0.4s var(--c0-transition);
}

/* --- Accordion Premium Styles --- */
.elementor-accordion {
    border: none !important;
}

.elementor-accordion .elementor-accordion-item {
    border-bottom: 1px solid var(--c0-muted) !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    transition: all 0.3s ease;
}

.elementor-accordion .elementor-accordion-item:hover {
    border-bottom-color: var(--c0-blue) !important;
}

.elementor-accordion .elementor-tab-title {
    padding: 25px 0 !important;
    transition: color 0.3s ease;
}

.elementor-accordion .elementor-tab-title:hover {
    color: var(--c0-blue) !important;
}

.elementor-accordion .elementor-tab-title .elementor-accordion-icon {
    color: var(--c0-muted) !important;
    transition: color 0.3s ease, transform 0.3s ease;
}

.elementor-accordion .elementor-tab-title:hover .elementor-accordion-icon {
    color: var(--c0-blue) !important;
}

.elementor-accordion .elementor-tab-title.elementor-active .elementor-accordion-icon {
    color: var(--c0-blue) !important;
    transform: rotate(180deg);
}

.elementor-accordion .elementor-tab-content {
    padding: 0 0 25px 0 !important;
    border: none !important;
}

/* --- Image Hover Effects --- */
.elementor-image img {
    transition: filter 0.5s var(--c0-transition), transform 0.5s var(--c0-transition) !important;
}

.elementor-image:hover img {
    transform: scale(1.03);
}

/* Grayscale images that reveal color on hover */
.elementor-image img[style*="grayscale"] {
    transition: filter 0.6s ease !important;
}

.elementor-image:hover img[style*="grayscale"] {
    filter: grayscale(0) contrast(1) !important;
}

/* --- Form Styles --- */
.elementor-form .elementor-field-group {
    margin-bottom: 20px !important;
}

.elementor-form .elementor-field {
    background-color: var(--c0-dark) !important;
    border: 1px solid var(--c0-muted) !important;
    border-radius: 0px !important;
    color: var(--c0-white) !important;
    font-family: 'Space Grotesk', sans-serif !important;
    padding: 16px !important;
    font-size: 15px !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.elementor-form .elementor-field:focus {
    border-color: var(--c0-blue) !important;
    box-shadow: 0 0 0 2px rgba(46, 61, 255, 0.15) !important;
    outline: none !important;
}

.elementor-form .elementor-field::placeholder {
    color: var(--c0-muted) !important;
    font-family: 'Inter', sans-serif !important;
}

.elementor-form .elementor-field-label {
    color: var(--c0-gray) !important;
    font-family: 'Space Grotesk', sans-serif !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.elementor-form .elementor-field-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B6B6BE' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.elementor-form .elementor-button[type="submit"] {
    width: 100% !important;
    padding: 18px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    font-family: 'Space Grotesk', sans-serif !important;
}

/* --- Google Maps Dark Style --- */
.elementor-widget-google_maps iframe {
    filter: grayscale(1) invert(1) contrast(1.2);
    transition: filter 0.4s ease;
}

.elementor-widget-google_maps:hover iframe {
    filter: grayscale(0.5) invert(1) contrast(1.1);
}

/* --- Header Sticky --- */
body:not(.elementor-editor-active) .elementor-location-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* --- Mobile Header Fix --- */
@media (max-width: 767px) {
    /* Main header container: force single row */
    .elementor-element-c77b046 {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 6px 12px !important;
        min-height: auto !important;
        max-height: 54px !important;
        gap: 4px !important;
    }

    /* All child containers in header: row, no wrap, auto width */
    .elementor-element-c77b046 > .e-con {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: auto !important;
        min-width: 0 !important;
        flex-shrink: 1 !important;
        align-items: center !important;
        gap: 6px !important;
    }

    /* Logo: small */
    .elementor-element-c77b046 .elementor-widget-image img {
        max-height: 28px !important;
        width: auto !important;
    }

    /* Nav link text: tiny */
    .elementor-element-c77b046 .elementor-heading-title {
        font-size: 7px !important;
        letter-spacing: 0.3px !important;
    }

    /* CTA button: compact */
    .elementor-element-c77b046 .elementor-button {
        font-size: 7px !important;
        padding: 5px 8px !important;
        letter-spacing: 0.5px !important;
    }
}

/* --- Selection Color --- */
::selection {
    background-color: var(--c0-blue);
    color: var(--c0-white);
}

::-moz-selection {
    background-color: var(--c0-blue);
    color: var(--c0-white);
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--c0-black);
}

::-webkit-scrollbar-thumb {
    background: var(--c0-muted);
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--c0-blue);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .elementor-heading-title {
        word-break: break-word;
    }
}

@media (max-width: 767px) {
    /* Stack columns on mobile */
    .elementor-container.elementor-column-gap-default > .elementor-column {
        width: 100% !important;
    }
    
    /* Reduce heading sizes on mobile */
    h1.elementor-heading-title {
        font-size: 38px !important;
        line-height: 1.1 !important;
    }
    
    h2.elementor-heading-title {
        font-size: 32px !important;
    }
    
    /* Reduce padding on mobile */
    .elementor-section,
    .e-con {
        --padding-block-start: 60px !important;
        --padding-block-end: 60px !important;
    }
    
    /* Stats section mobile */
    .c0-stats-item {
        width: 50% !important;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    h1.elementor-heading-title {
        font-size: 30px !important;
    }
    
    h2.elementor-heading-title {
        font-size: 26px !important;
    }
}

/* --- Smooth scroll --- */
html {
    scroll-behavior: smooth;
}

/* --- Preloader hide (if needed) --- */
.elementor-page-loading {
    background-color: var(--c0-black) !important;
}

/* --- Custom cursor hint --- */
.elementor-button,
.elementor-accordion-title,
a {
    cursor: pointer;
}

/* --- Divider / Separator line --- */
.c0-divider {
    width: 60px;
    height: 3px;
    background: var(--c0-blue);
    margin: 20px 0;
}

/* --- Timeline visual line --- */
.c0-timeline-line {
    position: relative;
}

.c0-timeline-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--c0-blue), var(--c0-muted));
}

/* --- Text glow effect for blue accent --- */
.c0-glow {
    text-shadow: 0 0 20px rgba(46, 61, 255, 0.3);
}

/* --- Card glass effect --- */
.c0-glass {
    background: rgba(22, 22, 22, 0.8) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
