/* =====================================================
   DENTCOB — Clínica Dental Premium
   Design System: Swiss-Inspired Clean & Creative
   Primary: #0b56a1 | Accent: #00ff8b | Base: #FFFFFF
   ===================================================== */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* =====================================================
   CSS CUSTOM PROPERTIES
   ===================================================== */
:root {
    /* ── Primary Blue Scale ── */
    --primary-50: #e8f0f8;
    --primary-100: #c5d9ee;
    --primary-200: #9fc0e2;
    --primary-300: #78a6d5;
    --primary-400: #5b92cc;
    --primary-500: #0b56a1;
    --primary-600: #094a8b;
    --primary-700: #073d74;
    --primary-800: #05305d;
    --primary-900: #031e3d;

    /* ── Accent Green ── */
    --accent-400: #33ff9e;
    --accent-500: #00ff8b;
    --accent-600: #00d974;
    --accent-700: #00b35f;

    /* ── Backgrounds ── */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFB;
    --bg-tertiary: #F0F4F7;
    --bg-dark: #0A1628;
    --bg-dark-card: #111D32;

    /* ── Text ── */
    --text-primary: #0A1628;
    --text-secondary: #3A4A5C;
    --text-tertiary: #6B7B8D;
    --text-quaternary: #9AABB8;
    --text-on-dark: #FFFFFF;
    --text-on-dark-secondary: #B8C9DB;

    /* ── Semantic ── */
    --success: #22C55E;
    --info: #3B82F6;
    --warning: #F59E0B;
    --error: #EF4444;

    /* ── Shadows ── */
    --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.04);
    --shadow-md: 0 4px 12px rgba(10, 22, 40, 0.06);
    --shadow-lg: 0 8px 30px rgba(10, 22, 40, 0.08);
    --shadow-xl: 0 16px 50px rgba(10, 22, 40, 0.12);
    --shadow-glow: 0 0 40px rgba(0, 255, 139, 0.15);

    /* ── Radius ── */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* ── Spacing ── */
    --section-padding: 120px;
    --container-width: 1200px;

    /* ── Transitions ── */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-spring: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ── Selection ── */
::selection {
    background: var(--primary-500);
    color: #fff;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.h1-hero {
    font-size: clamp(2.75rem, 5.5vw, 4.75rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.h2-section {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
}

.h3-card {
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.3;
}

.body-large {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-500);
}

.label-blue {
    color: var(--primary-500);
}

/* ── Text accents ── */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--accent-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-accent {
    color: var(--accent-500);
}

.text-primary-color {
    color: var(--primary-500);
}

/* =====================================================
   LAYOUT
   ===================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-header .label {
    display: inline-block;
    margin-bottom: 16px;
}

.section-header .h2-section {
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-tertiary);
    line-height: 1.7;
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease-out-expo);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(11, 86, 161, 0.08);
    box-shadow: 0 4px 30px rgba(10, 22, 40, 0.06);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.navbar-logo img {
    height: 42px;
    width: auto;
}

.navbar-logo-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-500);
    letter-spacing: -0.02em;
}

.navbar-logo-text span {
    color: var(--accent-500);
}

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

.nav-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
    border-radius: 2px;
    transition: width 0.3s var(--ease-out-expo);
}

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

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

.nav-cta {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary-500);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(11, 86, 161, 0.25);
}

.nav-cta:hover {
    background: var(--primary-600);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(11, 86, 161, 0.35);
}

/* ── Mobile Menu Toggle ── */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    gap: 6px;
    z-index: 1001;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out-expo);
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ── Mobile Menu Overlay ── */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu .nav-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mobile-menu .nav-cta {
    font-size: 1.1rem;
    padding: 14px 36px;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
    padding-top: 80px;
}

/* ── Subtle grid background ── */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(11, 86, 161, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 86, 161, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 0;
}

