/* =========================================
   Teranet Solar - Premium Tech Design System
   ========================================= */

:root {
    --bg-base: #020617; /* Deep Navy Blue / Slate 950 */
    --bg-surface: #0f172a; /* Slate 900 */
    --bg-elevated: #1e293b; /* Slate 800 */
    --border: rgba(148, 163, 184, 0.1);
    --border-hover: rgba(148, 163, 184, 0.25);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    --accent: #3b82f6; /* Modern Blue 500 */
    --accent-glow: #60a5fa;
    --accent-dark: #1d4ed8;
    
    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Base layouts */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 100px 0; }
.mt-2 { margin-top: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Utilities */
.text-gradient {
    background: linear-gradient(180deg, #FFFFFF 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-title .text-gradient {
    background: linear-gradient(90deg, #b0e0e6 0%, #0081c6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.muted { color: var(--text-secondary); }

/* Background Effects */
.ambient-glow {
    position: fixed;
    top: -30%; left: 50%;
    transform: translateX(-50%);
    width: 60vw; height: 60vh;
    background: radial-gradient(ellipse at center, rgba(66, 194, 255, 0.1) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    z-index: -1;
    filter: blur(80px);
}
.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.03"/%3E%3C/svg%3E');
    pointer-events: none; z-index: 9999;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-sm {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 6px; font-weight: 500; font-size: 0.95rem;
    transition: var(--transition); text-decoration: none; cursor: pointer;
    border: none;
    font-family: var(--font);
}
.btn-primary {
    background: #ffffff; color: #000000;
    padding: 0.8rem 1.5rem;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(255,255,255,0.2); }
.btn-secondary {
    background: transparent; color: var(--text-primary);
    border: 1px solid var(--border); padding: 0.8rem 1.5rem;
}
.btn-secondary:hover { background: var(--bg-surface); border-color: var(--border-hover); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; background: #ffffff; color: #000; }
.btn-sm:hover { opacity: 0.9; }
.w-full { width: 100%; }
.arrow { transition: transform 0.2s; display: inline-block; margin-left: 0.5rem; }
.btn-secondary:hover .arrow { transform: translateX(3px); }
.btn-primary.cta-glow { box-shadow: 0 0 25px rgba(0, 129, 198, 0.4), 0 0 60px rgba(0, 129, 198, 0.15); animation: ctaPulse 2.5s infinite; }
@keyframes ctaPulse { 0%, 100% { box-shadow: 0 0 25px rgba(0, 129, 198, 0.4), 0 0 60px rgba(0, 129, 198, 0.15); } 50% { box-shadow: 0 0 35px rgba(0, 129, 198, 0.6), 0 0 80px rgba(0, 129, 198, 0.25); } }

/* Navbar */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 100;
    border-bottom: 1px solid transparent; transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(0,0,0,0.7);    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 140px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 120px; width: auto; transition: transform 0.3s ease; }
.logo-img:hover { transform: scale(1.05); }
.logo-img-footer { height: 120px; width: auto; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; transition: var(--transition); align-items: center; }
.nav-links a { color: var(--text-secondary); font-size: 0.85rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: var(--transition); position: relative;}
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--accent); transition: var(--transition); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.mobile-only-cta { display: none; }

/* Hamburger Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}
.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 4px;
    transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); background: var(--accent); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background: var(--accent); }

/* Hero */
.hero { display: flex; align-items: center; min-height: 100vh; padding-top: 160px; text-align: center; position: relative; overflow: hidden; }
.hero-bg-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; z-index:0;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.85) 60%, #000000 100%);
    z-index: 1;
}
.hero-container { display: flex; flex-direction: column; align-items: center; width: 100%;}
.cta-glow {
    background: var(--accent) !important; color: white !important; border: none !important;
    box-shadow: 0 4px 30px rgba(0, 129, 198, 0.5);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.cta-glow:hover { box-shadow: 0 6px 40px rgba(0, 129, 198, 0.7); transform: translateY(-2px); }
.badge {
    border: 1px solid var(--border); border-radius: 20px; padding: 0.3rem 0.8rem;
    font-size: 0.8rem; font-weight: 500; margin-bottom: 2rem; background: rgba(255,255,255,0.02);
}
.hero-title { font-size: 5.5rem; line-height: 1; letter-spacing: -0.04em; margin-bottom: 1.5rem; font-weight: 700; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-secondary); max-width: 600px; margin-bottom: 2.5rem; font-weight: 400; }
.hero-actions { display: flex; gap: 1rem; margin-bottom: 4rem; }

/* Dashboard Mockup - Tech Vibe */
.dashboard-preview {
    width: 100%; max-width: 900px; background: var(--bg-surface);
    border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6); text-align: left;
}
.dash-top {
    height: 40px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; padding: 0 1rem; position: relative;
}
.dash-dots { display: flex; gap: 6px; }
.dash-dots span { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.dash-url { position: absolute; left: 50%; transform: translateX(-50%); font-size: 0.8rem; color: var(--text-secondary); }
.dash-content { display: flex; height: 400px; }
.dash-sidebar { width: 60px; border-right: 1px solid var(--border); padding: 1rem; display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.sidebar-item { width: 24px; height: 24px; border-radius: 6px; background: var(--border); }
.sidebar-item.active { background: #fff; }
.dash-main { flex: 1; padding: 2rem; display: flex; flex-direction: column; gap: 2rem; }
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.metric-box { border: 1px solid var(--border); border-radius: 8px; padding: 1.5rem; background: var(--bg-elevated); }
.metric-box.box-glow { border-color: rgba(66, 194, 255, 0.3); background: rgba(66,194,255,0.03); }
.metric-label { display: block; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.metric-val { font-size: 1.8rem; font-weight: 600; letter-spacing: -1px; }
.status-ok { color: #a1e3a1; font-size: 1.2rem; }
.dash-graph { flex: 1; border: 1px solid var(--border); border-radius: 8px; position: relative; overflow: hidden; background: var(--bg-elevated);}
.energy-wave {
    position: absolute; bottom: -20px; left: -10%; width: 120%; height: 150px;
    background: radial-gradient(ellipse at top, rgba(66, 194, 255, 0.2) 0%, transparent 70%);
    border-top: 1px solid rgba(66, 194, 255, 0.5); border-radius: 50%;
}

/* Bento Grid */
.section-header { margin-bottom: 4rem;}
.section-badge { font-size: 0.8rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1rem; }
.section-title { font-size: 3rem; line-height: 1.1; letter-spacing: -0.03em; }
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; grid-auto-rows: minmax(280px, auto); }
.bento-card {
    background: var(--bg-surface); border: 1px solid var(--border); border-radius: 16px;
    padding: 2.5rem; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: var(--transition);
}
.bento-card:hover { border-color: var(--border-hover); background: var(--bg-elevated); }
.bento-card.col-span-2 { grid-column: span 2; }
.flex-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem;}
.bento-card h3 { font-size: 1.25rem; margin-bottom: 0.8rem; font-weight: 600; }
.bento-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }
.bento-glow::before {
    content: ''; position: absolute; top: 0; right: 0; width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(66, 194, 255, 0.1) 0%, transparent 70%); filter: blur(40px);
}
.bento-icon { font-size: 2rem; margin-bottom: auto; }
.tech-grid { display: flex; gap: 1rem; align-items: flex-end; justify-content: flex-end; margin-top: 2rem; flex-wrap: wrap;}
.floating-node { background: rgba(255,255,255,0.05); border: 1px solid var(--border); padding: 0.5rem 1rem; border-radius: 30px; font-size: 0.8rem; color: #fff;}
.n1 { transform: translateY(0px); }
.n2 { transform: translateY(-20px); }
.n3 { transform: translateY(-10px); }
.battery-visual { width: 100px; height: 160px; border: 2px solid var(--border); border-radius: 12px; padding: 6px; position: relative;}
.battery-visual::before { content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 30px; height: 4px; background: var(--border); border-radius: 4px 4px 0 0;}
.battery-core { width: 100%; height: 80%; background: #a1e3a1; border-radius: 6px; position: absolute; bottom: 6px;}

/* Trust Bar */
.trust-bar {
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    background: var(--bg-surface); padding: 1.5rem 0; position: relative; z-index: 5;
}
.trust-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center;
}
.trust-item {
    display: flex; align-items: center; justify-content: center; gap: 0.8rem;
    font-size: 0.95rem; font-weight: 500; color: var(--text-secondary);
}
.trust-icon { font-size: 1.3rem; }

/* Benefits Grid */
.benefits-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.benefit-card {
    background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px;
    padding: 2.5rem 2rem; transition: var(--transition);
}
.benefit-card:hover { border-color: var(--border-hover); background: var(--bg-elevated); transform: translateY(-4px); }
.benefit-icon { font-size: 2rem; margin-bottom: 1rem; }
.benefit-card h3 { font-size: 1.2rem; margin-bottom: 0.8rem; font-weight: 600; }
.benefit-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }

/* Process Steps */
.process-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.process-step {
    text-align: center; padding: 2rem 1.5rem; background: var(--bg-elevated);
    border: 1px solid var(--border); border-radius: 12px; transition: var(--transition); position: relative;
}
.process-step:hover { border-color: var(--accent); }
.process-number {
    font-size: 3rem; font-weight: 800; color: var(--accent); opacity: 0.3;
    line-height: 1; margin-bottom: 1rem;
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 0.8rem; }
.process-step p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }

/* Solutions Grid */
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.solution-card {
    background: var(--bg-surface); border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden; transition: var(--transition); display: flex; flex-direction: column;
}
.solution-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.solution-img {
    width: 100%; height: 220px; background-size: cover; background-position: center;
    filter: brightness(0.8) contrast(1.1);
}
.solution-content {
    padding: 2rem; display: flex; flex-direction: column; flex: 1;
}
.solution-tag {
    display: inline-block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1.5px; padding: 0.3rem 0.8rem; border-radius: 20px; margin-bottom: 1rem;
    background: rgba(0, 129, 198, 0.1); color: var(--accent); border: 1px solid rgba(0, 129, 198, 0.3); width: fit-content;
}
.solution-content h3 { font-size: 1.3rem; margin-bottom: 0.8rem; }
.solution-content p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; margin-bottom: 1.5rem; }
.solution-features { list-style: none; padding: 0; margin-bottom: 2rem; }
.solution-features li {
    color: var(--text-secondary); font-size: 0.9rem; padding: 0.5rem 0;
    border-bottom: 1px solid var(--border); position: relative; padding-left: 1.5rem;
}
.solution-features li::before {
    content: '✓'; position: absolute; left: 0; color: #32D583; font-weight: 700;
}

