/* Design system for OYRSA GNC - Premium Website Style */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #1B3A5C;
    --primary-light: #2C5282;
    --primary-dark: #0F253D;
    --accent: #D4A843;
    --accent-hover: #C59833;
    --bg-main: #FFFFFF;
    --bg-alt: #F8FAFC;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --text-light: #FFFFFF;
    --border-color: #E2E8F0;
    --success: #10B981;
    --card-shadow: 0 10px 30px rgba(15, 37, 61, 0.05);
    --hover-shadow: 0 20px 40px rgba(15, 37, 61, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-main);
}

body {
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 14px rgba(15, 37, 61, 0.07);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-img {
    height: 46px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    background: var(--primary-dark);
    border-radius: 8px;
    padding: 12px 0;
    width: 220px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 400;
}

.dropdown-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
    padding-left: 24px;
}

.cta-btn {
    background: var(--accent);
    color: var(--primary-dark);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}

.cta-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 168, 67, 0.4);
}

/* Hamburger menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--text-light);
    overflow: hidden;
    padding: 60px 0;
    min-height: auto;
    display: flex;
    align-items: center;
}

.hero-slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, rgba(255,255,255,0.03) 0%, transparent 60%),
                radial-gradient(ellipse 80% 60% at 70% 50%, rgba(44, 82, 130, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
}

.hero-content h1 {
    font-size: 2.9rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-content h1 span {
    color: var(--accent);
    background: linear-gradient(120deg, var(--accent) 0%, #FFF5CC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 24px;
}

.hero-badge {
    background: rgba(212, 168, 67, 0.15);
    color: var(--accent);
    border: 1px solid rgba(212, 168, 67, 0.3);
    padding: 6px 16px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Calculator Section (Interactive) */
.calc-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    padding: 20px 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.calc-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-light);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 8px;
}

.calc-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.form-group input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.12);
}

.calc-result {
    margin-top: 4px;
    background: rgba(212, 168, 67, 0.15);
    border: 1px solid rgba(212, 168, 67, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    text-align: center;
}

.calc-result-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}

.calc-result-lbl {
    font-size: 0.78rem;
    opacity: 0.8;
}

/* ── KM Car Slider ──────────────────────────────────── */
.km-group { margin-bottom: 2px; }

.km-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
}

.km-val-badge {
    background: rgba(212, 168, 67, 0.18);
    border: 1px solid rgba(212, 168, 67, 0.45);
    color: var(--accent);
    font-weight: 700;
    padding: 2px 11px;
    border-radius: 20px;
    transition: transform 0.12s ease, background 0.12s ease;
    display: inline-block;
}

.km-val-badge.pop {
    transform: scale(1.2);
    background: rgba(212, 168, 67, 0.35);
}

.km-road-wrap {
    position: relative;
    height: 52px;
}

.km-road {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 13px;
    background: linear-gradient(180deg, #1d3045 0%, #0e1a28 100%);
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.km-road-dash {
    position: absolute;
    top: 4px;
    left: -30px;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.55) 0 14px,
        transparent 14px 26px
    );
    animation: roadScroll 0.42s linear infinite;
    animation-play-state: paused;
}

.km-road-dash.running {
    animation-play-state: running;
}

@keyframes roadScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-26px); }
}

/* Car wrapper */
.km-car-wrap {
    position: absolute;
    bottom: 11px;
    left: calc(var(--car-pos, 0.192) * (100% - 60px));
    width: 60px;
    transition: left 0.1s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 2;
}

.km-car-wrap.driving {
    animation: carBounce 0.24s ease-in-out infinite;
}

@keyframes carBounce {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    30%       { transform: translateY(-2.5px) rotate(-0.4deg); }
    70%       { transform: translateY(1px) rotate(0.4deg); }
}

.km-car-svg {
    width: 60px;
    height: auto;
    display: block;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.6));
}

/* Wheel spin */
.km-car-wrap.driving .wheel-inner {
    animation: wheelSpin 0.32s linear infinite;
    transform-box: fill-box;
    transform-origin: center;
}

@keyframes wheelSpin {
    to { transform: rotate(360deg); }
}

/* Exhaust puffs */
.km-exhaust {
    position: absolute;
    left: -4px;
    bottom: 8px;
    pointer-events: none;
}

.km-exhaust .puff {
    position: absolute;
    width: 7px;
    height: 7px;
    background: rgba(180, 195, 210, 0.8);
    border-radius: 50%;
    opacity: 0;
    left: 0;
    bottom: 0;
}

