/* =================================
   CURSOR-STYLE DESIGN SYSTEM
   Delone Tech — Dark/Light Mode
   ================================= */

/* =================================
   SKIP TO MAIN CONTENT
   ================================= */
.skip-to-main {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 10000;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: var(--btn-primary-text);
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 0.5rem 0;
    transition: top 0.2s ease;
}

.skip-to-main:focus {
    top: 0;
    outline: 3px solid var(--accent-hover);
    outline-offset: 2px;
}

/* =================================
   VARIABLES — DARK MODE (default)
   ================================= */
:root {
    /* Backgrounds */
    --bg-primary: #1a1a16;
    --bg-secondary: #222220;
    --bg-card: #2a2a24;
    --bg-elevated: #32322c;
    --bg-nav: rgba(26, 26, 22, 0.85);

    /* Text */
    --text-primary: #e8e8e3;
    --text-secondary: #8a8a80;
    --text-tertiary: #5a5a52;

    /* Borders */
    --border-color: #3a3a34;
    --border-subtle: #2a2a24;

    /* Accent */
    --accent: #c46d28;
    --accent-hover: #d4802e;

    /* Buttons */
    --btn-primary-bg: #e8e8e3;
    --btn-primary-text: #1a1a16;
    --btn-primary-hover-bg: #ffffff;
    --btn-secondary-bg: transparent;
    --btn-secondary-text: #e8e8e3;
    --btn-secondary-border: #4a4a44;
    --btn-secondary-hover-bg: rgba(232, 232, 227, 0.08);

    /* Form */
    --input-bg: #222220;
    --bg-input: #222220;
    --input-border: #3a3a34;
    --input-focus-border: #5a5a52;
    --input-text: #e8e8e3;
    --input-placeholder: #5a5a52;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.6);

    /* Status */
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-error: #ef4444;

    /* Logo filter for dark bg */
    --logo-filter: brightness(0) invert(1);

    /* Misc */
    --nav-height: 64px;
    --max-width: 1200px;
    --transition: 0.2s ease;
}

/* =================================
   VARIABLES — LIGHT MODE
   ================================= */
[data-theme="light"] {
    --bg-primary: #f5f5f0;
    --bg-secondary: #eae8e1;
    --bg-card: #ffffff;
    --bg-elevated: #ffffff;
    --bg-nav: rgba(245, 245, 240, 0.85);

    --text-primary: #1a1a16;
    --text-secondary: #6a6a60;
    --text-tertiary: #9a9a90;

    --border-color: #d5d3cc;
    --border-subtle: #e5e3dc;

    --accent: #c46d28;
    --accent-hover: #b05e20;

    --btn-primary-bg: #1a1a16;
    --btn-primary-text: #f5f5f0;
    --btn-primary-hover-bg: #2a2a26;
    --btn-secondary-bg: transparent;
    --btn-secondary-text: #1a1a16;
    --btn-secondary-border: #d5d3cc;
    --btn-secondary-hover-bg: rgba(26, 26, 22, 0.05);

    --input-bg: #ffffff;
    --bg-input: #ffffff;
    --input-border: #d5d3cc;
    --input-focus-border: #9a9a90;
    --input-text: #1a1a16;
    --input-placeholder: #9a9a90;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.12);

    --color-success-rgb: 34, 197, 94;
    --color-warning-rgb: 245, 158, 11;
    --color-error-rgb: 239, 68, 68;
    --accent-rgb: 196, 109, 40;
    --bg-section: #f7fafc;
    --text-muted: #9a9a90;

    --logo-filter: none;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* =================================
   HEADER / NAV — Cursor style
   ================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease, height 0.3s ease;
}

.logo-icon {
    display: block;
}

.logo-icon-light {
    display: none;
}

[data-theme="light"] .logo-icon {
    display: none;
}

[data-theme="light"] .logo-icon-light {
    display: block;
    filter: brightness(0);
    height: 48px;
}

.logo-text {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.logo-text-primary {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo-text-secondary {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    gap: 0;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: color var(--transition), background var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a.active {
    color: var(--text-primary);
}

.nav-cta {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition);
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--btn-primary-hover-bg);
    transform: translateY(-1px);
}

.nav-login {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    transition: color var(--transition), border-color var(--transition);
    white-space: nowrap;
}

.nav-login:hover {
    color: var(--text-primary);
    border-color: var(--text-tertiary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav-actions .theme-toggle {
    margin-left: 0;
}

/* User Menu Dropdown */
.nav-user-menu {
    position: relative;
}

.nav-user-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 0.375rem 0.75rem;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-primary);
}

.nav-user-button:hover {
    border-color: var(--text-tertiary);
    background: var(--bg-secondary);
}

.nav-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
}

.nav-user-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
}

.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
    z-index: 1000;
}