/* Calculator CTA Section */
.calc-cta-section { background: var(--bg-base); }
.calc-cta-box {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center;
    background: var(--bg-surface); border: 1px solid var(--border); border-radius: 20px;
    padding: 4rem; position: relative; overflow: hidden;
}
.calc-cta-box::before {
    content: ''; position: absolute; top: -50%; right: -20%; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0, 129, 198, 0.12) 0%, transparent 70%); filter: blur(40px);
}
.calc-cta-content { position: relative; z-index: 2; }
.calc-cta-visual { position: relative; z-index: 2; }
.calc-cta-mockup {
    background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px;
    overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.mockup-header {
    display: flex; gap: 6px; padding: 1rem 1.2rem; border-bottom: 1px solid var(--border);
}
.mockup-body { padding: 2rem; text-align: center; }
.mockup-label { font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.3rem; }
.mockup-value { font-size: 1.8rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.mockup-divider { height: 1px; background: var(--border); margin: 1.5rem 0; }

/* Why Grid */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.why-item {
    padding: 2rem; border: 1px solid var(--border); border-radius: 12px;
    background: var(--bg-elevated); transition: var(--transition);
}
.why-item:hover { border-color: var(--accent); }
.why-number {
    font-size: 2rem; font-weight: 800; color: var(--accent); opacity: 0.4;
    margin-bottom: 0.5rem; line-height: 1;
}
.why-item h4 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.why-item p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item {
    border: 1px solid var(--border); border-radius: 10px;
    overflow: hidden; background: var(--bg-surface); transition: var(--transition);
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-question {
    width: 100%; background: none; border: none; color: #fff; font-family: var(--font);
    font-size: 1.05rem; font-weight: 500; padding: 1.5rem 2rem;
    display: flex; justify-content: space-between; align-items: center; cursor: pointer;
    text-align: left; transition: var(--transition);
}
.faq-question:hover { color: var(--accent); }
.faq-toggle {
    font-size: 1.5rem; font-weight: 300; color: var(--accent); transition: transform 0.3s ease;
    flex-shrink: 0; margin-left: 1rem;
}
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 2rem;
}
.faq-answer p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }
.faq-answer a { color: var(--accent); text-decoration: none; }
.faq-item.open .faq-answer { max-height: 300px; padding: 0 2rem 1.5rem; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }

/* Contact Layout */
.contact-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: start; }
.contact-info-card {
    background: var(--bg-surface); border: 1px solid var(--border); border-radius: 16px;
    padding: 2.5rem; height: 100%;
}
.contact-info-card .contact-item { margin-bottom: 1.5rem; }