.km-car-wrap.driving .puff:nth-child(1) { animation: exhaustPuff 0.68s ease-out 0s infinite; }
.km-car-wrap.driving .puff:nth-child(2) { animation: exhaustPuff 0.68s ease-out 0.23s infinite; }
.km-car-wrap.driving .puff:nth-child(3) { animation: exhaustPuff 0.68s ease-out 0.46s infinite; }

@keyframes exhaustPuff {
    0%   { transform: translate(0, 0) scale(0.5); opacity: 0.9; }
    100% { transform: translate(-22px, -16px) scale(2.5); opacity: 0; }
}

/* Speed lines */
.km-speed-lines {
    position: absolute;
    top: 50%;
    right: calc(100% + 5px);
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
}

.km-car-wrap.driving .km-speed-lines {
    opacity: 1;
}

.km-speed-lines span {
    display: block;
    height: 2px;
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.5);
    margin: 4px 0;
    animation: speedLine 0.38s ease-out infinite;
}

.km-speed-lines span:nth-child(1) { width: 22px; animation-delay: 0s; }
.km-speed-lines span:nth-child(2) { width: 13px; animation-delay: 0.1s; }
.km-speed-lines span:nth-child(3) { width: 17px; animation-delay: 0.05s; }

@keyframes speedLine {
    from { transform: translateX(0); opacity: 0.7; }
    to   { transform: translateX(-14px); opacity: 0; }
}

/* Range slider (invisible overlay) */
.km-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: grab;
    z-index: 10;
    margin: 0;
}

.km-slider:active { cursor: grabbing; }

/* 3-column form row */
.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .form-row-3 {
        grid-template-columns: 1fr 1fr;
    }
}

/* Sections */
.section {
    padding: 90px 0;
}

.section-alt {
    background-color: var(--bg-alt);
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 50px;
}

.section-subtitle {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
}

/* Video Section */
.video-section {
    background: linear-gradient(160deg, var(--primary-dark) 0%, #1e4a72 100%);
    color: var(--text-light);
}

.video-section .section-title {
    color: var(--text-light);
}

.video-section .section-desc {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 16px auto 0;
    line-height: 1.7;
}

.video-layout {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 52px;
    align-items: start;
}

.video-embed-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-embed-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-points {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding-top: 6px;
}

.video-point {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.video-point-icon {
    width: 46px;
    min-width: 46px;
    height: 46px;
    border-radius: 10px;
    background: rgba(212, 168, 67, 0.12);
    border: 1px solid rgba(212, 168, 67, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.video-point h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.video-point p {
    font-size: 0.87rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
    margin: 0;
}

.video-cta {
    text-align: center;
    margin-top: 54px;
}

/* Video Slider */
.video-slider {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

.video-slider-viewport {
    overflow: hidden;
    border-radius: var(--border-radius);
}

.video-slider-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.video-slide {
    flex: 0 0 100%;
    min-width: 0;
}

.video-slide-title {
    text-align: center;
    margin: 16px 0 0;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    letter-spacing: 0.2px;
}

.slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
    padding: 0;
}

.slider-btn:hover {
    background: rgba(212, 168, 67, 0.18);
    border-color: rgba(212, 168, 67, 0.55);
}

.slider-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.slider-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

@media (max-width: 900px) {
    .video-layout {
        grid-template-columns: 1fr;
    }
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-main);
    border-radius: var(--border-radius);
    padding: 36px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: transparent;
}

.service-card:hover::before {
    background: var(--accent);
    width: 8px;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(27, 58, 92, 0.05);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--text-light);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    flex-shrink: 0;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* ── Map Location Cards ─────────────────────────────────── */
.map-city-group {
    margin-bottom: 48px;
}

.map-city-group:last-child {
    margin-bottom: 0;
}

.map-city-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border-color);
}

.map-city-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.map-city-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: white;
    background: var(--primary);
    padding: 3px 10px;
    border-radius: 20px;
}

.map-location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.map-card {
    background: var(--bg-main);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.map-card:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-3px);
}

.map-card-frame {
    width: 100%;
    height: 200px;
    border: none;
    display: block;
    filter: contrast(1.05) saturate(0.8);
}

.map-card-body {
    padding: 16px 20px 20px;
}

.map-card-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(27, 58, 92, 0.07);
    border-radius: 6px;
    padding: 4px 10px;
    margin-bottom: 10px;
}

.map-card-type svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    flex-shrink: 0;
}

.map-card-address {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
    line-height: 1.4;
}

