/* ==========================================================================
   SUGINO MEXICO - DARK PRECISION UI ARCHITECTURE (VERCEL / SWISS GRID STYLE)
   ========================================================================== */

@font-face {
    font-family: 'TTOctosquares';
    src: url('../fonts/TT Octosquares Trial Condensed Light.ttf') format('truetype');
    font-weight: 300;
}
@font-face {
    font-family: 'TTOctosquares';
    src: url('../fonts/TT Octosquares Trial Condensed Medium.ttf') format('truetype');
    font-weight: 500;
}
@font-face {
    font-family: 'TTOctosquares';
    src: url('../fonts/TT Octosquares Trial Condensed Bold.ttf') format('truetype');
    font-weight: 700;
}

:root {
    --bg-dark-deep: #0a0a0a;
    --bg-dark-grad: radial-gradient(circle at top center, #1a1a1a 0%, #0a0a0a 100%);
    --bg-light: #f4f6f8;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-dark: rgba(0, 0, 0, 0.1);
    --text-light: #f4f4f4;
    --text-muted: #999999;
    --text-dark: #1a1a1a;
    --text-dark-muted: #555555;
    --emerald: #00A896; 
    --emerald-glow: rgba(0, 168, 150, 0.4);
    --emerald-light: rgba(0, 168, 150, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body, html { 
    font-family: 'TTOctosquares', system-ui, -apple-system, sans-serif; 
    background-color: var(--bg-dark-deep); color: var(--text-light);
    scroll-behavior: smooth; overflow-x: hidden; cursor: auto; 
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark-deep); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 0px; }
::-webkit-scrollbar-thumb:hover { background: var(--emerald); }

/* Cursor Custom solo si detecta un mouse fino */
@media (hover: hover) and (pointer: fine) {
    body, html, a, button, select, input, textarea, .hover-target { cursor: none !important; }
    .cursor-dot, .cursor-outline {
        position: fixed; top: 0; left: 0; transform: translate(-50%, -50%);
        border-radius: 50%; z-index: 9999; pointer-events: none; display: block;
    }
    .cursor-dot { width: 6px; height: 6px; background-color: var(--emerald); box-shadow: 0 0 8px var(--emerald); }
    .cursor-outline {
        width: 40px; height: 40px; border: 1px solid rgba(0, 168, 150, 0.6);
        transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
    }
    .cursor-outline.hover {
        width: 70px; height: 70px; background-color: var(--emerald-light); border-color: var(--emerald);
    }
}
@media (hover: none) or (pointer: coarse) {
    .cursor-dot, .cursor-outline { display: none !important; }
    body, html, a, button, select, input, textarea, .hover-target { cursor: auto !important; }
}

/* Nav Menu */
.custom-nav {
    position: fixed; top: 25px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 1100px; height: 70px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 30px; z-index: 1000;
    background: rgba(10, 10, 10, 0.8); backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 168, 150, 0.3);
    clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px), 0 20px);
    transition: all 0.4s ease;
}
.custom-nav.scrolled { background: rgba(5, 5, 5, 0.95); border-color: var(--emerald); width: 95%; }
.custom-nav.scrolled-light { background: rgba(255, 255, 255, 0.95); border-color: var(--border-dark); }
.custom-nav.scrolled-light .nav-links a, .custom-nav.scrolled-light .lang-dropdown i { color: var(--text-dark); }
.custom-nav.scrolled-light .nav-links a:hover { color: var(--emerald); }
.custom-nav.scrolled-light .menu-toggle .bar { background: var(--text-dark); } 