/* Services Showcase */
.services-showcase { display: flex; flex-direction: column; gap: 2rem; }
.service-card-big {
    position: relative; display: block; border-radius: 20px; overflow: hidden;
    height: 420px; text-decoration: none; transition: var(--transition);
    border: 1px solid var(--border);
}
.service-card-big:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.service-card-big .service-card-img {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    transition: transform 0.6s ease;
}
.service-card-big:hover .service-card-img { transform: scale(1.05); }
.service-card-big .service-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
}
.service-card-big .service-card-body {
    position: relative; z-index: 2; padding: 3rem; height: 100%;
    display: flex; flex-direction: column; justify-content: flex-end; max-width: 550px;
}
.service-card-big h3 { font-size: 2rem; margin-bottom: 0.8rem; color: #fff; }
.service-card-big p { color: rgba(255,255,255,0.7); font-size: 1.05rem; line-height: 1.6; margin-bottom: 1.5rem; }

.services-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.services-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 2rem; }
.service-card {
    position: relative; display: block; border-radius: 16px; overflow: hidden;
    height: 320px; text-decoration: none; transition: var(--transition);
    border: 1px solid var(--border);
}
.service-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.service-card .service-card-img {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    transition: transform 0.6s ease;
}
.service-card:hover .service-card-img { transform: scale(1.05); }
.service-card .service-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}
.service-card .service-card-body {
    position: relative; z-index: 2; padding: 2rem; height: 100%;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.service-card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; color: #fff; }
.service-card p { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.5; margin-bottom: 1rem; }
.service-link {
    color: var(--accent); font-size: 0.9rem; font-weight: 500; transition: var(--transition);
}
.service-card-big:hover .service-link,
.service-card:hover .service-link { text-decoration: underline; }

/* Implementations (Cases) */
.cases-flex { display: flex; gap: 2rem; }
.case-item { flex: 1; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--bg-surface); transition: var(--transition); display: flex; flex-direction: column;}
.case-item:hover { border-color: var(--border-hover); }
.case-img-wrap { width: 100%; height: 260px; overflow: hidden; }
.case-img-wrap img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%) contrast(110%); transition: transform 0.6s ease; }
.case-item:hover .case-img-wrap img { transform: scale(1.03); }
.case-info { padding: 2.5rem; flex: 1; display: flex; flex-direction: column;}
.case-info h3 { font-size: 1.5rem; margin-bottom: 0.8rem; letter-spacing: -0.02em; }
.case-info p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; margin-bottom: 2rem;}
.case-specs { display: flex; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--border); margin-top: auto; font-family: monospace; font-size: 0.9rem; color: var(--accent-glow);}

