/* ========================================
   KLIN360 GLOBAL - Reset, Variables, Nav, Footer
   Shared across all EN pages
   ======================================== */

/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* VARIABLES */
:root {
    --black: #000000;
    --grey-900: #1a1a1a;
    --grey-700: #404040;
    --grey-600: #525252;
    --grey-500: #737373;
    --grey-300: #d4d4d4;
    --grey-200: #e5e5e5;
    --grey-100: #f5f5f5;
    --white: #ffffff;
    --yellow: #FFC107;
    --yellow-dark: #FFA000;
    --green: #22C55E;
}

/* BASE */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--grey-900);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* TYPOGRAPHY */
h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--black); }
h3 { font-size: clamp(22px, 3vw, 32px); font-weight: 600; line-height: 1.3; color: var(--black); }
h4 { font-size: clamp(20px, 2.5vw, 24px); font-weight: 600; line-height: 1.4; color: var(--grey-900); }
h5 { font-size: clamp(16px, 2vw, 20px); font-weight: 600; line-height: 1.4; color: var(--grey-900); }

/* LAYOUT UTILITIES */
section { padding: clamp(60px, 10vw, 120px) 2rem; }
.container { max-width: 1200px; margin: 0 auto; }
.bg-white { background: var(--white); }
.bg-light { background: var(--grey-100); }
.bg-dark { background: var(--grey-900); color: var(--white); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5 { color: var(--white); }
.bg-dark p { color: rgba(255, 255, 255, 0.8); }
.bg-dark .section-label { color: var(--yellow); }
.bg-dark .section-subtitle { color: rgba(255, 255, 255, 0.8); }

/* SECTION HEADERS */
.section-header { max-width: 800px; margin: 0 auto 3rem; text-align: center; }
.section-label {
    font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--yellow-dark); margin-bottom: 1rem;
}
.section-subtitle {
    font-size: clamp(16px, 2vw, 19px); color: var(--grey-700);
    margin-top: 1rem; line-height: 1.7;
}

/* BUTTONS */
.btn {
    padding: 0.8rem 2rem; border-radius: 8px; font-size: 16px;
    font-weight: 600; text-decoration: none; transition: all 0.3s;
    display: inline-block; border: none; cursor: pointer;
}
.btn-primary {
    background: var(--yellow); color: var(--black);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}
.btn-primary:hover {
    background: var(--yellow-dark); transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.5);
}
.btn-secondary { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--black); }

/* ========================================
   NAVIGATION
   Desktop: horizontal links + lang
   Mobile ≤768px: hamburger + lang (outside)
   ======================================== */
nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

nav .nav-container {
    max-width: 1200px; margin: 0 auto;
    padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}

.logo img { height: 40px; width: auto; display: block; }

/* Desktop links */
.nav-menu-desktop { display: flex; align-items: center; }

.nav-links {
    display: flex; align-items: center; gap: 0.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--grey-700); text-decoration: none;
    font-size: 14px; font-weight: 500;
    padding: 0.5rem 0.8rem; border-radius: 6px;
    white-space: nowrap; transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--yellow-dark); }

/* Nav actions: lang + hamburger */
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Hamburger button - hidden on desktop */
.hamburger {
    display: none; /* shown via media query */
    width: 36px; height: 36px;
    background: none; border: none; cursor: pointer;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    padding: 6px; border-radius: 6px;
    transition: background 0.2s;
}
.hamburger:hover { background: rgba(0,0,0,0.05); }
.hamburger span {
    display: block; width: 20px; height: 2px;
    background: var(--grey-900); border-radius: 2px;
    transition: all 0.3s ease;
}
/* Hamburger → X animation */
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile dropdown menu */
.mobile-menu {
    display: none; /* toggled by JS */
    background: var(--white);
    border-top: 1px solid var(--grey-200);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.mobile-menu.open { display: block; animation: menuSlideDown 0.25s ease; }
@keyframes menuSlideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.mobile-menu ul { list-style: none; padding: 8px 16px; }
.mobile-menu li { border-bottom: 1px solid var(--grey-100); }
.mobile-menu li:last-child { border-bottom: none; }
.mobile-menu a {
    display: block; padding: 14px 8px;
    color: var(--grey-900); text-decoration: none;
    font-size: 16px; font-weight: 500;
    transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--yellow-dark); }