/* ── Gradient orb behind hero ── */
.hero-gradient-orb {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 139, 0.08) 0%, rgba(11, 86, 161, 0.04) 50%, transparent 70%);
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}

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

/* ── Hero Content ── */
.hero-content {
    max-width: 580px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-tertiary);
    border: 1px solid rgba(11, 86, 161, 0.1);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    margin-bottom: 28px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-500);
    animation: fade-in-up 0.8s var(--ease-out-expo) forwards;
    opacity: 0;
}

.hero-badge .badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-500);
    animation: pulse-dot 2s ease infinite;
}

.hero-title {
    margin-bottom: 24px;
    animation: fade-in-up 0.8s var(--ease-out-expo) 0.1s forwards;
    opacity: 0;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-tertiary);
    margin-bottom: 40px;
    max-width: 480px;
    animation: fade-in-up 0.8s var(--ease-out-expo) 0.2s forwards;
    opacity: 0;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fade-in-up 0.8s var(--ease-out-expo) 0.35s forwards;
    opacity: 0;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 56px;
    padding-top: 36px;
    border-top: 1px solid var(--bg-tertiary);
    animation: fade-in-up 0.8s var(--ease-out-expo) 0.5s forwards;
    opacity: 0;
}

.hero-stat-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-500);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-number .accent {
    color: var(--accent-500);
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* ── Hero Visual ── */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fade-in-scale 1s var(--ease-out-expo) 0.3s forwards;
    opacity: 0;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 4/5;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Placeholder for hero image ── */
.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-quaternary);
    font-size: 0.875rem;
    font-weight: 500;
}

.image-placeholder svg {
    opacity: 0.3;
}

.image-placeholder .placeholder-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
}

/* ── Floating decoration elements ── */
.hero-float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(11, 86, 161, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.hero-float-card--1 {
    top: 10%;
    right: -30px;
    animation-delay: 0s;
}

.hero-float-card--2 {
    bottom: 15%;
    left: -30px;
    animation-delay: 2s;
}

.float-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.float-card-icon--blue {
    background: rgba(11, 86, 161, 0.1);
    color: var(--primary-500);
}

.float-card-icon--green {
    background: rgba(0, 255, 139, 0.12);
    color: var(--accent-600);
}

.float-card-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.float-card-text small {
    display: block;
    font-weight: 400;
    color: var(--text-tertiary);
    font-size: 0.72rem;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.35s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-500);
    color: #fff;
    box-shadow: 0 2px 16px rgba(11, 86, 161, 0.3);
}

.btn-primary:hover {
    background: var(--primary-600);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(11, 86, 161, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid rgba(11, 86, 161, 0.2);
}

.btn-outline:hover {
    border-color: var(--primary-500);
    color: var(--primary-500);
    background: rgba(11, 86, 161, 0.04);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent-500);
    color: var(--bg-dark);
    font-weight: 700;
    box-shadow: 0 2px 16px rgba(0, 255, 139, 0.25);
}

.btn-accent:hover {
    background: var(--accent-400);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(0, 255, 139, 0.35);
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(3px);
}

/* =====================================================
   SOCIAL PROOF / TRUST BAR
   ===================================================== */
.trust-bar {
    padding: 60px 0;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(11, 86, 161, 0.06);
    border-bottom: 1px solid rgba(11, 86, 161, 0.06);
}

.trust-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-tertiary);
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.trust-item:hover {
    opacity: 1;
}

.trust-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-500);
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: rgba(11, 86, 161, 0.1);
}

/* =====================================================
   SERVICES — FLIP CARDS
   ===================================================== */
