/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    overflow-x: hidden;
    margin: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-2);
    color: var(--text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========================================
   CSS VARIABLES (DARK THEME - DEFAULT)
   ======================================== */
:root {
    --bg: #0f1115;
    --bg-2: #161a20;
    --text: #eef0f3;
    --muted: #9aa1ab;
    --accent: #3da9fc;
    --line: #262b33;
}

/* ========================================
   LIGHT THEME VARIABLES
   ======================================== */
[data-theme="light"] {
    --bg: #ffffff;
    --bg-2: #f4f5f7;
    --text: #15171b;
    --muted: #5b6068;
    --accent: #1f7fd6;
    --line: #dde1e6;
}

[data-theme="light"] .icon-sun {
    display: none;
}

[data-theme="light"] .icon-moon {
    display: block;
}

/* ========================================
   HEADER
   ======================================== */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.wifix-logo {
    height: 36px;
    display: block;
    border-radius: 10px;
}

nav {
    display: flex;
    gap: 28px;
}

.links {
    color: var(--muted);
    text-decoration: none;
    font-size: .95rem;
    transition: color .15s ease;
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}

.links:hover,
.links:focus-visible {
    color: var(--accent);
}

.links:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ========================================
   LANGUAGE SELECTOR
   ======================================== */
.lang-select {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 5px 8px;
    font-size: .85rem;
    cursor: pointer;
    font-family: inherit;
}

.lang-select:hover {
    border-color: var(--accent);
}

/* Google Translate Widget */
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

#google_translate_element {
    font-size: .85rem;
}

.goog-te-gadget {
    color: var(--muted) !important;
    font-family: inherit !important;
}

.goog-te-gadget .goog-te-combo {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 4px 8px;
}

/* ========================================
   THEME TOGGLE BUTTON
   ======================================== */
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--bg-2);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.theme-toggle:hover {
    border-color: var(--accent);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-moon {
    display: none;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    flex-direction: column;
}

.main-placeholder {
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 48px;
    text-align: center;
    color: var(--muted);
    max-width: 600px;
}

.main-placeholder h1 {
    color: var(--text);
    margin: 0 0 8px;
    font-size: 1.4rem;
}

.main-placeholder p {
    margin: 0;
    font-size: .9rem;
}

.info-row {
    display: flex;
    gap: 24px;
    margin-top: 32px;
}

.info-box {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    transition: .25s ease;
}

.info-box:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
}

.info-box img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 20px;
}

/* ========================================
   SLIDESHOW
   ======================================== */
.slideshow {
    position: relative;
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16/7;
    margin: 50px auto;
    overflow: hidden;
    border-radius: 20px;
    background: var(--bg);
}

.slides {
    position: absolute;
    inset: 0;
    margin-top: 0;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, .1));
}

.slide-content {
    position: absolute;
    left: 50px;
    bottom: 45px;
    z-index: 3;
    max-width: 500px;
}

.slide-tag {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(61, 169, 252, .15);
    border: 1px solid rgba(61, 169, 252, .5);
    color: var(--accent);
    font-size: .75rem;
    font-style: italic;
}

.slide-content h2 {
    margin: 0 0 10px;
}

.slide-content p {
    margin: 0;
    color: #ddd;
}

/* Slideshow Navigation Arrows */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(15, 17, 21, .55);
    backdrop-filter: blur(6px);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .2s;
}

.arrow:hover {
    border-color: var(--accent);
    background: rgba(61, 169, 252, .15);
}

.arrow.prev {
    left: 20px;
}

.arrow.next {
    right: 20px;
}

.arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Slideshow Progress Dots */
.dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 5;
}

.dot {
    width: 34px;
    height: 4px;
    background: rgba(255, 255, 255, .2);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.fill {
    width: 0;
    height: 100%;
    background: var(--accent);
}

.dot.active .fill {
    animation: fillbar 5s linear forwards;
}

@keyframes fillbar {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--bg);
    color: var(--muted);
    padding: 48px 32px 24px;
    border-top: 1px solid var(--line);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.footer-brand .wifix-logo {
    height: 32px;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: .9rem;
    line-height: 1.6;
    margin: 0;
    max-width: 260px;
}

.footer-col h3 {
    color: var(--text);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0 0 14px;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col .links {
    font-size: .9rem;
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    margin: 0;
    font-size: .8rem;
    color: var(--muted);
}

.footer-map {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-map iframe {
    width: 600px;
    max-width: 350px;
    height: 220px;
    border: 0;
    border-radius: 12px;
}

/* Social Icons */
.socials {
    display: flex;
    gap: 14px;
}

.socials a {
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 50%;
    transition: border-color .15s ease, color .15s ease;
}

.socials a:hover,
.socials a:focus-visible {
    color: var(--accent);
    border-color: var(--accent);
}

.socials svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* ========================================
   WHATSAPP FLOATING BUTTON
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    transition: transform .2s ease, box-shadow .2s ease;
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    color: #fff;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(37, 211, 102, .5);
}

.whatsapp-float::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    opacity: .5;
    animation: pulse 2.2s ease-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: .5;
    }
    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 720px) {
    .info-row {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    
    header {
        flex-direction: column;
        gap: 12px;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .slideshow {
        aspect-ratio: 4/3;
        margin: 0;
    }
    
    .slide-content {
        left: 20px;
        right: 20px;
        bottom: 30px;
        max-width: none;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .slide-content p {
        font-size: .9rem;
    }
    
    .footer-map iframe {
        height: 250px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col,
    .footer-brand {
        align-items: center;
    }
}

@media (max-width: 600px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 18px;
        right: 18px;
    }
    
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}