.mobile-menu a.active { color: var(--yellow-dark); font-weight: 600; }

/* SECONDARY NAV (anchor links) */
.nav-secondary {
    background: var(--grey-100);
    border-top: 1px solid var(--grey-200);
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}
nav.scrolled .nav-secondary { max-height: 50px; opacity: 1; }

.nav-secondary-container {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
    display: flex; justify-content: center;
}
.nav-secondary-links {
    display: flex; align-items: center; gap: 0.25rem;
    list-style: none;
    overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.nav-secondary-links::-webkit-scrollbar { display: none; }
.nav-secondary-links a {
    color: var(--grey-600); text-decoration: none;
    font-size: 13px; font-weight: 500;
    padding: 0.7rem 1rem; border-radius: 6px;
    white-space: nowrap; transition: all 0.3s;
}
.nav-secondary-links a:hover { color: var(--black); background: var(--grey-200); }

/* LANGUAGE DROPDOWN */
.lang-dropdown { position: relative; }
.lang-current {
    background: rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.1);
    border-radius: 6px; padding: 6px 10px; cursor: pointer;
    display: flex; align-items: center; gap: 6px;
    font-size: 16px; transition: all 0.3s;
}
.lang-current:hover { background: rgba(0,0,0,0.1); }
.lang-current .lang-arrow { font-size: 10px; transition: transform 0.3s; }
.lang-dropdown.open .lang-arrow { transform: rotate(180deg); }

