/* ==========================================================================
   Tiro Systems Argentina - Industrial Thermal Draft & Ventilation Engineering
   Neural Glass Custom Styling & Google Ads Compliance
   Sede CABA: Av. Leandro N. Alem 855, Piso 6, Retiro, C1001AAQ
   Planta: Ruta 8 Nº 4250, San Martín, B1650MOP, PBA
   ========================================================================== */

:root {
    --tiro-bg-dark: #050811;
    --tiro-bg-card: rgba(13, 23, 38, 0.75);
    --tiro-bg-glass: rgba(16, 29, 48, 0.65);
    --tiro-cyan: #00f0ff;
    --tiro-cyan-glow: rgba(0, 240, 255, 0.35);
    --tiro-blue: #0284c7;
    --tiro-blue-light: #38bdf8;
    --tiro-amber: #f59e0b;
    --tiro-amber-glow: rgba(245, 158, 11, 0.3);
    --tiro-text-white: #ffffff;
    --tiro-text-light: #e2e8f0;
    --tiro-text-muted: #94a3b8;
    --tiro-border-glass: rgba(0, 240, 255, 0.2);
    --tiro-border-subtle: rgba(255, 255, 255, 0.1);
}

/* Patch 3.9: Bootstrap Reset & Fluid Grid */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    background-color: var(--tiro-bg-dark);
    color: var(--tiro-text-light);
    font-family: 'Inter', system-ui, -apple-system, Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Patch 7.5: iOS Safari 16px minimum font size */
input, select, textarea {
    font-size: 16px !important;
}

/* Patch 3.11: Zero Header Overflow */
header, nav, .hero, .topbar {
    max-width: 100vw;
    overflow-x: clip;
}

/* Topbar */
.topbar {
    background: rgba(5, 8, 17, 0.95);
    color: var(--tiro-text-muted);
    font-size: 0.82rem;
    padding: 7px 0;
    border-bottom: 1px solid var(--tiro-border-glass);
    position: relative;
    z-index: 1001;
}

.topbar a {
    color: var(--tiro-text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.topbar a:hover {
    color: var(--tiro-cyan);
}

.topbar-badge {
    background: rgba(0, 240, 255, 0.12);
    color: var(--tiro-cyan);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

/* Main Navigation */
#mainNav {
    background: rgba(7, 12, 24, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--tiro-border-glass);
    transition: all 0.3s ease;
}

#mainNav.scrolled {
    background: rgba(4, 7, 15, 0.98) !important;
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.12);
}

.navbar-brand-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2) 0%, rgba(2, 132, 199, 0.5) 100%);
    border: 1px solid var(--tiro-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tiro-cyan);
    font-size: 1.4rem;
    box-shadow: 0 0 15px var(--tiro-cyan-glow);
}

.brand-title-wrap {
    display: flex;
    flex-direction: column;
}

.brand-main-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    line-height: 1.1;
    text-transform: uppercase;
}

.brand-sub-title {
    font-size: 0.7rem;
    color: var(--tiro-cyan);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.nav-link-custom {
    color: #cbd5e1 !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 14px !important;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.nav-link-custom:hover, .nav-link-custom.active {
    color: var(--tiro-cyan) !important;
    background: rgba(0, 240, 255, 0.08);
}

.dropdown-menu-dark-custom {
    background: #090e1a;
    border: 1px solid var(--tiro-border-glass);
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    padding: 8px;
}

.dropdown-menu-dark-custom .dropdown-item {
    color: #cbd5e1;
    font-size: 0.88rem;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.dropdown-menu-dark-custom .dropdown-item:hover {
    background: rgba(0, 240, 255, 0.15);
    color: var(--tiro-cyan);
    transform: translateX(4px);
}

/* Patch 3.10: White Ticker Marquee */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: #04070f;
    border-top: 1px solid var(--tiro-border-glass);
    border-bottom: 1px solid var(--tiro-border-glass);
    padding: 11px 0;
    position: relative;
    z-index: 10;
}

.ticker-move {
    display: inline-flex;
    white-space: nowrap;
    animation: tickerAnim 35s linear infinite;
}

.ticker-wrap:hover .ticker-move {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0 28px;
    gap: 10px;
}

.ticker-item i {
    color: var(--tiro-cyan);
    font-size: 1rem;
}

.ticker-badge {
    background: rgba(0, 240, 255, 0.18);
    color: var(--tiro-cyan);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

@keyframes tickerAnim {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Hero Section */
.tiro-hero {
    position: relative;
    min-height: 85vh;
    background: radial-gradient(circle at 80% 25%, rgba(0, 240, 255, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 15% 75%, rgba(2, 132, 199, 0.18) 0%, transparent 50%),
                linear-gradient(135deg, #050811 0%, #0a1122 50%, #0d1729 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.tiro-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="tiro-grid" width="25" height="25" patternUnits="userSpaceOnUse"><path d="M 25 0 L 0 0 0 25" fill="none" stroke="rgba(0,240,255,0.03)" stroke-width="0.8"/></pattern></defs><rect width="100" height="100" fill="url(%23tiro-grid)"/></svg>');
    opacity: 0.8;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.4);
    color: var(--tiro-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.hero-title-main {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
    color: #ffffff;
}

.hero-lead-text {
    font-size: 1.15rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 650px;
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #00f0ff 0%, #0284c7 100%);
    color: #050811;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0, 240, 255, 0.3);
    border: none;
}

.hero-cta-btn:hover {
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 240, 255, 0.45);
}

.hero-secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 26px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--tiro-border-glass);
}

.hero-secondary-btn:hover {
    background: rgba(0, 240, 255, 0.12);
    color: var(--tiro-cyan);
    border-color: var(--tiro-cyan);
    transform: translateY(-2px);
}

.hero-image-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--tiro-border-glass);
}

.hero-image-frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.hero-image-frame:hover img {
    transform: scale(1.02);
}

.hero-floating-stat {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(7, 12, 24, 0.92);
    backdrop-filter: blur(12px);
    border: 1px solid var(--tiro-border-glass);
    border-radius: 12px;
    padding: 14px 20px;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.hero-floating-stat .stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--tiro-cyan);
    line-height: 1;
}