.custom-nav.dropdown-open { clip-path: none !important; border-radius: 0; }
.custom-nav.dropdown-open:not(.scrolled-light) { background: #0a0a0a; border-color: var(--emerald); }

.custom-nav.menu-open { clip-path: none !important; border-radius: 0; }
.custom-nav.menu-open:not(.scrolled-light) { background: #0a0a0a; border-color: var(--emerald); }
.custom-nav.scrolled-light.menu-open { background: #ffffff; border-color: var(--border-dark); }

.nav-logo { width: 130px; display: flex; align-items: center; }
.nav-logo img { width: 100%; object-fit: contain; }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; gap: 25px; }
.nav-links a { text-decoration: none; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; color: #ccc; position: relative; font-size: 0.9rem; transition: color 0.3s; }
.nav-links a:hover { color: #fff; }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 1px; background: var(--emerald); transition: width 0.3s; }
.nav-links a:hover::after { width: 100%; }

/* Language Dropdown Styles */
.lang-dropdown { position: relative; cursor: pointer; color: #888; font-size: 1.2rem; display: flex; align-items: center; padding: 25px 0; }
.lang-dropdown:hover i { color: var(--emerald); }
.lang-menu {
    position: absolute; top: 70px; right: -10px; width: 150px; background: rgba(10,10,10,0.95);
    border: 1px solid var(--emerald); display: none; flex-direction: column; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 1001;
}
.custom-nav.scrolled-light .lang-menu { background: rgba(255,255,255,0.98); border-color: var(--border-dark); }
.lang-dropdown:hover .lang-menu { display: flex; }
.lang-menu span {
    padding: 12px 15px; font-size: 0.9rem; color: #ccc; text-transform: uppercase; font-weight: 500; border-bottom: 1px solid var(--border-color); transition: background 0.3s, color 0.3s;
}
.custom-nav.scrolled-light .lang-menu span { color: var(--text-dark); border-bottom-color: var(--border-dark); }
.lang-menu span:last-child { border-bottom: none; }
.lang-menu span:hover, .lang-menu span.active { background: var(--emerald); color: #fff; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.menu-toggle .bar { width: 25px; height: 3px; background: var(--emerald); transition: 0.3s; }

/* Hero Environment */
.hero { position: relative; height: 100vh; width: 100vw; background: #000; overflow: hidden; }
.video-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero-video { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at center, transparent 0%, #0a0a0a 100%); }
.fluid-waves { position: absolute; bottom: -2px; left: 0; width: 100%; height: 15vh; min-height: 100px; z-index: 5; }
.wave-svg { display: block; width: 100%; height: 100%; }
.wave-stop-primary { stop-color: rgba(0, 168, 150, 0.8); }
.wave-stop-light { stop-color: var(--bg-light); } 
.wave-stop-secondary { stop-color: rgba(0, 168, 150, 0.3); }
.wave-stop-light-fade { stop-color: rgba(244, 246, 248, 0.5); }
.wave-layer-back { fill: url(#grad2); animation: move-wave 12s linear infinite; opacity: 0.5; }
.wave-layer-mid { fill: url(#grad1); animation: move-wave-reverse 16s linear infinite; opacity: 0.7; }
.wave-layer-front { fill: var(--bg-light); animation: move-wave 20s linear infinite; }
@keyframes move-wave { 0% { transform: translate3d(-90px, 0, 0); } 100% { transform: translate3d(86px, 0, 0); } }
@keyframes move-wave-reverse { 0% { transform: translate3d(86px, 0, 0); } 100% { transform: translate3d(-90px, 0, 0); } }

/* Floating Icon */
@keyframes shakeIcon { 0%, 100% { transform: rotate(0deg); } 10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); } 20%, 40%, 60%, 80% { transform: rotate(10deg); } }
.floating-icon { position: fixed; right: 30px; top: 50%; transform: translateY(-50%); width: 60px; height: 60px; display: flex; justify-content: center; align-items: center; cursor: pointer; z-index: 1003; transition: opacity 0.4s, right 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), top 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); }
.floating-icon.hide-for-contact { opacity: 0; pointer-events: none; }
.pulse-ring { position: absolute; width: 100%; height: 100%; background: rgba(0, 168, 150, 0.6); border-radius: 50%; animation: ripple 2s infinite ease-out; z-index: -1; }
@keyframes ripple { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.exclamation-anim { height: 50px; filter: drop-shadow(0 0 10px rgba(0,168,150,0.8)); animation: shakeIcon 4s infinite ease-in-out; }

.side-modal-container { position: fixed; right: -100vw; top: 0; width: 100vw; height: 100vh; display: flex; align-items: center; justify-content: flex-end; z-index: 1002; transition: right 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); visibility: hidden; pointer-events: none; }
.side-modal-container.active { right: 0; visibility: visible; pointer-events: auto; }

.side-modal-content { width: 450px; height: 100%; background: rgba(10,10,10,0.95); backdrop-filter: blur(20px); padding: 180px 50px 100px; border-left: 1px solid var(--emerald); position: relative; display: flex; flex-direction: column; justify-content: center; text-align: center; overflow-y: auto; overflow-x: hidden;}
.side-modal-content h1 { font-size: 2rem; margin-bottom: 20px; text-transform: uppercase; color: #fff;}
.side-modal-content p { color: var(--text-muted); margin-bottom: 40px; font-size: 1.1rem; line-height: 1.5;}
.close-modal { position: absolute; top: 30px; right: 30px; background: none; border: none; font-size: 2.5rem; cursor: pointer; color: var(--emerald); transition: transform 0.3s; z-index: 10;}
.close-modal:hover { transform: rotate(90deg); color: #fff; }

.precision-section { padding: 120px 0; }
.bg-light { background-color: var(--bg-light); color: var(--text-dark); }
.bg-gradient-dark { background: var(--bg-dark-grad); }
.bg-dark-deep { background-color: var(--bg-dark-deep); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.relative-z { position: relative; z-index: 2; }
.section-header { margin-bottom: 60px; }
.section-header h2 { font-size: 3rem; text-transform: uppercase; letter-spacing: -1px; margin-bottom: 10px; }
.bg-light .section-header h2 { color: var(--text-dark); }
.bg-dark-deep .section-header h2, .bg-gradient-dark .section-header h2, #industries .section-header h2 { color: #fff; text-shadow: 0 0 15px rgba(255,255,255,0.1); }
.section-header p { font-size: 1.2rem; }
.bg-light .section-header p { color: var(--text-dark-muted); }
.bg-dark-deep .section-header p, .bg-gradient-dark .section-header p, #industries .section-header p { color: var(--text-muted); }
.align-center { text-align: center; display: flex; flex-direction: column; align-items: center;}

/* Bento Grid */
.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; background: var(--border-dark); border: 1px solid var(--border-dark); }
.bento-item { background: var(--bg-light); border-radius: 0; perspective: 1000px; cursor: pointer; min-height: 350px; position: relative; z-index: 1; }
.bento-item.span-4 { grid-column: span 4; }
.bento-item.span-6 { grid-column: span 6; }
.bento-item.flipped { z-index: 10; } 

/* Tarjetas volteables - Ajuste a la izquierda */
.card-flip-inner { position: relative; width: 100%; height: 100%; text-align: left; transition: transform 0.6s; transform-style: preserve-3d; }
.bento-item.flipped .card-flip-inner { transform: rotateY(180deg); }

.card-front, .card-back { 
    position: absolute; width: 100%; height: 100%; backface-visibility: hidden; padding: 40px; 
    display: flex; flex-direction: column; justify-content: center; background: var(--bg-light); transition: background-color 0.3s; 
    text-align: left; align-items: flex-start;
}
.card-front:hover { background: #ffffff; }
.card-back { transform: rotateY(180deg); background: var(--emerald); color: #fff; }
.card-back h4 { font-size: 1.4rem; margin-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 10px; text-transform: uppercase; width: 100%;}
.card-back ul { list-style: square; padding-left: 20px; font-size: 0.95rem; margin-bottom: 20px; line-height: 1.5; }
.card-back li { margin-bottom: 8px; }

/* Botón autoselector en tarjetas de soluciones */
.auto-select-btn {
    display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; 
    font-weight: bold; font-size: 0.9rem; text-transform: uppercase; margin-top: auto; 
    padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.2); width: 100%; transition: color 0.3s;
}
.auto-select-btn:hover { color: #0a0a0a; }
.auto-select-btn i { font-size: 1.2rem; }

.tech-icon-anim { font-size: 2.5rem; color: var(--emerald); margin-bottom: 20px; display: block; }
.tech-number { display: block; font-size: 1.2rem; color: var(--emerald); font-weight: bold; margin-bottom: 10px; }
.card-front h3 { font-size: 1.6rem; margin-bottom: 15px; text-transform: uppercase; }

.resource-card { background: var(--bg-light); border: 1px solid var(--border-dark); padding: 50px; border-radius: 0; transition: background 0.3s, border-color 0.3s; }
.resource-card:hover { background: #fff; border-color: var(--emerald); }

/* Video & Brand Section */
.video-presentation { padding: 80px 0; background: var(--bg-dark-deep); }
.brand-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.brand-text h2 { font-size: 2.8rem; text-transform: uppercase; margin-bottom: 30px; line-height: 1.1; }
.brand-list { list-style: none; padding: 0; }
.brand-list li { margin-bottom: 20px; font-size: 1.2rem; color: #ccc; display: flex; align-items: center; gap: 15px; }
.brand-list li i { font-size: 1.5rem; color: var(--emerald); width: 30px; text-align: center; }
.video-wrapper { position: relative; border-radius: 0; overflow: hidden; aspect-ratio: 16 / 9; width: 100%; border: 1px solid var(--border-color); cursor: pointer; }
.glow-backdrop { position: absolute; inset: 0; box-shadow: inset 0 0 50px rgba(0,0,0,0.8); z-index: 2; pointer-events: none; }
.brand-video { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; filter: grayscale(30%) contrast(120%); transition: opacity 0.5s, filter 0.5s; }
.video-wrapper:hover .brand-video { opacity: 0.9; filter: grayscale(0%) contrast(100%); }
.play-indicator { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; background: rgba(0,168,150,0.8); border-radius: 50%; display: flex; justify-content: center; align-items: center; z-index: 3; font-size: 2rem; color: #fff; opacity: 0; transition: opacity 0.3s, transform 0.3s; }
.video-wrapper:hover .play-indicator { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
.fullscreen-video-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 2000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.fullscreen-video-modal.active { opacity: 1; pointer-events: auto; }
.close-video-modal { position: absolute; top: 30px; right: 40px; font-size: 3rem; color: #fff; cursor: pointer; transition: color 0.3s; z-index: 2001; }
.close-video-modal:hover { color: var(--emerald); }
.video-inner { width: 90%; max-width: 1200px; aspect-ratio: 16/9; }
.video-inner video { width: 100%; height: 100%; border: 1px solid var(--border-color); }

/* ThreeJS 3D Cards & Background Overlay */
#industries {
    position: relative;
    background: url('../img/Fondo.png') center/cover no-repeat;
    background-color: var(--bg-dark-deep);
}
#industries::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at center, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.85) 60%, var(--bg-dark-deep) 100%);
    z-index: 1; pointer-events: none;
}

.industry-card-group { position: relative; width: 650px; height: 380px; transform-style: preserve-3d; }

.card-shadow {
    position: absolute; bottom: -80px; left: 5%; width: 90%; height: 60px; 
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 70%);
    z-index: 0; opacity: 0.6; transform: scaleY(0.3);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.6s, width 0.6s, left 0.6s; pointer-events: none;
}
.industry-card-group.expanded .card-shadow { width: 150%; left: -25%; opacity: 0.9; }

.card-main { 
    position: absolute; inset: 0; border-radius: 0; overflow: hidden; background: #000; 
    border: 1px solid var(--border-color); z-index: 2; 
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s; 
}
.card-main:hover { border-color: var(--emerald); box-shadow: 0 0 20px rgba(0,168,150,0.3); }

.ind-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; transition: opacity 0.6s ease; }
.industry-card-group:hover .ind-img { opacity: 0.8; }
.industry-card-group.expanded .ind-img { opacity: 1; }

.ind-overlay { 
    position: absolute; inset: 0; 
    background: linear-gradient(to top, #050505 10%, rgba(5,5,5,0.6) 50%, transparent 100%); 
    transition: opacity 0.6s ease;
}
.industry-card-group.expanded .ind-overlay { opacity: 0.2; }

.ind-content-title { position: absolute; bottom: 20px; left: 20px; right: 20px; z-index: 5; }
.ind-content-title h3 { font-size: 2rem; color: #fff; text-transform: uppercase; margin: 0; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }

.card-info { 
    position: absolute; top: 15px; bottom: 15px; left: 0; width: 420px; 
    background: rgba(10,10,10,0.98); border: 1px solid var(--emerald); border-radius: 0; 
    z-index: 1; transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s; 
    padding: 40px 40px 40px 60px; display: flex; flex-direction: column; justify-content: center; opacity: 0; pointer-events: none; 
}
.close-card-info { position: absolute; top: 10px; right: 15px; background: none; border: none; color: #666; font-size: 2rem; cursor: pointer; transition: color 0.3s; z-index: 10; }
.close-card-info:hover { color: var(--emerald); }
.info-content i { font-size: 2.5rem; color: var(--emerald); margin-bottom: 20px; }
.info-content h4 { font-size: 1.6rem; margin-bottom: 10px; text-transform: uppercase; color: #fff; }
.info-content p { font-size: 1rem; line-height: 1.5; color: #ccc; }

.industry-card-group.expanded .card-main { transform: translateX(-220px) scale(1.05); border-color: var(--emerald); }
.industry-card-group.expanded .card-info { transform: translateX(410px); opacity: 1; pointer-events: auto; }

/* Contact Form */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 1px; background: var(--border-color); border: 1px solid var(--border-color); }
.contact-info-panel, .contact-form-panel { padding: 50px; background: var(--bg-dark-deep); border-radius: 0; }
.location-stats { margin: 40px 0; border-left: 2px solid var(--emerald); padding-left: 20px; }
.stat-line { margin-bottom: 20px; }
.stat-title { display: flex; align-items: center; gap: 10px; }
.stat-desc { color: #ccc; margin-left: 5px; }
.emerald-dot { width: 8px; height: 8px; background: var(--emerald); border-radius: 0; }
.direct-lines p { color: var(--text-muted); margin-bottom: 5px; font-family: monospace; font-size: 1.1rem; }
.precision-form { display: flex; flex-direction: column; gap: 30px; } 
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.form-row.full-width { grid-template-columns: 1fr; }

.input-wrap { position: relative; width: 100%; display: block; }
.val-msg {
    position: absolute; bottom: -20px; left: 0;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
    opacity: 0; transition: opacity 0.3s, color 0.3s; pointer-events: none;
}

.input-wrap.valid .val-msg { color: var(--emerald); opacity: 1; }
.input-wrap.invalid .val-msg { color: #ff4444; opacity: 1; }

.precision-form input, .precision-form select, .precision-form textarea { 
    width: 100%; background: transparent; border: 1px solid var(--border-color); 
    padding: 16px 20px; font-family: inherit; font-size: 1rem; color: #fff; border-radius: 0; 
    transition: border-color 0.3s, background-color 0.3s; 
}
.precision-form input:focus, .precision-form select:focus, .precision-form textarea:focus { border-color: var(--emerald); background: rgba(0,168,150,0.05); outline: none; }

.precision-form input.valid, .precision-form select.valid, .precision-form textarea.valid { border-color: var(--emerald); background: rgba(0,168,150,0.05); }
.precision-form input.invalid, .precision-form select.invalid, .precision-form textarea.invalid { border-color: #ff4444; background: rgba(255,68,68,0.05); }
.precision-form select { 
    appearance: none; cursor: pointer;
    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%2300A896%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 20px top 50%; background-size: 12px auto;
}
.precision-form select option { background-color: var(--bg-dark-deep); color: #fff; padding: 10px; }

.btn-primary { display: inline-block; padding: 16px 32px; background: var(--emerald); color: #fff; text-decoration: none; font-weight: 700; border-radius: 0; text-transform: uppercase; text-align: center; border: none; cursor: pointer; transition: background 0.3s; }
.btn-primary:hover { background: #008f7f; color: #fff;}
.btn-primary:disabled { background: #555; cursor: not-allowed; }

.footer-precision { border-top: 1px solid var(--border-color); padding: 40px 0; }
.footer-flex { display: flex; justify-content: space-between; align-items: center; }
.footer-logo { height: 25px; opacity: 0.6; margin-bottom: 10px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; }
.footer-legal a { color: var(--text-muted); text-decoration: none; margin-left: 20px; font-size: 0.9rem; transition: color 0.3s; }
.footer-legal a:hover { color: var(--emerald); }

/* Custom Toast Notification */
.custom-toast {
    position: fixed; bottom: 30px; right: -500px;
    background: rgba(10, 10, 10, 0.95); border: 1px solid var(--emerald);
    color: #fff; padding: 20px 30px; z-index: 9999;
    display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: right 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.custom-toast.show { right: 30px; }
.toast-content { display: flex; align-items: center; gap: 15px; font-weight: 500; font-size: 1.1rem; }
.toast-content i { font-size: 1.5rem; color: var(--emerald); }
.toast-progress { height: 2px; background: var(--emerald); width: 100%; margin-top: 15px; transform-origin: left; }
.custom-toast.error { border-color: #ff4444; }
.custom-toast.error .toast-content i { color: #ff4444; }
.custom-toast.error .toast-progress { background: #ff4444; }

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS (MOBILE FIXES + LANDSCAPE)
   ========================================================================== */
@media (max-width: 900px) {
    .hero { height: auto; aspect-ratio: 4/3; min-height: 50vh; }
    .fluid-waves { height: 60px; min-height: 60px; }
    .section-header h2 { font-size: 2rem !important; }
    .bento-item.span-4, .bento-item.span-6, .bento-item.span-8 { grid-column: span 12; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; } 
    .video-presentation { padding: 40px 0; }
    .brand-split { grid-template-columns: 1fr; gap: 20px; overflow: hidden; } 
    .brand-text h2 { font-size: 2rem !important; margin-bottom: 15px; }
    .brand-list li { font-size: 1rem; margin-bottom: 10px; }
    .side-modal-content { width: 100vw; padding: 140px 30px 60px; justify-content: flex-start; }
    
    .nav-links {
        position: absolute; top: 100%; left: -1px; width: calc(100% + 2px);
        background: rgba(10,10,10,0.98); flex-direction: column;
        padding: 20px 0; display: none !important; align-items: center;
        border: 1px solid var(--emerald); border-top: none; border-radius: 0; z-index: 1005;
    }
    .custom-nav.scrolled-light .nav-links { background: rgba(255,255,255,0.98); border-color: var(--border-dark); }
    .nav-links.active { display: flex !important; }
    .nav-links a { margin-bottom: 15px; font-size: 1.1rem; }
    .menu-toggle { display: flex; }
    .lang-dropdown { margin-right: 15px; } 
    .custom-nav { width: 100%; padding: 0 15px; clip-path: none; border-left: none; border-right: none; top: 0; background: #0a0a0a; }

    #industries {
        background-size: cover;
        background-position: center;
    }
    
    .industry-card-group { width: 320px; height: 260px; }
    .card-shadow { bottom: -50px; height: 40px; }
    .industry-card-group.expanded .card-shadow { transform: translateY(140px) scaleY(0.3); width: 100%; left: 0; opacity: 0.8; }
    .card-info { top: 0; bottom: auto; height: 260px; width: 100%; padding: 30px 20px; }
    .industry-card-group.expanded .card-main { transform: translateY(-140px) scale(1.05); }
    .industry-card-group.expanded .card-info { transform: translateY(140px); opacity: 1; pointer-events: auto; }
    .card-info .info-content i { font-size: 2rem; margin-bottom: 10px; }
    .card-info .info-content h4 { font-size: 1.3rem; margin-bottom: 8px; }
    .card-info .info-content p { font-size: 0.9rem; }

    .stat-line { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 20px; }
    .stat-desc { padding-left: 18px; font-size: 0.95rem; margin-left: 0; }
    .contact-info-panel, .contact-form-panel { padding: 30px 20px; }

    .footer-flex { flex-direction: column; text-align: center; gap: 15px; }
    .footer-brand p { font-size: 0.85rem; padding: 0 10px; }
    .footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
    .footer-legal a { margin: 0; font-size: 0.85rem; }

    .custom-toast { right: auto; left: 50%; transform: translateX(-50%); bottom: -200px; width: 90%; transition: bottom 0.5s cubic-bezier(0.165, 0.84, 0.44, 1); }
    .custom-toast.show { bottom: 20px; right: auto; }
}

@media (max-width: 900px) and (orientation: landscape) {
    .hero { min-height: 100vh; }
    .side-modal-content { padding: 90px 30px 40px; }
    
    #industries {
        background-size: cover;
        background-position: center;
    }
    
    .industry-card-group { width: 340px; height: 200px; }
    .card-info { top: 0; bottom: 0; height: 100%; width: 280px; padding: 20px; }
    
    .industry-card-group.expanded .card-main { transform: translateX(-140px) scale(1.05); }
    .industry-card-group.expanded .card-info { transform: translateX(150px); opacity: 1; pointer-events: auto; }
    .industry-card-group.expanded .card-shadow { transform: translateX(0) scaleY(0.3); width: 150%; left: -25%; opacity: 0.8; }
    
    .card-info .info-content i { font-size: 1.5rem; margin-bottom: 5px; }
    .card-info .info-content h4 { font-size: 1.1rem; margin-bottom: 5px; }
    .card-info .info-content p { font-size: 0.85rem; }
}