.map-card-tel {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    min-height: 18px;
}

.map-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    border: 1.5px solid rgba(27, 58, 92, 0.25);
    border-radius: 8px;
    padding: 8px 14px;
    transition: var(--transition);
}

.map-card-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.map-card-link svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .map-location-grid {
        grid-template-columns: 1fr;
    }
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* FAQ Accordion */
.faq-wrap {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.faq-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1.1rem;
    user-select: none;
    transition: var(--transition);
}

.faq-header:hover {
    background: rgba(27, 58, 92, 0.02);
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--accent);
    transition: var(--transition);
}

.faq-body {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.faq-item.active .faq-body {
    padding-bottom: 20px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active {
    border-color: var(--primary-light);
    box-shadow: var(--card-shadow);
}

/* Location Card Grid */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.location-card {
    background: var(--bg-main);
    border-radius: var(--border-radius);
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    position: relative;
    transition: var(--transition);
}

.location-card:hover {
    box-shadow: var(--hover-shadow);
}

.location-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--primary);
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.location-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 24px;
}

.location-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.location-info-icon {
    width: 38px;
    min-width: 38px;
    height: 38px;
    border-radius: 9px;
    background: rgba(27, 58, 92, 0.06);
    border: 1px solid rgba(27, 58, 92, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.location-info-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    flex-shrink: 0;
}

.location-info-text h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.location-info-text p {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Subpage Hero */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--text-light);
    padding: 60px 0;
    position: relative;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs span.current {
    color: var(--accent);
}

/* Empresa visual styles */
.empresa-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.empresa-content h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 20px;
}

.empresa-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.empresa-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--bg-alt);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-lbl {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* Installations Gallery & Category Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    border-radius: 30px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(27, 58, 92, 0.2);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.gallery-card {
    background: var(--bg-main);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.gallery-img-container {
    height: 220px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 3rem;
    position: relative;
}

.gallery-img-container svg {
    width: 64px;
    height: 64px;
    fill: currentColor;
}

.gallery-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.gallery-info {
    padding: 20px;
}

.gallery-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.gallery-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Products Layout */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.product-card {
    background: var(--bg-main);
    border-radius: var(--border-radius);
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    align-items: center;
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--hover-shadow);
}

.product-graphic {
    height: 250px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.product-graphic svg {
    width: 80px;
    height: 80px;
}

.product-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.product-badge {
    background: rgba(27, 58, 92, 0.08);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 16px;
}

.product-info p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1rem;
}

.tech-spec {
    background: var(--bg-alt);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent);
}

.tech-spec h5 {
    font-size: 0.85rem;
    color: var(--primary-dark);
    text-transform: uppercase;
    margin-bottom: 6px;
    font-weight: 700;
}

.tech-spec p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* Contact Page Styles */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-form-wrap {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    border-radius: var(--border-radius);
    padding: 40px;
}

.contact-form-wrap h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-alt);
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    border-color: var(--primary);
    background: var(--bg-main);
    box-shadow: 0 0 0 4px rgba(27, 58, 92, 0.05);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.social-icon:hover {
    background: var(--accent);
    transform: scale(1.1);
}

.social-icon.whatsapp {
    background: #25D366;
}

.social-icon.facebook {
    background: #1877F2;
}

.social-icon.instagram {
    background: #E1306C;
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.review-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--card-shadow);
}

.review-stars {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 12px;
}

.review-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 16px;
}

.review-author {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px 0;
    border-top: 4px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.footer-col p {
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.7;
}

.footer-col p span {
    color: var(--text-light);
    font-weight: 500;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.nav-link-admin {
    display: flex;
    align-items: center;
    opacity: 0.45;
    padding: 8px 4px;
}
.nav-link-admin:hover { opacity: 0.8; }
.nav-link-admin::after { display: none; }

.footer-admin-link {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color 0.18s;
}
.footer-admin-link:hover { color: rgba(255,255,255,0.7); }

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .empresa-layout, .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .product-card {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--primary-dark);
        padding: 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-item {
        width: 100%;
    }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        width: 100%;
        padding-left: 20px;
        background: rgba(0, 0, 0, 0.1);
        margin-top: 8px;
    }
    .hero {
        padding: 40px 0;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* --- Floating Customer Service Chat Widget --- */
.chat-widget-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Outfit', sans-serif;
}

.chat-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366; /* WhatsApp Green */
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    position: relative;
}

.chat-trigger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.4;
    z-index: -1;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.3; }
    100% { transform: scale(1.4); opacity: 0; }
}