.services {
    background: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ── Flip Card Container ── */
.service-card-flip {
    perspective: 1000px;
    aspect-ratio: 1 / 1;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

/* Desktop: hover triggers flip */
@media (hover: hover) {
    .service-card-flip:hover .service-card-inner {
        transform: rotateY(180deg);
    }
}

/* Mobile/touch: .flipped class triggers flip (via JS button) */
.service-card-flip.flipped .service-card-inner {
    transform: rotateY(180deg);
}

/* Fix: hide front-face elements when flipped (prevents bleed-through
   caused by backdrop-filter/z-index breaking backface-visibility in WebKit) */
.service-card-flip.flipped .flip-open-btn,
.service-card-flip.flipped .service-placeholder,
.service-card-flip.flipped .service-overlay {
    visibility: hidden;
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

/* ── Front Face ── */
.service-card-front {
    background: var(--bg-secondary);
    border: 1px solid rgba(11, 86, 161, 0.06);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.service-card-flip:hover .service-image {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            transparent 40%,
            rgba(10, 22, 40, 0.7) 85%,
            rgba(10, 22, 40, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
}

.service-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-500);
    margin-bottom: 8px;
}

.service-title-front {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

/* ── Service placeholder / icon overlay ── */
.service-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    position: relative;
}

/* When an image sibling exists, turn placeholder into a floating icon overlay */
.service-image~.service-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px;
    pointer-events: none;
    z-index: 2;
}

.service-image~.service-placeholder .service-placeholder-label {
    display: none;
}

.service-image~.service-placeholder .service-placeholder-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--primary-500);
}

.service-placeholder-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: rgba(11, 86, 161, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-500);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card-flip:hover .service-placeholder-icon {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(11, 86, 161, 0.15);
}

.service-placeholder-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-quaternary);
}

/* ── Back Face ── */
.service-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(145deg,
            rgba(11, 86, 161, 0.06) 0%,
            rgba(0, 255, 139, 0.03) 100%);
    border: 1px solid rgba(11, 86, 161, 0.1);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
}

.service-back-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(11, 86, 161, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--primary-500);
    flex-shrink: 0;
}

.service-back-icon svg {
    width: 20px;
    height: 20px;
}

.service-title-back {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.25;
}

.service-description {
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.feature-tag {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(11, 86, 161, 0.06);
    color: var(--primary-500);
    border: 1px solid rgba(11, 86, 161, 0.1);
}

/* ── Flip Toggle Buttons (+/✕) ── */
.flip-toggle-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.3s ease;
}

/* "+" button on front */
.flip-open-btn {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: var(--primary-500);
}

.flip-open-btn:hover {
    background: var(--primary-500);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(11, 86, 161, 0.35);
}

.flip-open-btn:active {
    transform: scale(0.95);
}

/* "✕" button on back */
.flip-close-btn {
    background: rgba(11, 86, 161, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(11, 86, 161, 0.15);
    color: var(--primary-500);
}

.flip-close-btn:hover {
    background: var(--primary-500);
    color: #fff;
    transform: scale(1.1);
}

.flip-close-btn:active {
    transform: scale(0.95);
}

/* Desktop: hide both buttons (hover handles flip) */
@media (min-width: 901px) and (hover: hover) {

    .flip-open-btn,
    .flip-close-btn {
        opacity: 0;
        pointer-events: none;
    }
}

/* =====================================================
   SHOWCASE / ABOUT SECTION
   ===================================================== */
.showcase {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    position: relative;
    overflow: hidden;
}

.showcase::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 139, 0.06) 0%, transparent 70%);
    top: -10%;
    left: -5%;
    pointer-events: none;
}

.showcase .section-header .h2-section {
    color: var(--text-on-dark);
}

.showcase .section-header p {
    color: var(--text-on-dark-secondary);
}

.showcase .label {
    color: var(--accent-500);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.showcase-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: 36px;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.showcase-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 255, 139, 0.04) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.showcase-card:hover {
    border-color: rgba(0, 255, 139, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.showcase-card:hover::before {
    opacity: 1;
}

.showcase-card-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.06);
    margin-bottom: 16px;
    line-height: 1;
}