.nav-user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.nav-user-avatar-large {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.nav-user-details {
    flex: 1;
    min-width: 0;
}

.nav-user-dropdown-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.nav-user-dropdown-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.nav-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all var(--transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.nav-user-dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.nav-user-dropdown-item i {
    width: 16px;
    text-align: center;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

/* =================================
   BREADCRUMBS
   ================================= */
.breadcrumbs {
    padding: 1rem 2rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    margin-top: var(--nav-height);
}

.breadcrumbs-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}

.breadcrumbs-list li {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
}

.breadcrumbs-list li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--text-tertiary);
}

.breadcrumbs-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
}

.breadcrumbs-list a:hover {
    color: var(--text-primary);
}

.breadcrumbs-list li[aria-current="page"] {
    color: var(--text-primary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .breadcrumbs {
        padding: 0.75rem 1rem;
    }
    
    .breadcrumbs-list {
        font-size: 0.8125rem;
    }
}

/* =================================
   SCROLL TO TOP BUTTON
   ================================= */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    font-size: 1rem;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--btn-primary-hover-bg);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 2.75rem;
        height: 2.75rem;
        font-size: 0.875rem;
    }
}

/* =================================
   SECTION BASE
   ================================= */
.section {
    padding: 0;
    border-radius: 12px;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem;
}

.section-badge {
    display: inline-block;
    color: var(--text-tertiary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* =================================
   FOCUS VISIBLE
   ================================= */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* =================================
   BUTTONS — Cursor style
   ================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--btn-primary-hover-bg);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-primary:disabled,
.btn-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

.btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border: 1px solid var(--btn-secondary-border);
}

.btn-secondary:hover {
    background: var(--btn-secondary-hover-bg);
    border-color: var(--text-tertiary);
    transform: translateY(-1px);
}

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

.btn-full {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
}

/* =================================
   CARDS — Cursor style
   ================================= */
.card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.card:hover {
    border-color: var(--text-tertiary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.icon i {
    font-size: 1.25rem;
}

/* =================================
   FOOTER — Cursor style
   ================================= */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand .logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.footer-brand .logo-icon {
    display: block;
}

.footer-brand .logo-icon-light {
    display: none;
}

[data-theme="light"] .footer-brand .logo-icon {
    display: none;
}

[data-theme="light"] .footer-brand .logo-icon-light {
    display: block;
    filter: brightness(0);
}

.footer-brand .logo-text {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-brand .logo-text-primary {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.footer-brand .logo-text-secondary {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-title {
    color: var(--text-tertiary);
    font-weight: 500;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--text-secondary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 0.8125rem;
    margin: 0;
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
}

.footer-legal-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
}

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

.footer-legal-links span {
    color: var(--text-tertiary);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: color var(--transition), background-color var(--transition), border-color var(--transition);
}

.footer-social-link:hover {
    color: var(--accent);
    background: var(--bg-primary);
    border-color: var(--accent);
}

.footer-social-link i {
    font-size: 1.125rem;
}

/* =================================
   THEME TOGGLE — Cursor style
   ================================= */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 0.25rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.theme-toggle button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    border-radius: 9999px;
    cursor: pointer;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    transition: all var(--transition);
    padding: 0;
}

.theme-toggle button:hover {
    color: var(--text-primary);
}

.theme-toggle button.active {
    background: var(--bg-elevated);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.theme-toggle button svg {
    width: 1rem;
    height: 1rem;
}

/* =================================
   ANIMATIONS
   ================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-left {
    opacity: 0;
    transform: translateX(-24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fade-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-fade-right {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fade-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-scale.animated {
    opacity: 1;
    transform: scale(1);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.scroll-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s ease;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* =================================
   ACCESSIBILITY — FOCUS STATES
   ================================= */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.nav-cta:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.nav-links a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Form focus */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px rgba(196, 109, 40, 0.15);
    outline: none;
}

/* =================================
   TESTIMONIALS
   ================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 3.5rem;
    color: var(--border-color);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    border-color: var(--text-tertiary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-stars i {
    color: var(--accent);
    font-size: 0.875rem;
}

.testimonial-text,
.testimonial-content {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.testimonial-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.testimonial-role {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.testimonial-info strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
}

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

/* =================================
   WHATSAPP FLOATING BUTTON
   ================================= */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float i {
    color: white;
    font-size: 1.75rem;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:hover i {
    transform: rotate(-10deg) scale(1.05);
}

.whatsapp-tooltip {
    position: absolute;
    right: 64px;
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--bg-card);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 70px;
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35); }
    50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.5), 0 0 0 8px rgba(37, 211, 102, 0.08); }
    100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35); }
}

.whatsapp-float {
    animation: whatsappPulse 3s infinite;
}

.whatsapp-float:hover {
    animation: none;
}

/* =================================
   FLASH MESSAGES
   ================================= */