.lang-menu {
    display: none; position: absolute; top: calc(100% + 8px); right: 0;
    background: #fff; border: 1px solid #e5e5e5; border-radius: 10px;
    padding: 6px; min-width: 180px; z-index: 1001;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.lang-dropdown.open .lang-menu { display: block; animation: langFadeIn 0.2s ease; }
@keyframes langFadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.lang-option {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; color: #404040; text-decoration: none;
    font-size: 13px; font-weight: 500; border-radius: 6px; transition: all 0.2s;
}
.lang-option:hover { background: #f5f5f5; color: #000; }
.lang-option.active { background: rgba(255,193,7,0.15); color: #FFA000; }
.lang-option .lang-flag { font-size: 16px; line-height: 1; }
.lang-option .lang-check { font-size: 11px; color: #FFA000; }

/* ========== MOBILE ≤768px ========== */
@media (max-width: 768px) {
    nav .nav-container { padding: 0.8rem 1rem; }
    .logo img { height: 32px; }

    /* Hide desktop links, show hamburger */
    .nav-menu-desktop { display: none; }
    .hamburger { display: flex; }

    .nav-secondary-container { padding: 0 1rem; }
    .nav-secondary-links a { font-size: 12px; padding: 0.6rem 0.8rem; }
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--black); color: var(--white);
    padding: clamp(60px, 10vw, 80px) 2rem clamp(30px, 5vw, 40px);
}

.footer-content {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem; margin-bottom: 3rem;
}

.footer-brand p { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.8; margin-bottom: 0.5rem; }

.footer-social { display: flex; gap: 1rem; margin-top: 1.5rem; }
.footer-social a {
    width: 40px; height: 40px; background: var(--grey-900);
    border-radius: 8px; display: flex; align-items: center;
    justify-content: center; color: var(--white); font-size: 16px;
    transition: all 0.3s; text-decoration: none;
}
.footer-social a:hover { background: var(--yellow); color: var(--black); transform: translateY(-3px); }

.footer-column h4 { color: var(--white); font-size: 16px; margin-bottom: 1.5rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a {
    color: rgba(255,255,255,0.7); text-decoration: none;
    font-size: 14px; transition: all 0.3s; display: inline-block;
}
.footer-links a:hover { color: var(--yellow); transform: translateX(5px); }

.footer-contact p { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.8; margin-bottom: 1rem; }
.footer-contact a { color: var(--yellow); text-decoration: none; }

.footer-copyright {
    margin-top: 3rem; padding-top: 2rem;
    border-top: 1px solid var(--grey-700);
    color: var(--grey-500); font-size: 14px; text-align: center;
}

@media (max-width: 968px) { .footer-content { grid-template-columns: 1fr 1fr; gap: 3rem; } }
@media (max-width: 640px) { .footer-content { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ========================================
   WHATSAPP FLOAT
   ======================================== */
.whatsapp-float {
    position: fixed; bottom: 30px; left: 30px;
    background: #25D366; color: white;
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; z-index: 999; cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s; text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6); }
.whatsapp-float img { width: 100%; height: 100%; display: block; border-radius: 50%; }

@media (max-width: 768px) { .whatsapp-float { bottom: 20px; left: 20px; width: 56px; height: 56px; } }

/* COOKIE BANNER */
.cookie-banner {
    position: fixed; bottom: 20px; left: 20px;
    max-width: 420px; background: #fff; color: #333;
    padding: 25px 30px; z-index: 99999;
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
    border-radius: 16px; display: none;
}
.cookie-banner p { margin: 0 0 15px; font-size: 14px; line-height: 1.6; }
.cookie-banner a { color: #000; font-weight: 600; text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; }
.cookie-accept {
    flex: 1; background: var(--yellow); color: #000; border: none;
    padding: 12px 20px; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 14px;
}
.cookie-reject {
    flex: 1; background: #fff; color: #333; border: 2px solid #333;
    padding: 12px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 14px;
}

/* RECAPTCHA BADGE HIDDEN */
.grecaptcha-badge { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }

/* MODAL */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000; opacity: 0; visibility: hidden;
    transition: all 0.3s ease; padding: 20px;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    background: var(--white); border-radius: 20px;
    max-width: 440px; width: 100%; padding: 40px 35px;
    text-align: center; box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    transform: scale(0.9) translateY(20px); transition: all 0.3s ease;
}
.modal-overlay.active .modal-content { transform: scale(1) translateY(0); }

.modal-icon {
    width: 80px; height: 80px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 25px; font-size: 40px;
}
.modal-icon.success { background: linear-gradient(135deg, var(--yellow), var(--yellow-dark)); color: var(--black); }
.modal-icon.error { background: #fee2e2; color: #dc2626; }

.modal-title { font-size: 24px; font-weight: 700; color: var(--black); margin-bottom: 10px; }
.modal-greeting { font-size: 16px; font-weight: 600; color: var(--grey-700); margin-bottom: 20px; }
.modal-message { font-size: 16px; color: var(--grey-700); line-height: 1.7; margin-bottom: 30px; }

.modal-buttons { display: flex; flex-direction: column; gap: 12px; }
.modal-btn {
    padding: 14px 28px; border-radius: 10px; font-size: 16px;
    font-weight: 600; cursor: pointer; transition: all 0.3s;
    text-decoration: none; display: inline-flex;
    align-items: center; justify-content: center; gap: 8px; border: none;
}
.modal-btn-whatsapp { background: #25D366; color: white; }
.modal-btn-whatsapp:hover { background: #20BA5A; transform: translateY(-2px); }
.modal-btn-primary { background: var(--yellow); color: var(--black); }
.modal-btn-primary:hover { background: var(--yellow-dark); transform: translateY(-2px); }
.modal-btn-secondary { background: var(--white); color: var(--grey-700); border: 2px solid var(--grey-300); }
.modal-btn-secondary:hover { border-color: var(--grey-500); background: var(--grey-100); }

@media (max-width: 480px) {
    .modal-content { padding: 30px 25px; }
    .modal-icon { width: 70px; height: 70px; font-size: 35px; }
    .modal-title { font-size: 22px; }
}