.showcase-card h3 {
    color: var(--text-on-dark);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.showcase-card p {
    color: var(--text-on-dark-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.showcase-card .accent-line {
    width: 40px;
    height: 3px;
    background: var(--accent-500);
    border-radius: 3px;
    margin-top: 20px;
}

/* =====================================================
   STATS COUNTER
   ===================================================== */
.stats {
    padding: 80px 0;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(11, 86, 161, 0.06);
    border-bottom: 1px solid rgba(11, 86, 161, 0.06);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-item {
    text-align: center;
    padding: 24px;
}

.stat-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-500);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-number .suffix {
    color: var(--accent-500);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonials {
    background: var(--bg-primary);
}

/* ── Testimonials Carousel ── */
.testimonials-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonials-carousel {
    overflow: hidden;
    flex: 1;
    padding: 16px 4px;
    margin: -16px -4px;
}

.testimonials-track {
    display: flex;
    gap: 28px;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 8px 0;
}

.testimonials-track .testimonial-card {
    min-width: calc((100% - 56px) / 3);
    width: calc((100% - 56px) / 3);
    flex-shrink: 0;
}

.carousel-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(11, 86, 161, 0.15);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-500);
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 2;
}

.carousel-arrow:hover {
    background: var(--primary-500);
    color: #fff;
    border-color: var(--primary-500);
    box-shadow: 0 4px 20px rgba(11, 86, 161, 0.3);
    transform: scale(1.08);
}

.testimonial-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(11, 86, 161, 0.06);
    border-radius: var(--radius-xl);
    padding: 20px 24px;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(11, 86, 161, 0.12);
}

.testimonial-quote-mark {
    font-size: 2.25rem;
    color: var(--accent-500);
    font-family: serif;
    line-height: 1;
    margin-bottom: 2px;
    opacity: 0.6;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-style: italic;
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 6px;
    color: #F59E0B;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-author-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.testimonial-author-info span {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.about {
    background: var(--bg-primary);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-xl);
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
}

.about-badge-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(0, 255, 139, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-600);
}

.about-badge-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.about-badge-text small {
    display: block;
    font-weight: 400;
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

.about-content .label {
    margin-bottom: 16px;
    display: inline-block;
}

.about-content .h2-section {
    margin-bottom: 24px;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 28px;
    margin-bottom: 32px;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.about-feature-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 255, 139, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-600);
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
    padding: 100px 0;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(11, 86, 161, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 139, 0.08) 0%, transparent 70%);
    bottom: -10%;
    right: 10%;
    pointer-events: none;
}

.cta-inner {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
}

.cta-inner .h2-section {
    color: var(--text-on-dark);
    margin-bottom: 20px;
}

.cta-inner p {
    color: var(--text-on-dark-secondary);
    font-size: 1.15rem;
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-inner .label {
    margin-bottom: 16px;
    display: inline-block;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-btn-glow {
    animation: pulse-glow-blue 3s ease-in-out infinite;
}

/* =====================================================
   BOOKING / APPOINTMENT FORM
   ===================================================== */
.booking-section {
    background: var(--bg-secondary);
    position: relative;
    padding-bottom: 120px;
}

.booking-container {
    max-width: 800px;
    margin: 0 auto;
}

.booking-form {
    background: var(--bg-primary);
    border: 1px solid rgba(11, 86, 161, 0.08);
    border-radius: var(--radius-2xl);
    padding: 48px;
    box-shadow: var(--shadow-lg);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1.5px solid rgba(11, 86, 161, 0.1);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.form-input::placeholder {
    color: var(--text-quaternary);
}

.form-input:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(11, 86, 161, 0.08);
    background: var(--bg-primary);
}

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230b56a1' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 44px;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    max-height: 200px;
}

.booking-submit {
    width: 100%;
    padding: 18px 32px;
    font-size: 1.05rem;
    justify-content: center;
}

.booking-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.booking-status {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    animation: fade-in-up 0.4s ease;
}

.booking-status.success {
    background: rgba(0, 255, 139, 0.08);
    border: 1px solid rgba(0, 255, 139, 0.2);
    color: var(--accent-600);
}

.booking-status.error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.form-input[type="date"] {
    cursor: pointer;
}

.form-input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.form-input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

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

    .booking-form {
        padding: 28px 20px;
    }
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 80px 0 32px;
    color: var(--text-on-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand .navbar-logo-text {
    font-size: 1.75rem;
    margin-bottom: 16px;
    color: #fff;
}

.footer-brand .navbar-logo-text img {
    width: 60%;
    height: auto;
}

.footer-brand p {
    color: var(--text-on-dark-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 300px;
    margin-bottom: 24px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-on-dark-secondary);
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: var(--primary-500);
    border-color: var(--primary-500);
    color: #fff;
    transform: translateY(-2px);
}

.footer-column h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-on-dark);
    margin-bottom: 20px;
}