.flash-message {
    padding: 0.875rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.flash-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.flash-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* =================================
   UTILITY: HIGHLIGHT / CHECK
   ================================= */
.highlight {
    color: var(--accent);
}

.check {
    color: var(--color-success);
    margin-right: 0.5rem;
    font-weight: 600;
}

/* =================================
   RESPONSIVE — SMALL LAPTOP (solo ≤1200px: tipografía y padding reducidos)
   ================================= */
@media (max-width: 1200px) {
    body {
        font-size: 0.9375rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 3.5vw, 2.25rem);
        margin-bottom: 0.75rem;
    }

    .section-subtitle {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
}

/* =================================
   RESPONSIVE — SMALL LAPTOP (menú hamburguesa desde 1024px)
   ================================= */
@media (max-width: 1024px) {
    .header-inner {
        padding: 0 1rem;
        justify-content: space-between;
    }

    .nav {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        z-index: 999;
        flex-direction: column;
        padding: 1.5rem;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        max-height: calc(100vh - var(--nav-height));
        overflow-y: auto;
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin-bottom: 1rem;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.875rem 1rem;
        width: 100%;
        border-radius: 0.5rem;
        font-size: 0.9375rem;
    }

    .nav-links a:hover {
        background: var(--bg-secondary);
    }

    .nav-actions {
        display: none !important;
    }

    .nav-cta,
    .nav-login {
        display: none !important;
    }

    .logo-img {
        height: 36px;
    }

    .logo-text-primary {
        font-size: 1.125rem;
    }

    .logo-text-secondary {
        font-size: 0.8125rem;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1001;
        margin-left: auto;
        order: 999;
    }
}

/* =================================
   RESPONSIVE — MOBILE (ajustes específicos < 768px)
   ================================= */
@media (max-width: 768px) {
    .logo-img {
        height: 32px;
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .footer-bottom-left {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-brand .logo-img {
        height: 32px;
    }

    .footer-brand .logo-text-primary {
        font-size: 1.125rem;
    }

    .footer-brand .logo-text-secondary {
        font-size: 0.8125rem;
    }

    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float i {
        font-size: 1.5rem;
    }

    .whatsapp-tooltip {
        display: none;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =================================
   LEGAL PAGES
   ================================= */
.legal-section {
    padding: 4rem 0;
    min-height: 60vh;
}

.legal-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.legal-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.legal-updated {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-content {
    line-height: 1.8;
    color: var(--text-primary);
}

.legal-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.legal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.legal-content a {
    color: var(--accent);
    text-decoration: underline;
    transition: color var(--transition);
}

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

.legal-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.875rem;
}

.legal-table th,
.legal-table td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

.legal-table th {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 600;
}

.legal-table td {
    color: var(--text-secondary);
    background: var(--bg-secondary);
}

.legal-table tr:nth-child(even) td {
    background: var(--bg-primary);
}

.legal-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-left: 4px solid var(--accent);
    border-radius: 0.5rem;
}

.legal-note p {
    margin-bottom: 0.75rem;
}

.legal-note ul {
    margin-top: 0.5rem;
}

/* =================================
   COOKIE BANNER
   ================================= */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    backdrop-filter: blur(2px);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    padding: 1.5rem;
    max-width: 100%;
}

.cookie-banner-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cookie-banner-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.cookie-banner-text p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.cookie-banner-links {
    margin-top: 0.5rem;
}

.cookie-banner-links a {
    color: var(--accent);
    text-decoration: underline;
    font-size: 0.875rem;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    flex: 1;
    min-width: 120px;
}

.cookie-btn-accept {
    background: var(--accent);
    color: var(--btn-primary-text);
}

.cookie-btn-accept:hover {
    background: var(--accent-hover);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.cookie-btn-reject:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.cookie-btn-configure {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.cookie-btn-configure:hover {
    background: var(--bg-card);
}

.cookie-btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.cookie-btn-secondary:hover {
    background: var(--bg-card);
}

/* Cookie Settings Panel */
.cookie-settings {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    z-index: 10000;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-settings-content {
    padding: 2rem;
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.cookie-settings-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.cookie-settings-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: color var(--transition);
}

.cookie-settings-close:hover {
    color: var(--text-primary);
}

.cookie-settings-body {
    margin-bottom: 1.5rem;
}

.cookie-category {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.cookie-category-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.cookie-category-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

/* Cookie Switch Toggle */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: var(--transition);
    border-radius: 26px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: var(--bg-card);
    transition: var(--transition);
    border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
    background-color: var(--accent);
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

.cookie-switch input:disabled + .cookie-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-settings-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
    }

    .cookie-banner-content {
        gap: 1rem;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-settings {
        width: 95%;
        max-height: 85vh;
    }

    .cookie-settings-content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .legal-section {
        padding: 2rem 0;
    }

    .legal-inner {
        padding: 0 1rem;
    }

    .legal-section h1 {
        font-size: 2rem;
    }

    .legal-content h2 {
        font-size: 1.5rem;
    }

    .legal-content h3 {
        font-size: 1.125rem;
    }
}

/* =================================
   REDUCED MOTION
   ================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .whatsapp-float {
        animation: none;
    }
}

/* =================================
   HIGH CONTRAST
   ================================= */
@media (prefers-contrast: high) {
    :root {
        --border-color: #444440;
    }

    .card,
    .testimonial-card {
        border-width: 2px;
    }

    .btn-secondary {
        border-width: 2px;
    }
}