.chat-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.chat-trigger svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.chat-trigger .chat-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #FF3B30;
    color: #FFF;
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFF;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    height: 480px;
    background: var(--bg-main);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(15, 37, 61, 0.2);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
}

.chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-light);
    border-bottom: 2px solid var(--accent);
}

.chat-agent-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.chat-agent-details h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.chat-agent-details span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-agent-details span::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #10B981; /* Online green */
    border-radius: 50%;
}

.chat-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.chat-close-btn:hover {
    color: var(--accent);
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: var(--bg-alt);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Custom scrollbar for chat */
.chat-body::-webkit-scrollbar {
    width: 6px;
}
.chat-body::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.02);
}
.chat-body::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
}

.chat-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-msg.agent {
    background: var(--bg-main);
    color: var(--text-dark);
    align-self: flex-start;
    border-top-left-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
}

.chat-msg.user {
    background: var(--primary);
    color: var(--text-light);
    align-self: flex-end;
    border-top-right-radius: 2px;
    box-shadow: 0 4px 12px rgba(27, 58, 92, 0.15);
}

.chat-msg-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-align: right;
    display: block;
}

.chat-msg.user .chat-msg-time {
    color: rgba(255, 255, 255, 0.6);
}

.chat-options-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: flex-start;
    width: 100%;
}

.chat-option-btn {
    background: var(--bg-main);
    border: 1px solid var(--primary-light);
    color: var(--primary);
    padding: 8px 14px;
    border-radius: 30px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    width: fit-content;
}

.chat-option-btn:hover {
    background: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
    transform: translateX(4px);
}

.chat-msg-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #FFF;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.chat-msg-whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.chat-footer {
    padding: 12px 16px;
    background: var(--bg-main);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    background: var(--bg-alt);
    transition: var(--transition);
}

.chat-input:focus {
    border-color: var(--primary);
    background: var(--bg-main);
}

.chat-send-btn {
    background: var(--primary);
    color: var(--text-light);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.chat-send-btn:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

@media (max-width: 480px) {
    .chat-widget-wrapper {
        bottom: 20px;
        right: 20px;
    }
    .chat-window {
        width: calc(100vw - 40px);
        height: calc(100vh - 120px);
        bottom: 70px;
    }
}

/* ── Google Reviews Slider ───────────────────────────────── */
.reviews-viewport {
    overflow: hidden;
}
.reviews-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.reviews-page {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 4px 2px 12px;
}
.reviews-page .review-card {
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}
.reviews-page .review-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
    border-color: transparent;
}
.reviews-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 36px;
    padding: 16px 28px;
    background: var(--bg-main);
    border-radius: 50px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.reviews-score {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}
.reviews-score-right {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.reviews-stars-big {
    color: #FBBC04;
    font-size: 1.1rem;
    letter-spacing: 1px;
}
.reviews-count-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.reviews-google-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-left: 16px;
    border-left: 1px solid var(--border-color);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
}
.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}
.review-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-dark);
    line-height: 1.2;
}
.review-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.reviews-page .review-stars {
    margin-bottom: 12px;
}
.reviews-page .review-text {
    font-style: normal;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 0;
}
.review-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    margin-top: 14px;
    font-size: 0.72rem;
    color: #9CA3AF;
}
.reviews-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}
.reviews-nav .slider-btn {
    border-color: rgba(27, 58, 92, 0.25);
    background: rgba(27, 58, 92, 0.06);
    color: var(--primary);
}
.reviews-nav .slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.reviews-nav .slider-dot {
    background: rgba(27, 58, 92, 0.2);
}
.reviews-nav .slider-dot.active {
    background: var(--primary);
}
@media (max-width: 900px) {
    .reviews-page { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .reviews-page { grid-template-columns: 1fr; }
    .reviews-summary { flex-wrap: wrap; gap: 12px; padding: 14px 20px; }
}

/* ── Scroll Effects ──────────────────────────────────────── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 9999;
    transition: width 0.08s linear;
    pointer-events: none;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-reveal].revealed {
    opacity: 1;
    transform: none;
}

.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 998;
    box-shadow: 0 4px 15px rgba(27, 58, 92, 0.3);
    padding: 0;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(27, 58, 92, 0.4);
}

header.scrolled {
    box-shadow: 0 2px 20px rgba(15, 37, 61, 0.13);
}

@media (max-width: 480px) {
    .back-to-top { bottom: 90px; right: 20px; }
}