.footer-column a {
    display: block;
    font-size: 0.9rem;
    color: var(--text-on-dark-secondary);
    padding: 6px 0;
    transition: all 0.25s ease;
}

.footer-column a:hover {
    color: var(--accent-500);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-on-dark-secondary);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 0.85rem;
    color: var(--text-on-dark-secondary);
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--accent-500);
}

/* =====================================================
   PARTICLES
   ===================================================== */
.particles-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-500);
    border-radius: 50%;
    opacity: 0;
    animation: float-particle 20s infinite ease-in-out;
}

.particle:nth-child(odd) {
    background: var(--accent-500);
    width: 3px;
    height: 3px;
}

.particle:nth-child(3n) {
    width: 5px;
    height: 5px;
    opacity: 0.2;
}

/* =====================================================
   SCROLL ANIMATIONS
   ===================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

.reveal-delay-5 {
    transition-delay: 0.5s;
}

.reveal-delay-6 {
    transition-delay: 0.6s;
}

/* =====================================================
   KEYFRAMES
   ===================================================== */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-scale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-12px);
    }

    50% {
        transform: translateY(-6px);
    }

    75% {
        transform: translateY(-16px);
    }
}

@keyframes float-particle {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0;
    }

    10% {
        opacity: 0.4;
    }

    25% {
        transform: translate(80px, -80px);
        opacity: 0.6;
    }

    50% {
        transform: translate(-40px, -160px);
        opacity: 0.3;
    }

    75% {
        transform: translate(-80px, -80px);
        opacity: 0.5;
    }

    90% {
        opacity: 0.2;
    }
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 139, 0.4);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(0, 255, 139, 0);
    }
}