.hero-floating-stat .stat-label {
    font-size: 0.78rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Patch 3.13: Elastic Flex Cards */
.card-row-equal {
    display: flex;
    flex-wrap: wrap;
}

.card-row-equal > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

.glass-card {
    background: rgba(13, 23, 38, 0.75);
    backdrop-filter: blur(16px);
    border-radius: 14px;
    border: 1px solid var(--tiro-border-glass);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 240, 255, 0.15);
    border-color: var(--tiro-cyan);
}

.glass-card .card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.icon-box-cyan {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--tiro-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.glass-card:hover .icon-box-cyan {
    background: var(--tiro-cyan);
    color: #050811;
    transform: scale(1.08);
}

/* Bento Showcase Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.bento-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--tiro-border-glass);
    background: #090e1a;
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.bento-item:hover img {
    transform: scale(1.05);
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 8, 17, 0.95) 0%, rgba(5, 8, 17, 0.3) 60%, transparent 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
}

.bento-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--tiro-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.bento-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}

.bento-desc {
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bento-col-8 { grid-column: span 8; min-height: 380px; }
.bento-col-4 { grid-column: span 4; min-height: 380px; }
.bento-col-6 { grid-column: span 6; min-height: 300px; }

@media (max-width: 991px) {
    .bento-col-8, .bento-col-4, .bento-col-6 {
        grid-column: span 12;
        min-height: 280px;
    }
}

/* Airflow / Draft Calculator */
.calculator-panel {
    background: rgba(13, 23, 38, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--tiro-border-glass);
    padding: 35px;
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.calc-step-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--tiro-cyan);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--tiro-border-glass);
}

.calc-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--tiro-cyan);
    color: #050811;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
}

.calc-btn-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.calc-option-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 12px 14px;
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.calc-option-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--tiro-cyan);
    color: #ffffff;
}

.calc-option-btn.active {
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--tiro-cyan);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 0 15px var(--tiro-cyan-glow);
}

.calc-summary-box {
    background: rgba(5, 8, 17, 0.9);
    border-radius: 14px;
    border: 1px solid var(--tiro-border-glass);
    padding: 24px;
}

.calc-output-display {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--tiro-cyan);
    line-height: 1.1;
    font-family: 'Space Mono', monospace, sans-serif;
}

/* Technical Specification Tables */
.table-tech-spec {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--tiro-border-glass);
    margin-bottom: 25px;
}

.table-tech-spec th {
    background: #090e1a;
    color: var(--tiro-cyan);
    font-weight: 600;
    padding: 12px 16px;
    font-size: 0.88rem;
    text-align: left;
}

.table-tech-spec td {
    padding: 12px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    background: rgba(13, 23, 38, 0.5);
}

.table-tech-spec tr:last-child td {
    border-bottom: none;
}

/* Section Header Styles */
.section-tag {
    display: inline-block;
    color: var(--tiro-cyan);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-heading-dark {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
}

.section-subtext {
    color: var(--tiro-text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto;
}

/* Footer & AFIP */
.footer-tiro {
    background: #03050a;
    color: #94a3b8;
    border-top: 1px solid var(--tiro-border-glass);
    padding: 60px 0 30px;
    font-size: 0.9rem;
}

.footer-tiro h5 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-tiro h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--tiro-cyan);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: var(--tiro-cyan);
    transform: translateX(4px);
}

.afip-badge-box {
    display: inline-block;
    background: #ffffff;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    transition: transform 0.2s ease;
}

.afip-badge-box:hover {
    transform: scale(1.05);
}

.afip-badge-box img {
    display: block;
    width: 58px;
    height: auto;
}

/* Floating WhatsApp Button */
.whatsapp-float-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-float-btn:hover {
    color: #ffffff;
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

/* Breadcrumbs */
.breadcrumb-wrap {
    background: rgba(13, 23, 38, 0.9);
    padding: 12px 0;
    border-bottom: 1px solid var(--tiro-border-glass);
    font-size: 0.85rem;
}

.breadcrumb-wrap a {
    color: var(--tiro-text-muted);
    text-decoration: none;
}

.breadcrumb-wrap a:hover {
    color: var(--tiro-cyan);
}

.breadcrumb-wrap .current-crumb {
    color: #ffffff;
    font-weight: 600;
}

/* Cookie Notice */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #070c18;
    color: #cbd5e1;
    padding: 14px 20px;
    font-size: 0.85rem;
    z-index: 1050;
    border-top: 1px solid var(--tiro-border-glass);
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.6);
}

/* Internal Page Headers */
.internal-page-header {
    background: radial-gradient(circle at 80% 20%, rgba(0, 240, 255, 0.12) 0%, transparent 50%),
                linear-gradient(135deg, #050811 0%, #0a1122 60%, #0d1729 100%);
    color: #ffffff;
    padding: 120px 0 60px;
    position: relative;
    border-bottom: 1px solid var(--tiro-border-glass);
}

.internal-page-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.internal-page-header p {
    color: #cbd5e1;
    font-size: 1.05rem;
    max-width: 750px;
    margin: 0;
}