/* Contact Section */
.contact-container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6rem; align-items: start; }
.contact-text h2 { font-size: 3.5rem; line-height: 1.1; letter-spacing: -0.04em; margin-bottom: 1.5rem; }
.contact-text p { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 3rem; }
.contact-item { margin-bottom: 1.5rem; }
.contact-item .muted { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: #666; margin-bottom: 0.4rem; }
.tech-link { display: inline-block; font-size: 1.4rem; font-weight: 500; color: #fff; text-decoration: none; transition: color 0.3s; }
.tech-link:hover { color: var(--accent); }

.contact-form-wrap { background: var(--bg-surface); padding: 3rem; border-radius: 16px; border: 1px solid var(--border); }
.tech-form { display: flex; flex-direction: column; gap: 1.5rem; }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.input-group label { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.tech-form input, .tech-form select {
    background: var(--bg-base); border: 1px solid var(--border); border-radius: 6px;
    padding: 1rem; color: #fff; width: 100%; font-family: var(--font); font-size: 0.95rem; transition: var(--transition);
}
.tech-form input:focus, .tech-form select:focus { outline: none; border-color: rgba(255,255,255,0.4); background: #111; }
.tech-form select { appearance: none; cursor: pointer; }
.form-notice { text-align: center; font-size: 0.8rem; color: #555; margin-top: 0.5rem; }

/* Footer */
.footer-tech { border-top: 1px solid var(--border); padding-top: 4rem; padding-bottom: 2rem; font-size: 0.9rem; background: var(--bg-base);}
.flex-footer { display: flex; justify-content: space-between; margin-bottom: 4rem; }
.footer-links-grid { display: flex; gap: 4rem; }
.footer-col h4 { color: #fff; margin-bottom: 1rem; font-weight: 600; }
.footer-col a { display: block; color: var(--text-secondary); text-decoration: none; margin-bottom: 0.8rem; transition: color 0.3s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 2rem; color: #666; }
.status-indicator { display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; background: #32D583; border-radius: 50%; }

/* Animations Utilities */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

.slide-up { animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.fade-in { animation: fadeIn 1s ease forwards; opacity: 0; }
.zoom-in { animation: zoomIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.delay-1 { animation-delay: 0.1s; } 
.delay-2 { animation-delay: 0.2s; } 
.delay-3 { animation-delay: 0.3s; }

@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.95) translateY(20px); box-shadow: 0 0 0 transparent; } to { opacity: 1; transform: scale(1) translateY(0); box-shadow: 0 30px 60px rgba(0,0,0,0.6); } }
@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0); } }
.fade-float { animation: float 4s ease-in-out infinite; }

/* Works Gallery */
.gallery-section { padding-top: 180px; min-height: 80vh; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 4/3;
    background: var(--bg-surface);
}
.gallery-item img.photo {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.gallery-item:hover img.photo { transform: scale(1.05); }

/* Watermark Overlay */
.watermark {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 150px; /* Tamaño del logo en la foto (Hecho más grande) */
    opacity: 0.8;
    pointer-events: none;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.8));
    z-index: 10;
}

.gallery-info {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 3rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%);
    z-index: 5;
    pointer-events: none;
}
.gallery-info h3 { font-size: 1.25rem; margin-bottom: 0.3rem; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.gallery-info p { font-size: 0.9rem; color: #ddd; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }

.active-link { color: var(--text-primary) !important; font-weight: 700 !important; }

/* Calculator Section */
.calc-section { padding-top: 180px; min-height: 80vh; }
.calc-container { max-width: 800px; margin: 0 auto; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 16px; padding: 3rem; position: relative; overflow: hidden; }

/* Tech Panel Header */
.tech-panel-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.5rem; background: var(--bg-base); border-bottom: 1px solid var(--border);
    margin: -3rem -3rem 3rem -3rem; font-family: monospace; font-size: 0.85rem; color: var(--text-secondary);
}
.tech-dots { display: flex; gap: 6px; }
.tech-dots span { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.tech-panel-title { letter-spacing: 1px; color: var(--accent-glow); font-weight: 600; }
.tech-status { display: flex; align-items: center; gap: 8px; color: #32D583; }

.calc-progress { display: flex; gap: 10px; margin-bottom: 3rem; }
.progress-bar { flex: 1; height: 6px; background: var(--bg-elevated); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); width: 0%; transition: width 0.4s ease; }

.calc-step { display: none; animation: fadeIn 0.5s ease; }
.calc-step.active { display: block; }

.calc-title { font-size: 2.2rem; margin-bottom: 1rem; }
.calc-subtitle { color: var(--text-secondary); margin-bottom: 2rem; font-size: 1.05rem; line-height: 1.6; }

.calc-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.calc-card { border: 1px solid var(--border); border-radius: 12px; padding: 2rem 1.5rem; cursor: pointer; text-align: center; transition: var(--transition); background: var(--bg-elevated); }
.calc-card:hover, .calc-card.selected { border-color: var(--accent); background: rgba(0, 129, 198, 0.05); transform: translateY(-3px); }
.calc-card-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2.5rem; }
.calc-input-group label { display: block; color: var(--text-secondary); margin-bottom: 0.5rem; font-size: 0.9rem; }
.calc-input-wrapper { position: relative; display: flex; align-items: center; }
.calc-input-wrapper span { position: absolute; right: 1rem; color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }
.calc-input-group input, .calc-input-group select { width: 100%; padding: 1.2rem; padding-right: 3rem; background: var(--bg-base); border: 1px solid var(--border); border-radius: 8px; color: #fff; font-family: var(--font); font-size: 1rem; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.calc-input-group input:focus, .calc-input-group select:focus { outline: none; border-color: var(--accent); background:var(--bg-elevated); box-shadow: 0 0 15px rgba(0, 129, 198, 0.25); transform: translateY(-2px); }

/* Validation States & Microanimations */
@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.input-error { border-color: #ff5f56 !important; box-shadow: 0 0 12px rgba(255, 95, 86, 0.3) !important; animation: inputShake 0.4s ease-in-out; }
.input-success { border-color: #32D583 !important; box-shadow: 0 0 10px rgba(50, 213, 131, 0.15) !important; }
.loading-pulse { animation: pulse 1.5s infinite; opacity: 0.8; }

.explanation-steps { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 3rem; }
.exp-step { display: flex; gap: 1.5rem; align-items: center; background: var(--bg-elevated); padding: 1.5rem; border-radius: 12px; border: 1px solid var(--border); transition: var(--transition); }
.exp-step:hover { border-color: rgba(66, 194, 255, 0.4); }
.exp-icon { width: 50px; height: 50px; background: rgba(0, 129, 198, 0.1); color: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; border: 1px solid rgba(0, 129, 198, 0.2); }
.exp-text h4 { margin-bottom: 0.4rem; font-size: 1.15rem; color: #fff; }
.exp-text p { color: var(--text-secondary); font-size: 0.95rem; line-height:1.5; }

.lead-form { display: flex; flex-direction: column; gap: 1.5rem; }

.result-box { text-align: center; padding: 3rem; background: var(--bg-surface); border: 1px solid rgba(66, 194, 255, 0.3); border-radius: 16px; margin-bottom: 2rem; position: relative; overflow: hidden; }
.result-number { font-size: 5rem; font-weight: 800; color: #fff; line-height: 1; margin: 1rem 0; text-shadow: 0 0 20px rgba(66,194,255,0.4); }
.result-detail { display: flex; justify-content: space-around; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.detail-item span { display: block; }
.detail-label { color: var(--text-secondary); font-size: 0.8rem; margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 500;}
.detail-val { font-size: 1.3rem; font-weight: 600; color: #fff; }

.calc-nav { display: flex; justify-content: space-between; margin-top: 2rem; align-items: center; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Media Queries */
@media (max-width: 1024px) {
    .nav-container { height: 75px; padding: 0 1rem; }
    .logo-img { height: 50px; }
    
    .menu-toggle { display: flex; order: 10; margin-left: auto; }
    .nav-container .btn-sm { display: none !important; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: var(--bg-base);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 100px;
        padding-bottom: 150px;
        overflow-y: auto;
        gap: 1.5rem;
        z-index: 1000;
        transition: var(--transition);
        border-left: 1px solid var(--border);
    }
    
    .nav-links.active { right: 0; }
    
    .nav-links a {
        font-size: 1.2rem;
        color: #fff;
    }
    
    .mobile-only-cta { 
        display: block !important; 
        background: var(--accent); 
        padding: 0.8rem 2rem; 
        border-radius: 50px; 
        font-weight: 700 !important; 
        margin-top: 1rem;
        box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    }

    .calc-container { padding: 1.5rem; border-radius: 0; border-left:none; border-right:none;}
    .calc-options, .calc-grid, .result-actions { grid-template-columns: 1fr; }
    .exp-step { flex-direction: column; text-align: center; }
    .result-number { font-size: 4rem; }
    .result-detail { flex-direction: column; gap: 1.5rem; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-card.col-span-2 { grid-column: span 1; }
    .flex-row { flex-direction: column; align-items: flex-start; }
    .hero-title { font-size: 3.2rem; }
    .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
    .contact-form-wrap { padding: 1.5rem; }
    .cases-flex { flex-direction: column; }
    .dash-sidebar { display: none; }
    .metrics-grid { grid-template-columns: 1fr; }
    .flex-footer { flex-direction: column; gap: 3rem; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .benefits-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .solutions-grid { grid-template-columns: 1fr; }
    .calc-cta-box { grid-template-columns: 1fr; padding: 2.5rem; gap: 2rem; }
    .why-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 2.2rem; }
    .services-grid-3, .services-grid-2 { grid-template-columns: 1fr; }
    .service-card-big { height: 350px; }
    .service-card-big .service-card-body { max-width: 100%; }
    .service-card-big h3 { font-size: 1.6rem; }
}
@media (max-width: 600px) {
    .nav-links a { font-size: 1.1rem; }
    .hero-title { font-size: 2.5rem; }
    .input-row { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; align-items: center; }
    .trust-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .footer-links-grid { flex-direction: column; gap: 2rem; }
    .service-card-big { height: 280px; }
    .service-card { height: 250px; }
}

/* FAB WhatsApp */
.fab-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: floatFab 3s infinite ease-in-out;
}
.fab-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}
@keyframes floatFab {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Final Contact Section & Standardized Forms */
.final-contact-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
}

.contact-layout-alt {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info-col {
    display: flex;
    flex-direction: column;
}

.contact-info-card-alt {
    background: var(--bg-base);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.info-item {
    margin-bottom: 1rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.info-link {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
}

.info-link:hover {
    color: var(--accent);
}

.tech-form-group {
    margin-bottom: 1rem;
}

.tech-form-group.last {
    margin-bottom: 1.5rem;
}

.tech-form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