@keyframes pulse-glow-blue {

    0%,
    100% {
        box-shadow:
            0 2px 16px rgba(11, 86, 161, 0.3),
            0 0 40px rgba(11, 86, 161, 0.15);
    }

    50% {
        box-shadow:
            0 4px 28px rgba(11, 86, 161, 0.5),
            0 0 60px rgba(11, 86, 161, 0.25);
    }
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* ── Tablet ── */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        max-width: 600px;
        margin: 0 auto;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-image-wrapper {
        max-width: 380px;
        margin: 0 auto;
    }

    .hero-float-card--1 {
        right: 5%;
    }

    .hero-float-card--2 {
        left: 5%;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-track .testimonial-card {
        min-width: calc((100% - 28px) / 2);
        width: calc((100% - 28px) / 2);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Mobile ── */
@media (max-width: 767px) {
    :root {
        --section-padding: 60px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .h1-hero {
        font-size: 2.25rem;
    }

    .h2-section {
        font-size: 1.75rem;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .hero-float-card {
        display: none;
    }

    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .hero-stat-number {
        font-size: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card-flip {
        aspect-ratio: 1 / 1;
    }

    /* On mobile, flip cards toggle on click (handled in JS) */
    .service-card-flip:hover .service-card-inner {
        transform: none;
    }

    .service-card-flip.flipped .service-card-inner {
        transform: rotateY(180deg);
    }

    /* Hide back-face icon and close button on mobile */
    .service-back-icon {
        display: none;
    }

    .flip-close-btn {
        display: none;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .testimonials-track .testimonial-card {
        min-width: 100%;
        width: 100%;
        height: auto;
        min-height: auto;
        padding: 16px 20px;
        /* línea ~2158: padding más compacto */
        gap: 4px;
        /* línea ~2159: gap entre elementos flex */
    }

    .testimonial-quote-mark {
        margin-bottom: 0;
        /* línea ~2162: comillas pegadas al contenido */
        font-size: 2rem;
        /* línea ~2163: comillas ligeramente más pequeñas */
    }

    .testimonial-stars {
        margin-bottom: 2px;
        /* línea ~2167: estrellas más juntas al texto */
    }

    .testimonial-text {
        margin-bottom: 4px;
        /* línea ~2171: texto más pegado al autor */
        line-height: 1.5;
        /* línea ~2172: interlineado más compacto */
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
    }

    .carousel-arrow svg {
        width: 16px;
        height: 16px;
    }

    .about-features-list {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .trust-bar-inner {
        flex-direction: column;
        gap: 20px;
    }

    .trust-divider {
        display: none;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Reduce particles on mobile */
    .particle:nth-child(n+15) {
        display: none;
    }
}

/* ── Small mobile ── */
@media (max-width: 380px) {
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .btn {
        width: 100%;
    }
}

/* ── Service card back: mobile typography (≤473px) ── */
@media (max-width: 473px) {
    .service-card-back {
        padding: 24px;
    }

    .service-title-back {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .service-description {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 18px;
    }

    .feature-tag {
        font-size: 0.8rem;
        padding: 6px 14px;
    }

    .service-back-icon svg {
        width: 28px;
        height: 28px;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* =====================================================
   COOKIE CONSENT BANNER
   ===================================================== */
.cookie-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(10, 22, 40, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.cookie-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.cookie-banner {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: 0 -4px 40px rgba(10, 22, 40, 0.15), 0 0 0 1px rgba(11, 86, 161, 0.08);
    padding: 32px;
    max-width: 640px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: cookie-slide-up 0.5s var(--ease-out-expo) forwards;
}

@keyframes cookie-slide-up {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(11, 86, 161, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-500);
    flex-shrink: 0;
}

.cookie-banner-content h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cookie-banner-content p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.cookie-banner-links {
    font-size: 0.82rem !important;
    color: var(--text-quaternary) !important;
}

.cookie-banner-links a {
    color: var(--primary-500);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-banner-links a:hover {
    color: var(--primary-600);
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 160px;
    text-align: center;
}

.cookie-btn-accept {
    background: var(--primary-500);
    color: #fff;
    box-shadow: 0 2px 16px rgba(11, 86, 161, 0.3);
}

.cookie-btn-accept:hover {
    background: var(--primary-600);
    transform: translateY(-1px);
    box-shadow: 0 4px 24px rgba(11, 86, 161, 0.4);
}

.cookie-btn-reject {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid rgba(11, 86, 161, 0.1);
}

.cookie-btn-reject:hover {
    background: var(--bg-secondary);
    border-color: rgba(11, 86, 161, 0.2);
    color: var(--text-primary);
}

/* ── Cookie banner responsive ── */
@media (max-width: 600px) {
    .cookie-overlay {
        padding: 12px;
        align-items: flex-end;
    }

    .cookie-banner {
        padding: 24px 20px;
        gap: 16px;
        border-radius: var(--radius-lg);
    }

    .cookie-banner-content h3 {
        font-size: 1.05rem;
    }

    .cookie-banner-content p {
        font-size: 0.82rem;
    }

    .cookie-btn {
        font-size: 0.85rem;
        padding: 11px 20px;
        min-width: 0;
    }
}