:root {
  /* Primitive Color Tokens */
  --color-white: rgba(255, 255, 255, 1);
  --color-black: rgba(0, 0, 0, 1);
  --color-cream-50: rgba(252, 252, 249, 1);
  --color-cream-100: rgba(255, 255, 253, 1);
  --color-gray-200: rgba(245, 245, 245, 1);
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 1);
  --color-slate-500: rgba(98, 108, 113, 1);
  --color-brown-600: rgba(94, 82, 64, 1);
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-slate-900: rgba(19, 52, 59, 1);
  --color-teal-300: rgba(50, 184, 198, 1);
  --color-teal-400: rgba(45, 166, 178, 1);
  --color-teal-500: rgba(33, 128, 141, 1);
  --color-teal-600: rgba(29, 116, 128, 1);
  --color-teal-700: rgba(26, 104, 115, 1);
  --color-teal-800: rgba(41, 150, 161, 1);
  --color-red-400: rgba(255, 84, 89, 1);
  --color-red-500: rgba(192, 21, 47, 1);
  --color-orange-400: rgba(230, 129, 97, 1);
  --color-orange-500: rgba(168, 75, 47, 1);

  /* RGB versions for opacity control */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  --color-slate-500-rgb: 98, 108, 113;
  --color-red-500-rgb: 192, 21, 47;
  --color-red-400-rgb: 255, 84, 89;
  --color-orange-500-rgb: 168, 75, 47;
  --color-orange-400-rgb: 230, 129, 97;

  /* Background color tokens (Light Mode) */
  --color-bg-1: rgba(59, 130, 246, 0.08);
  /* Light blue */
  --color-bg-2: rgba(245, 158, 11, 0.08);
  /* Light yellow */
  --color-bg-3: rgba(34, 197, 94, 0.08);
  /* Light green */
  --color-bg-4: rgba(239, 68, 68, 0.08);
  /* Light red */
  --color-bg-5: rgba(147, 51, 234, 0.08);
  /* Light purple */
  --color-bg-6: rgba(249, 115, 22, 0.08);
  /* Light orange */
  --color-bg-7: rgba(236, 72, 153, 0.08);
  /* Light pink */
  --color-bg-8: rgba(6, 182, 212, 0.08);
  /* Light cyan */

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: #f5dfb6;
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);

  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: 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='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: 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='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  /* Typography */
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
  :root {
    /* RGB versions for opacity control (Dark Mode) */
    --color-gray-400-rgb: 119, 124, 124;
    --color-teal-300-rgb: 50, 184, 198;
    --color-gray-300-rgb: 167, 169, 169;
    --color-gray-200-rgb: 245, 245, 245;

    /* Background color tokens (Dark Mode) */
    --color-bg-1: rgba(29, 78, 216, 0.15);
    /* Dark blue */
    --color-bg-2: rgba(180, 83, 9, 0.15);
    /* Dark yellow */
    --color-bg-3: rgba(21, 128, 61, 0.15);
    /* Dark green */
    --color-bg-4: rgba(185, 28, 28, 0.15);
    /* Dark red */
    --color-bg-5: rgba(107, 33, 168, 0.15);
    /* Dark purple */
    --color-bg-6: rgba(194, 65, 12, 0.15);
    /* Dark orange */
    --color-bg-7: rgba(190, 24, 93, 0.15);
    /* Dark pink */
    --color-bg-8: rgba(8, 145, 178, 0.15);
    /* Dark cyan */

    /* Semantic Color Tokens (Dark Mode) */
    --color-background: var(--color-charcoal-700);
    --color-surface: var(--color-charcoal-800);
    --color-text: var(--color-gray-200);
    --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
    --color-primary: var(--color-teal-300);
    --color-primary-hover: var(--color-teal-400);
    --color-primary-active: var(--color-teal-800);
    --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
    --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
    --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
    --color-border: rgba(var(--color-gray-400-rgb), 0.3);
    --color-error: var(--color-red-400);
    --color-success: var(--color-teal-300);
    --color-warning: var(--color-orange-400);
    --color-info: var(--color-gray-300);
    --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
    --color-btn-primary-text: var(--color-slate-900);
    --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
    --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --button-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

    /* Common style patterns - updated for dark mode */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: 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='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: 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='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    /* RGB versions for dark mode */
    --color-success-rgb: var(--color-teal-300-rgb);
    --color-error-rgb: var(--color-red-400-rgb);
    --color-warning-rgb: var(--color-orange-400-rgb);
    --color-info-rgb: var(--color-gray-300-rgb);
  }
}

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] {
  /* RGB versions for opacity control (dark mode) */
  --color-gray-400-rgb: 119, 124, 124;
  --color-teal-300-rgb: 50, 184, 198;
  --color-gray-300-rgb: 167, 169, 169;
  --color-gray-200-rgb: 245, 245, 245;

  /* Colorful background palette - Dark Mode */
  --color-bg-1: rgba(29, 78, 216, 0.15);
  /* Dark blue */
  --color-bg-2: rgba(180, 83, 9, 0.15);
  /* Dark yellow */
  --color-bg-3: rgba(21, 128, 61, 0.15);
  /* Dark green */
  --color-bg-4: rgba(185, 28, 28, 0.15);
  /* Dark red */
  --color-bg-5: rgba(107, 33, 168, 0.15);
  /* Dark purple */
  --color-bg-6: rgba(194, 65, 12, 0.15);
  /* Dark orange */
  --color-bg-7: rgba(190, 24, 93, 0.15);
  /* Dark pink */
  --color-bg-8: rgba(8, 145, 178, 0.15);
  /* Dark cyan */

  /* Semantic Color Tokens (Dark Mode) */
  --color-background: var(--color-charcoal-700);
  --color-surface: var(--color-charcoal-800);
  --color-text: var(--color-gray-200);
  --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
  --color-primary: var(--color-teal-300);
  --color-primary-hover: var(--color-teal-400);
  --color-primary-active: var(--color-teal-800);
  --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
  --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
  --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
  --color-border: rgba(var(--color-gray-400-rgb), 0.3);
  --color-error: var(--color-red-400);
  --color-success: var(--color-teal-300);
  --color-warning: var(--color-orange-400);
  --color-info: var(--color-gray-300);
  --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
  --color-btn-primary-text: var(--color-slate-900);
  --color-card-border: rgba(var(--color-gray-400-rgb), 0.15);
  --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
  --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

  /* Common style patterns - updated for dark mode */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: 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='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: 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='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for dark mode */
  --color-success-rgb: var(--color-teal-300-rgb);
  --color-error-rgb: var(--color-red-400-rgb);
  --color-warning-rgb: var(--color-orange-400-rgb);
  --color-info-rgb: var(--color-gray-300-rgb);
}

[data-color-scheme="light"] {
  /* RGB versions for opacity control (light mode) */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);

  /* RGB versions for light mode */
  --color-success-rgb: var(--color-teal-500-rgb);
  --color-error-rgb: var(--color-red-500-rgb);
  --color-warning-rgb: var(--color-orange-500-rgb);
  --color-info-rgb: var(--color-slate-500-rgb);
}

/* Base styles */
html {
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight);
}

h1 {
  font-size: var(--font-size-4xl);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-md);
}

p {
  margin: 0 0 var(--space-16) 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

a:hover {
  color: var(--color-primary-hover);
}

code,
pre {
  font-family: var(--font-family-mono);
  font-size: calc(var(--font-size-base) * 0.95);
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm);
}

code {
  padding: var(--space-1) var(--space-4);
}

pre {
  padding: var(--space-16);
  margin: var(--space-16) 0;
  overflow: auto;
  border: 1px solid var(--color-border);
}

pre code {
  background: none;
  padding: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  position: relative;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

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

.btn--primary:hover {
  background: var(--color-primary-hover);
}

.btn--primary:active {
  background: var(--color-primary-active);
}

.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: var(--color-secondary-hover);
}

.btn--secondary:active {
  background: var(--color-secondary-active);
}

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

.btn--outline:hover {
  background: var(--color-secondary);
}

.btn--sm {
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: var(--space-10) var(--space-20);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md);
}

.btn--full-width {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form elements */
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: #707f62;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

textarea.form-control {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
}

select.form-control {
  padding: var(--space-8) var(--space-12);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32);
}

/* Add a dark mode specific caret */
@media (prefers-color-scheme: dark) {
  select.form-control {
    background-image: var(--select-caret-dark);
  }
}

/* Also handle data-color-scheme */
[data-color-scheme="dark"] select.form-control {
  background-image: var(--select-caret-dark);
}

[data-color-scheme="light"] select.form-control {
  background-image: var(--select-caret-light);
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: var(--focus-outline);
}

.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-lg);
  color: #707f62;
}

.form-group {
  margin-bottom: var(--space-16);
}

/* Card component */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-standard);
}

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

.card__body {
  padding: var(--space-16);
}

.card__header,
.card__footer {
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-card-border-inner);
}

/* Status indicators - simplified with CSS variables */
.status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.status--success {
  background-color: rgba(var(--color-success-rgb, 33, 128, 141),
      var(--status-bg-opacity));
  color: var(--color-success);
  border: 1px solid rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}

.status--error {
  background-color: rgba(var(--color-error-rgb, 192, 21, 47),
      var(--status-bg-opacity));
  color: var(--color-error);
  border: 1px solid rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}

.status--warning {
  background-color: rgba(var(--color-warning-rgb, 168, 75, 47),
      var(--status-bg-opacity));
  color: var(--color-warning);
  border: 1px solid rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
  background-color: rgba(var(--color-info-rgb, 98, 108, 113),
      var(--status-bg-opacity));
  color: var(--color-info);
  border: 1px solid rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}

/* Container layout */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16);
  padding-left: var(--space-16);
}

@media (min-width: 640px) {
  .container {
    max-width: var(--container-sm);
  }
}

@media (min-width: 768px) {
  .container {
    max-width: var(--container-md);
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: var(--container-lg);
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: var(--container-xl);
  }
}

/* Utility classes */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

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

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: var(--space-4);
}

.gap-8 {
  gap: var(--space-8);
}

.gap-16 {
  gap: var(--space-16);
}

.m-0 {
  margin: 0;
}

.mt-8 {
  margin-top: var(--space-8);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.mx-8 {
  margin-left: var(--space-8);
  margin-right: var(--space-8);
}

.my-8 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.p-0 {
  padding: 0;
}

.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.px-8 {
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}

.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.px-16 {
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

.block {
  display: block;
}

.hidden {
  display: none;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

/* Dark mode specifics */
[data-color-scheme="dark"] .btn--outline {
  border: 1px solid var(--color-border-secondary);
}

@font-face {
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2') format('woff2');
}

/* END PERPLEXITY DESIGN SYSTEM */
/* Custom Color Palette Override */
:root {
  /* Custom Clocher brand colors */
  --clocher-green: #707f62;
  --clocher-cream: #fff6e6;
  --clocher-beige-gold: #f5dfb6;
  --clocher-beige-light: #f1e0c4;
  --clocher-green-dark: #868f75;
  --clocher-yellow-gold: #f5d486;

  /* Override design system colors */
  --color-primary: var(--clocher-green);
  --color-primary-hover: var(--clocher-green-dark);
  --color-primary-active: var(--clocher-green-dark);
  --color-background: var(--clocher-cream);
  --color-surface: var(--color-white);
  --color-secondary: var(--clocher-beige-light);
  --color-secondary-hover: var(--clocher-beige-gold);
  --color-accent: var(--clocher-yellow-gold);

  /* Typography overrides */
  --font-family-script: 'Dancing Script', cursive;
  --font-family-heading: 'Raleway', sans-serif;
  --font-family-subheading: 'Josefin Sans', sans-serif;
  --font-family-body: 'Poppins', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-body);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-16);
}

/* Logo Styles */
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  height: 60px;
}

.logo-image {
  height: 48px;
  /* Asegúrate que la imagen sea visible y no más grande que el header */
  width: auto;
  display: block;
  margin: 0;
}

.logo-legend {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.05;
}

.logo-clocher {
  font-size: 1.5rem;
  font-family: var(--font-family-heading, 'Poppins', sans-serif);
  color: var(--clocher-beige-gold, #b29e68);
  font-weight: 700;
  margin-bottom: 0px;
  letter-spacing: -1px;
  line-height: 1;
}

.logo-facial-care {
  font-size: 0.25rem;
  font-family: var(--font-family-heading, 'Poppins', sans-serif);
  color: var(--clocher-cream, #f1eadb);
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 1;
  margin-left: 10px;
}

@media (max-width: 600px) {
  .logo {
    gap: 7px;
  }

  .logo-image {
    height: 38px;
  }

  .logo-clocher {
    font-size: 1.06rem;
  }

  .logo-facial-care {
    font-size: 0.7rem;
  }
}

/* Nuevo: Estilo para la imagen del logo */
.logo-image {
  height: 50px;
  /* Altura del logo en header */
  width: auto;
  /* Mantiene proporción */
  max-width: 200px;
  /* Ancho máximo */
  object-fit: contain;
  /* Sin distorsión */
  cursor: pointer;
  /* Cursor de mano */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  /* Sombra elegante */
  transition: transform 0.3s ease;
  /* Efecto suave al hacer hover */
}

/* Efecto hover en la imagen */
.logo-image:hover {
  transform: scale(1.05);
  /* Crecer ligeramente al pasar cursor */
}

/* Logo en el footer (más pequeño) */
.footer .logo-image {
  height: 40px;
  max-width: 150px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

/* Logo en hero section (más grande) */
.hero .logo-image {
  height: 120px;
  max-width: 300px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Responsive: Tablets */
@media (max-width: 1024px) {
  .logo-image {
    height: 45px;
    max-width: 180px;
  }

  .hero .logo-image {
    height: 100px;
    max-width: 250px;
  }
}

/* Responsive: Móviles */
@media (max-width: 768px) {
  .logo-image {
    height: 40px;
    max-width: 150px;
  }

  .hero .logo-image {
    height: 80px;
    max-width: 200px;
  }

  .footer .logo-image {
    height: 30px;
    max-width: 120px;
  }
}

/* Responsive: Móviles pequeños */
@media (max-width: 480px) {
  .logo-image {
    height: 35px;
    max-width: 130px;
  }

  .hero .logo-image {
    height: 70px;
    max-width: 180px;
  }
}

/* OPCIONAL: Mantén estos si quieres seguir usando texto en algunas secciones */
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-clocher {
  font-family: var(--font-family-script);
  font-size: 1.8rem;
  color: var(--clocher-green);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-clocher.footer {
  font-size: 5rem;
  color: var(--clocher-beige-gold);
}

.logo-facial-care {
  font-family: var(--font-family-heading);
  font-size: 1.5rem;
  color: var(--clocher-green-dark);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.logo-facial-care.footer {
  color: var(--clocher-cream);
}


/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all var(--duration-normal) var(--ease-standard);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-16) 0;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-32);
}

.nav-link {
  color: #868f75;
  text-decoration: none;
  font-family: var(--font-family-subheading);
  font-weight: 600;
  font-size: 1.2rem;
  transition: color var(--duration-fast) var(--ease-standard);
  position: relative;
}

.nav-link:hover {
  color: var(--clocher-green);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--clocher-green);
  transition: width var(--duration-normal) var(--ease-standard);
}

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

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--clocher-green);
  margin: 3px 0;
  transition: all var(--duration-normal) var(--ease-standard);
}

/* Hero Section: logo on top, content below */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--clocher-cream, #f6eddc) 0%, var(--clocher-beige-light, #f5dfb6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
}

/* Remove the old background logo — it's now an actual img */
.hero::before {
  display: none;
}

/* Vertical stacking */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  min-height: auto;
  background: none;
}

/* Logo area — big, centered */
.hero-logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 30px;
  width: 100%;
}

.hero-main-logo {
  max-width: 500px;
  width: 80%;
  height: auto;
  opacity: 0.55;
  filter: drop-shadow(0 4px 20px rgba(112, 127, 98, 0.1));
}

/* Text area — below the logo */
.hero-text-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0px 48px 60px;
  max-width: 750px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 48px;
}


.hero-title {
  font-family: var(--font-family-heading, 'Poppins', Arial, sans-serif);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--clocher-green, #707f62);
  margin-top: 110px;
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.72);
  padding: 18px 34px;
  border-radius: 18px;
  box-shadow: 0 2px 14px rgba(112, 127, 98, 0.04);
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.32rem;
  color: #868f75;
  margin-bottom: 34px;
  background: rgba(255, 255, 255, 0.72);
  padding: 16px 22px;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(112, 127, 98, 0.04);
  max-width: 640px;
  font-weight: 400;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 18px;
  margin-top: 12px;
}

/* Columna derecha: logo centrado vertical y horizontal */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}

.hero-logo-img {
  width: 86%;
  max-width: 540px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 8px 42px rgba(112, 127, 98, 0.09);
  background: transparent;
  margin: 0 auto;
}

@media (max-width: 950px) {
  .hero-content {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-left,
  .hero-right {
    padding: 0 2vw 0 2vw;
    min-height: 180px;
  }

  .hero-logo-img {
    max-width: 360px;
    margin-top: 32px;
  }
}

@media (max-width: 600px) {
  .hero-content {
    max-width: 99vw;
  }

  .hero-title {
    font-size: 1.7rem;
    padding: 12px 10vw;
  }

  .hero-subtitle {
    font-size: 1.02rem;
    padding: 16px 0;
  }

  .hero-logo-img {
    max-width: 98vw;
  }
}


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-24);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  position: relative;
  overflow: hidden;
  font-family: var(--font-family-subheading);
}

.btn-primary {
  background: var(--clocher-green);
  color: white;
  box-shadow: var(--shadow-md);
  font-size: 1.2rem;
}

.btn-primary:hover {
  background: var(--clocher-beige-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--clocher-green);
  border: 2px solid var(--clocher-green);
}

.btn-secondary:hover {
  background: var(--clocher-green);
  color: white;
}

.btn-accent {
  background: var(--clocher-cream);
  color: var(--clocher-green);
  font-size: 2rem;
  /* O usa 1.4rem, 1.5rem según el tamaño que prefieras */
  padding: 18px 38px;
  font-weight: var(--font-weight-semibold);
}

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

/* Free Assessment Section */
.free-assessment {
  padding: var(--space-32) 0;
  background: var(--color-white);
}

.assessment-card {
  background: var(--clocher-beige-gold);
  padding: var(--space-16);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  /* ← NUEVA LÍNEA */
  flex-direction: column;
  /* ← NUEVA LÍNEA */
}


.assessment-icon {
  font-size: 3rem;
  margin-bottom: var(--space-16);
}

.assessment-card h3 {
  font-family: var(--font-family-heading);
  font-size: 2.3rem;
  color: var(--clocher-green);
  margin-bottom: var(--space-16);
  font-weight: 700;
}

.assessment-card p {
  font-size: 1.25rem;
  margin-bottom: var(--space-20);
  color: var(--clocher-green);
}

.assessment-features {
  list-style: none;
  margin-bottom: var(--space-24);
  text-align: left;
  display: inline-block;
}

.assessment-features {
  list-style: none;
  padding: 0;
  margin: var(--space-20) 0 var(--space-24) 0;
  text-align: left;
  max-width: 350px;
  width: 100%;
  align-self: center;
  /* Centra la lista en la tarjeta */
}

.assessment-features li {
  padding: var(--space-8) 0;
  position: relative;
  padding-left: var(--space-24);
  color: var(--clocher-green-dark);
  font-size: 1.5rem;
  line-height: 1.9rem;
}

.assessment-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--clocher-green);
  font-weight: bold;
  font-size: 2rem;
}

.assessment-card .btn-accent {
  margin-top: 10;
  /* Sin margen extra arriba */
  align-self: center;
  /* Centra el botón */
}

/* Services Section */
.services {
  padding: 80px 0;
  background: var(--color-bg-2);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-32);
  padding: 0 10px;
  /* MENOS espacio lateral */
  max-width: 750px;
  /* Puedes ajustar para hacerlo aún más angosto */
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-family: var(--font-family-heading);
  font-size: 3rem;
  color: var(--clocher-green-dark);
  margin-bottom: var(--space-16);
  font-weight: 700;
}

.section-header p {
  font-family: var(--font-family-subheading);
  font-size: 2rem;
  color: var(--clocher-green-dark);
  font-weight: 400;
}

/* Responsive: menos padding lateral en móvil */
@media (max-width: 600px) {
  .section-header {
    padding: 0 4vw;
    max-width: 97vw;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-32);
  margin-top: var(--space-32);
}

.service-card {
  background: rgba(255, 255, 255, 0.95);
  /* Fondo blanco con 80% opacidad, ajusta el último número si lo quieres más/menos transparente */
  padding: var(--space-32);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-standard);
  border: 1px solid var(--clocher-beige-light);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--clocher-green);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: var(--space-20);
}

.service-card h3 {
  font-family: var(--font-family-heading);
  font-size: 1.7rem;
  color: var(--clocher-green);
  margin-bottom: var(--space-16);
  font-weight: 700;
}

.service-card p {
  font-size: 1rem;
  color: var(--color-black);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-16);
}

.card-features {
  font-size: 1.2rem;
  list-style: none;
  text-align: left;
}

.card-features li {
  padding: var(--space-4) 0;
  padding-left: var(--space-20);
  position: relative;
  font-size: 1rem;
  color: var(--color-black);
}

.card-features li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--clocher-green);
  font-weight: var(--font-weight-bold);
}

.services {
  position: relative;
  /* Necesario para los pseudo-elementos */
  padding: 80px 0;
  background: var(--color-bg-2);
  overflow: hidden;
  /* Asegura que el fondo no salga del área */
}

/* Imagen izquierda */
.services::before {
  content: '';
  position: absolute;
  top: 0px;
  left: -100px;
  width: 500px;
  height: 100%;
  background-image: url('1.png');
  background-repeat: no-repeat;
  background-position: left top;
  background-size: contain;
  opacity: 0;
  /* Inicialmente invisible */
  z-index: 0;
  pointer-events: none;
  animation: fade-in-bg 1.5s ease-out 0.4s forwards;
}

/* Imagen derecha */
.services::after {
  content: '';
  position: absolute;
  top: 100px;
  right: -100px;
  width: 400px;
  height: 100%;
  background-image: url('2.png');
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;
  opacity: 0;
  /* Comienza invisible para que se note el fade */
  z-index: 0;
  pointer-events: none;
  animation: fade-in-bg 1.5s ease-out 0.8s forwards;
}

/* AÑADE ESTE KEYFRAME */
@keyframes fade-in-bg {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

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


/* Para que el contenido siempre esté por encima de las imágenes fondo */
.services>* {
  position: relative;
  z-index: 1;
}

/* About Section */
.about {
  padding: 80px 0;
  background: transparent !important;
  box-shadow: none !important;
}

/* NUEVO: Contenedor de dos columnas */
.about-content {
  max-width: 1200px;
  /* Más ancho para dos columnas */
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* 50% - 50% */
  gap: var(--space-48);
  /* Espacio entre columnas */
  align-items: start;
}

/* NUEVO: Columna de texto (izquierda) */
.about-text {
  padding-right: var(--space-24);
}

.about h2 {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-3xl);
  color: var(--clocher-green);
  margin-bottom: var(--space-24);
  font-weight: 700;
}

.about p {
  font-size: 1.5rem;
  margin-bottom: var(--space-32);
  color: #707f62;
}

.credentials {
  background: var(--clocher-cream);
  padding: var(--space-32);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--clocher-green);
  border-bottom: 4px solid var(--clocher-green);
  color: #707f62;
}

.credentials h3 {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-2xl);
  color: #707f62;
  margin-bottom: var(--space-20);
  font-weight: 700;
}

.credentials h4 {
  font-family: var(--font-family-subheading);
  font-size: var(--font-size-2xl);
  color: #707f62;
  margin: var(--space-20) 0 var(--space-12) 0;
  font-weight: 600;
}

.credential-item {
  margin-bottom: var(--space-12);
  font-size: var(--font-size-base);
}

.credential-item strong {
  color: var(--clocher-green-dark);
  font-weight: var(--font-weight-semibold);
}

.credential-item-cp {
  margin-left: var(--space-8);
  margin-bottom: var(--space-12);
  font-size: var(--font-size-base);
  font-style: italic;
}

.credential-item-cp strong {
  color: var(--clocher-green-dark);
  font-weight: var(--font-weight-semibold);
  font-style: italic;
}

.certifications-list {
  list-style: none;
  padding-left: 0;
}

.certifications-list li {
  padding: var(--space-8) 0;
  padding-left: var(--space-20);
  position: relative;
  color: #707f62;
}

.certifications-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #707f62;
  font-weight: var(--font-weight-bold);
}

/* NUEVO: Columna de imagen (derecha) */
.about-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
}

.about-carousel {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 630px;
  overflow: hidden;
  /* evita desbordes durante el hover/escala */
}

.about-photo {
  position: absolute;
  inset: 0;
  /* top/right/bottom/left: 0 en una sola línea */
  width: 100%;
  height: 100%;
  /* toma la altura del contenedor */
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  border: 3px solid #b29e68;
  background: #fff;

  /* Estado inactivo */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;

  /* Transición coordinada */
  transition: opacity 1s ease, visibility 0s linear 1s;
}

.about-photo.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;

  /* Sin delay al entrar */
  transition-delay: 1s, 1s;
}

.about-photo:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 48px rgba(112, 127, 98, 0.14);
  border-color: #707f62;
  transition: opacity 1.8s cubic-bezier(1, 0.46, 0.45, 0.94);
}


body {
  background: #f6eddc;
  margin: 0;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
}

.gallery-section {
  width: 100vw;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 4px solid var(--clocher-green);
  padding: 20px 0;
}

.gallery-slider {
  border-radius: 10px;
  border-left: 4px solid var(--clocher-green);
  border-bottom: 4px solid var(--clocher-green);
  width: 100vw;
  max-width: 1400px;
  overflow: hidden;
  position: relative;
  padding: 0;
  flex-direction: column;
  align-items: center;
}

.gallery-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  width: 90vw;
  justify-content: center;
  padding-bottom: 0;
}

.gallery-slide.active {
  display: flex;
  animation: fadeIn 2s;
}

@keyframes fadeIn {
  from {
    opacity: 0.1;
  }

  to {
    opacity: 1;
  }
}

.gallery-img {
  width: 100%;
  max-width: 800px;
  height: 100%;
  object-fit: cover;
  margin-top: 0;
}

.gallery-caption {
  display: block;
  /* Cambiado de 'none' a 'block' */
  text-align: center;
  color: #707f62;
  font-size: 1.5rem;
  font-weight: 400;
  margin-top: 0;
  /* Espacio entre imagen y título */
  margin-bottom: 0;
  padding: 0;
}

/* Dots */
.gallery-dots {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 24px 0 20px 0;
  position: relative;
}

.gallery-dot {
  width: 12px;
  height: 12px;
  background: #e3e1cf;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, border .2s;
  box-shadow: 0 3px 9px rgba(112, 127, 98, 0.11);
}

.gallery-dot.active {
  background: #707f62;
  border: 1px solid #b29e68;
}

.gallery-title {
  display: none;
  /* Ocultamos el título externo porque ahora usamos el interno */
}

@media (max-width: 700px) {
  .gallery-slider {
    width: 96vw;
    border-radius: 16px;
  }

  .gallery-slide {
    padding-bottom: 15px;
  }

  .gallery-img {
    height: 350px;
  }

  .gallery-caption {
    font-size: 1.1rem;
    margin-top: 15px;
  }
}



/* Testimonials Section */
.testimonials {
  padding: 80px 0;
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 4px solid var(--clocher-green);

}

.section-header-t {
  text-align: center;
  margin-bottom: 32px;
}

.section-header-t h2 {
  font-family: var(--font-family-heading, 'Poppins', sans-serif);
  font-size: 3rem;
  color: var(--clocher-green, #707f62);
  margin-bottom: 16px;
  font-weight: 700;
}

.section-header-t p {
  font-family: var(--font-family-subheading, 'Poppins', sans-serif);
  font-size: 2rem;
  color: var(--clocher-green, #707f62);
  font-weight: 400;
}

.section-header-t p a {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-bottom-color 0.3s ease;
  position: relative;
  z-index: 10;
}

.section-header-t p a:hover {
  border-bottom-color: var(--clocher-green, #707f62);
}

/* Testimonials Grid */
.testimonials {
  padding: 80px 0;
  background: #fff;
  z-index: 9999;
  position: relative;
}

.section-header-c {
  text-align: center;
  margin-bottom: 32px;
}

.section-header-c h2 {
  font-size: 3rem;
  color: #707f62;
  margin-bottom: 16px;
  font-weight: 700;
  font-family: 'Poppins', Arial, sans-serif;
}

.section-header-c p {
  font-size: 2rem;
  color: var(--clocher-green);
  font-weight: 400;
  font-family: 'Poppins', Arial, sans-serif;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}

/* Testimonials Slider */
.testimonials-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  /* Mask edges for fade effect */
  -webkit-mask-image: linear-gradient(90deg, transparent, #fff 10%, #fff 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #fff 10%, #fff 90%, transparent);
}

.testimonials-track {
  display: flex;
  gap: 20px;
  width: max-content;
  /* Animate infinitely */
  animation: scroll 40s linear infinite;
}

/* Pause on hover */
.testimonials-track:hover {
  animation-play-state: paused;
}

/* Card sizing for slider */
.testimonial-card {
  flex: 0 0 320px;
  /* Fixed width for consistent slide */
  max-width: 320px;
  background: var(--clocher-yellow-gold);
  padding: 24px;
  border-radius: 18px;
  text-align: center;
  border: 1px solid #e7dec1;
  box-shadow: 0 2px 14px rgba(112, 127, 98, 0.08);
  transition: all 0.3s ease;
  opacity: 1;
  z-index: 10;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    /* Move left by (320px card + 20px gap) * 3 cards = 1020px */
    transform: translateX(-1020px);
  }
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(112, 127, 98, 0.12);
  border-color: #707f62;
}

.stars {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 16px;
  color: black;
  line-height: 1.55;
}

.testimonial-card cite {
  font-weight: 600;
  color: #b29e68;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1.2rem;
}

.testimonials-decorada {
  position: relative;
  overflow: hidden;
}

/* Imagen decorativa al fondo lado derecho */
.testimonials-decorada::after {
  content: "";
  position: absolute;
  top: 0;
  right: -105px;
  /* Ajusta para que sobresalga si gustas */
  width: 400px;
  /* Ajusta tamaño de la imagen */
  height: 100%;
  background: url('Back_1.png') no-repeat right center;
  background-size: contain;
  opacity: 0.15;
  /* Suaviza la imagen decorativa */
  pointer-events: none;
  z-index: 1;
}

.testimonials .container {
  position: relative;
  z-index: 2;
  /* El contenido va siempre sobre la imagen decorativa */
}

@media (max-width: 700px) {
  .testimonials-decorada::after {
    display: none;
  }
}


/* Contact Section */
.contact {
  padding: 80px 0;
  background: var(--color-bg-3);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-32);
  margin-top: var(--space-32);
  color: #707f62;
}

.contact-info h3,
.contact-form h3 {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-xl);
  color: #707f62;
  margin-bottom: var(--space-20);
  font-weight: 700;
}

.contact-item {
  margin-bottom: var(--space-16);
  font-size: var(--font-size-base);
}

.contact-item strong {
  color: #707f62;
}

a[href^="tel:"] {
  color: #25D366;
  /* Color tipo WhatsApp */
  text-decoration: underline;
  font-weight: bold;
}

a[href^="tel:"]:hover {
  color: #707f62;
  /* Tono verde a tu gusto */
}

.social-links {
  margin-top: var(--space-24);
}

.social-links h4 {
  font-family: var(--font-family-subheading);
  color: var(--clocher-green);
  margin-bottom: var(--space-12);
  font-weight: 600;
}

.social-buttons {
  display: flex;
  gap: 16px;
}

.social-btn img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  background: var(--clocher-green-dark);
  transition: transform 0.2s, box-shadow 0.2s;
}

.social-btn:hover img {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.13);
}


/* Contact Form */
.contact-form {
  background: var(--color-white);
  padding: var(--space-32);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.direccion-link {
  color: #707f62;
  font-style: italic;
  transition: color 0.2s;
}

.direccion-link:hover {
  color: #b29e68;
  text-decoration: underline solid;
}

/* Footer */
.footer {
  background: var(--clocher-green);
  color: white;
  padding: 20px 0 var(--space-24);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-32);
  margin-bottom: var(--space-32);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.footer-section h3,
.footer-section h4 {
  font-family: var(--font-family-heading);
  margin-top: 40px;
  margin-bottom: 0;
  color: var(--clocher-beige-gold);
  font-weight: 500;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--space-8);
}

.footer-section a {
  color: white;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

.footer-section a:hover {
  color: var(--clocher-beige-gold);
}

.footer-social-links {
  margin-top: var(--space-16);
  display: flex;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.footer-social {
  color: var(--clocher-cream);
  font-size: var(--font-size-sm);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

.footer-social:hover {
  color: var(--clocher-beige-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-24);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: var(--color-white);
  padding: var(--space-32);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.close-modal {
  position: absolute;
  top: var(--space-16);
  right: var(--space-20);
  font-size: var(--font-size-2xl);
  cursor: pointer;
  color: var(--clocher-green);
}

.modal-placeholder {
  aspect-ratio: 16/9;
  background: var(--clocher-beige-light);
  border-radius: var(--radius-base);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-16);
}

/* Form Error States */
.form-control.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(var(--color-error-rgb), 0.1);
}

.error-message {
  color: var(--color-error);
  font-size: var(--font-size-sm);
  margin-top: var(--space-4);
}

.imagen-redes {
  display: block;
  margin: 10px 0 auto -10px;
  /* Arriba, derecha, abajo, izquierda */
  max-width: 400px;
  /* O el ancho que prefieras */
  border-radius: 12px;
  /* Si quieres esquinas redondeadas */
}

/* Active Navigation */
.nav-link.active {
  color: var(--clocher-green);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-top: var(--space-32);
    transition: left var(--duration-normal) var(--ease-standard);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-list {
    flex-direction: column;
    justify-content: flex-end;
    gap: var(--space-24);
    padding: 0 24px;
    /* gap pequeño desde el borde derecho */
  }

  .nav-link {
    font-size: var(--font-size-lg);
  }

  .hero-logo-text .logo-clocher {
    font-size: 2.5rem;
  }

  .hero-logo-text .logo-facial-care {
    font-size: 0.8rem;
  }

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

  .btn {
    width: 100%;
    max-width: 280px;
  }

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

  .contact-content {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .social-buttons,
  .footer-social-links {
    justify-content: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .container {
    padding: 0 var(--space-12);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: var(--font-size-base);
  }

  .hero-logo-text .logo-clocher {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: var(--font-size-2xl);
  }

  .service-card,
  .contact-form,
  .assessment-card {
    padding: var(--space-20);
  }

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

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

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0.1;
    transform: translateY(30px);
  }

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

.animate-in {
  animation: slideInUp 0.6s ease-out forwards;
}

.service-card,
.testimonial-card,
.gallery-item {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease-out;
}

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

#splash-logo {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  /* O el fondo de tu marca */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  animation: fadeSplash 2s forwards;
}

#splash-logo img {
  max-width: 350px;
  width: 60vw;
  height: auto;
}

/* Animación de desaparición */
@keyframes fadeSplash {
  0% {
    opacity: 1;
  }

  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

#splash-logo.hidden {
  display: none;
}

/* Gallery Slider Styles */
.gallery-slider {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 40px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.slider-track {
  overflow: hidden;
  width: 100%;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.slider-item {
  min-width: 100%;
  transition: transform 0.6s cubic-bezier(.42, 0, .58, 1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-placeholder {
  width: 350px;
  height: 200px;
  background: var(--clocher-cream);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 24px rgba(112, 127, 98, 0.08);
  font-size: 1.2rem;
  color: #707f62;
  text-align: center;
  padding: 15px;
}

.slider-btn {
  background: var(--clocher-green);
  color: #fff;
  font-size: 2.4rem;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  opacity: 0.85;
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  transition: background 0.2s;
}

.slider-btn-left {
  left: -60px;
}

.slider-btn-right {
  right: -60px;
}

.slider-btn:hover {
  background: var(--clocher-green-dark);
  opacity: 1;
}

.slider-description {
  margin-top: 18px;
  text-align: center;
  color: var(--clocher-green-dark);
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .gallery-slider {
    max-width: 96vw;
  }

  .slider-track,
  .gallery-placeholder,
  .slider-item {
    width: 270px !important;
  }

  .gallery-placeholder {
    height: 170px;
  }

  .slider-btn-left {
    left: -30px;
  }

  .slider-btn-right {
    right: -30px;
  }
}

@media (max-width: 600px) {
  .gallery-slider {
    max-width: 99vw;
  }

  .slider-track,
  .gallery-placeholder,
  .slider-item {
    width: 98vw !important;
  }

  .gallery-placeholder {
    height: 140px;
  }

  .slider-btn {
    font-size: 2rem;
    width: 36px;
    height: 36px;
  }

  .slider-btn-left {
    left: -10px;
  }

  .slider-btn-right {
    right: -10px;
  }
}

/* Free Assessment Two Columns Layout */
.free-assessment-columns {
  background: var(--clocher-cream);
}

.free-assessment-columns .columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 550px;
  gap: var(--space-40);
  max-width: 1200px;
  margin: 0 auto;
}

/* Fondo imagen solo columna izquierda */
.free-assessment-columns .column-left {
  position: relative;
  padding-right: var(--space-10);
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  z-index: 1;
  overflow: visible;
}

.free-assessment-columns .column-left .about {
  position: relative;
  z-index: 2;
}


/* Para que el texto esté encima del fondo */
.free-assessment-columns .column-left>* {
  position: relative;
  z-index: 1;
}

.free-assessment-columns .column-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.assessment-card {
  width: 100%;
  max-width: 520px;
  background: var(--clocher-beige-light);
  padding: var(--space-32);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 950px) {
  .free-assessment-columns .columns-grid {
    grid-template-columns: 1fr;
    gap: var(--space-24);
  }

  .assessment-card {
    max-width: 98vw;
  }

  .free-assessment-columns .column-left::before {
    width: 100vw;
    opacity: 0.12;
  }
}

/* ============================================
   SECCIÓN DE IMÁGENES DECORATIVAS SOBREPUESTAS
   ============================================ */

.decorative-images {
  width: 100%;
  height: 400px;
  /* Altura de la sección */
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fff6e6 0%, #f5dfb6 100%);
  margin: 80px 0;
}

.decorative-container {
  width: 100%;
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  position: relative;
  padding: 0 20px;
}

/* Imagen del lado IZQUIERDO */
.decorative-img-left {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  max-width: 500px;
  height: 85%;
  z-index: 2;
  border-radius: 0 20px 20px 0;
  /* Bordes redondeados en el lado derecho */
  overflow: hidden;
  box-shadow: 15px 15px 40px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease;
}

.decorative-img-left:hover {
  transform: translateY(-50%) scale(1.03);
}

.decorative-img-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Imagen del lado DERECHO */
.decorative-img-right {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  max-width: 500px;
  height: 85%;
  z-index: 1;
  border-radius: 20px 0 0 20px;
  /* Bordes redondeados en el lado izquierdo */
  overflow: hidden;
  box-shadow: -15px 15px 40px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease;
}

.decorative-img-right:hover {
  transform: translateY(-50%) scale(1.03);
}

.decorative-img-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Efecto de superposición sutil */
.decorative-img-left::before,
.decorative-img-right::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(112, 127, 98, 0.1) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* Responsive para tablets */
@media (max-width: 1024px) {
  .decorative-images {
    height: 350px;
    margin: 60px 0;
  }

  .decorative-img-left,
  .decorative-img-right {
    width: 48%;
    height: 80%;
  }
}

/* Responsive para tablets pequeñas */
@media (max-width: 768px) {
  .decorative-images {
    height: 300px;
    margin: 50px 0;
  }

  .decorative-img-left,
  .decorative-img-right {
    width: 50%;
    height: 75%;
    border-radius: 15px;
    /* Bordes más pequeños */
  }

  .decorative-img-left {
    border-radius: 0 15px 15px 0;
  }

  .decorative-img-right {
    border-radius: 15px 0 0 15px;
  }
}

/* Responsive para móviles */
@media (max-width: 480px) {
  .decorative-images {
    height: 250px;
    margin: 40px 0;
  }

  .decorative-img-left,
  .decorative-img-right {
    width: 52%;
    height: 70%;
  }

  .decorative-img-left {
    left: -5%;
    /* Más hacia afuera */
  }

  .decorative-img-right {
    right: -5%;
    /* Más hacia afuera */
  }
}

/* ============================================
   SECCIÓN DE GALERÍA DE IMÁGENES - ANCHO COMPLETO
   ============================================ */


/* Sección de Galería - Sin márgenes, ancho completo */
.gallery-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Contenedor del Slider - Ancho completo de borde a borde */
.gallery-slider {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 50%;
  /* Altura ajustada para fotos horizontales */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: none;
  background-color: #000;
  /* Fondo negro para espacios (opcional) */
}

/* Slides individuales */
.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Slide activo */
.gallery-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Imágenes del slider - Fotos horizontales completas */
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Muestra la imagen completa sin recortar */
  object-position: center;
}

/* Título/Caption sobre la imagen */
.gallery-caption {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  padding: 16px 36px;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  backdrop-filter: blur(10px);
  z-index: 2;
  max-width: 90%;
  white-space: nowrap;
}

/* Contenedor de puntos indicadores */
.gallery-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 3;
}

/* Puntos individuales */
.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

/* Punto activo */
.dot.active {
  background: #707f62;
  transform: scale(1.3);
  border-color: #ffffff;
  box-shadow: 0 0 8px rgba(112, 127, 98, 0.6);
}

/* Hover en puntos */
.dot:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.15);
}

/* Responsive para tablets */
@media (max-width: 1024px) {
  .gallery-slider {
    padding-bottom: 50%;
    /* Más alto en tablets */
  }

  .gallery-caption {
    font-size: 1.2rem;
    padding: 14px 30px;
    bottom: 45px;
  }

  .gallery-dots {
    bottom: 12px;
    gap: 10px;
  }
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .gallery-slider {
    padding-bottom: 56.25%;
    /* Relación 16:9 para móviles */
  }

  .gallery-caption {
    font-size: 1rem;
    padding: 12px 24px;
    bottom: 40px;
    white-space: normal;
    /* Permite saltos de línea en móvil */
  }

  .gallery-dots {
    bottom: 10px;
    gap: 8px;
  }

  .dot {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 480px) {
  .gallery-slider {
    padding-bottom: 65%;
    /* Más alto para móviles pequeños */
  }

  .gallery-caption {
    font-size: 0.9rem;
    padding: 10px 20px;
    bottom: 35px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }
}




/* Background Image Left Decoration */
.bg-image-left {
  position: relative;
  z-index: 1;
  height: 0;
  /* No afecta el flujo */
}

.bg-image-left img {
  position: absolute;
  top: -390px;
  left: -100px;
  width: 800px;
  max-width: 38vw;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  user-select: none;

  /* Sin animación por defecto */
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

/* Clase que se añade con JavaScript cuando está visible */
.bg-image-left img.visible {
  opacity: 0.8;
  transform: translateX(0);
}

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-80px) scale(.93);
  }

  80% {
    opacity: 0.35;
    transform: translateX(0) scale(1.0);
  }

  100% {
    opacity: 0.7;
  }
}

@media (max-width: 900px) {
  .bg-image-left img {
    width: 180px;
    left: -12px;
    opacity: 0.1;
  }
}



/* ============================================
   IMAGEN DECORATIVA SOBREPUESTA - IZQUIERDA
   ============================================ */

.bg-image-left-decorativa {
  position: relative;
  z-index: 1;
  height: 0;
  /* No afecta el flujo del documento */
  pointer-events: none;
  /* Permite clicks a través del contenedor */
}

.bg-image-left-decorativa img {
  position: absolute;
  top: -150px;
  /* Ajusta según donde quieras que aparezca */
  left: -180px;
  width: 800px;
  max-width: 38vw;
  opacity: 0;
  /* Inicia invisible */
  z-index: 1;
  pointer-events: none;
  /* No interfiere con clicks */
  user-select: none;
  /* No se puede seleccionar */

  /* Posición inicial para la animación */
  transform: translateX(-80px) scale(0.93);

  /* Transición suave */
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

/* Clase que se añade con JavaScript cuando está visible */
.bg-image-left-decorativa img.visible {
  opacity: 0.8;
  transform: translateX(0) scale(1.0);
}

/* Animación alternativa con keyframes (opcional, usar solo si prefieres esto) */
@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-80px) scale(0.93);
  }

  100% {
    opacity: 0.8;
    transform: translateX(0) scale(1.0);
  }
}

/* Si quieres usar la animación con keyframes en lugar de transition */
.bg-image-left-decorativa img.visible-animated {
  animation: fadeInLeft 1.2s ease-out forwards;
}

/* Responsive para tablets */
@media (max-width: 900px) {
  .bg-image-left-decorativa img {
    width: 300px;
    max-width: 35vw;
    top: -50px;
  }

  .bg-image-left-decorativa img.visible {
    opacity: 0.6;
  }
}

/* Responsive para móviles */
@media (max-width: 600px) {
  .bg-image-left-decorativa img {
    width: 180px;
    max-width: 40vw;
    left: 0px;
    top: -30px;
  }

  .bg-image-left-decorativa img.visible {
    opacity: 0.4;
    /* Menos opacidad en móviles */
  }
}


/* ============================================
   IMAGEN DECORATIVA SOBREPUESTA - DERECHA (OPCIONAL)
   ============================================ */

.bg-image-right-decorativa {
  position: relative;
  z-index: 1;
  height: 0;
  pointer-events: none;
}

.bg-image-right-decorativa img {
  position: absolute;
  top: -450px;
  right: -200px;
  /* Pegada al lado derecho */
  width: 800px;
  max-width: 38vw;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  user-select: none;

  /* Posición inicial desde la derecha */
  transform: translateX(80px) scale(0.93);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.bg-image-right-decorativa img.visible {
  opacity: 0.8;
  transform: translateX(0) scale(1.0);
}

/* Animación para el lado derecho */
@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(80px) scale(0.93);
  }

  100% {
    opacity: 0.8;
    transform: translateX(0) scale(1.0);
  }
}

.bg-image-right-decorativa img.visible-animated {
  animation: fadeInRight 1.2s ease-out forwards;
}

@media (max-width: 900px) {
  .bg-image-right-decorativa img {
    width: 300px;
    max-width: 35vw;
    top: 0px;
  }

  .bg-image-right-decorativa img.visible {
    opacity: 0.6;
  }
}

@media (max-width: 600px) {
  .bg-image-right-decorativa img {
    width: 180px;
    max-width: 40vw;
    right: 0px;
    top: 0px;
  }

  .bg-image-right-decorativa img.visible {
    opacity: 0.4;
  }
}

.banner-privacidad {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #707f62;
  color: #fff6e6;
  font-size: 15px;
  text-align: center;
  padding: 10px 20px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.10);
  z-index: 9999;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.banner-privacidad a {
  color: #f5dfb6;
  text-decoration: underline;
  font-weight: 600;
  margin-left: 4px;
  transition: color 0.15s;
}

.banner-privacidad a:hover {
  color: #fff;
}

.banner-privacidad button {
  background: #f5dfb6;
  color: #707f62;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  padding: 6px 20px;
  margin-left: 18px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}

.banner-privacidad button:hover {
  background: #fff6e6;
  color: #333;
}


/* ===================================
   RESPONSIVE DESIGN - MOBILE FIRST
   =================================== */

/* TABLETS (768px y menores) */
@media (max-width: 768px) {

  /* Header */
  .header {
    padding: 0;
  }

  /* === SECTION PADDING – eliminate big vertical gaps === */
  .hero {
    min-height: auto;
    padding-top: 0;
    padding-bottom: 20px;
  }

  .services {
    padding: 40px 0;
  }

  .about {
    padding: 40px 0;
  }

  .testimonials {
    padding: 40px 0;
  }

  .contact {
    padding: 40px 0;
  }

  .trust-badges {
    padding: 32px 0;
  }

  .gallery-section {
    min-height: auto;
    padding: 10px 0;
  }

  .free-assessment-columns .columns-grid {
    min-height: auto;
  }

  /* Hide decorative images on mobile – they add empty space */
  .bg-image-left,
  .bg-image-left-decorativa,
  .bg-image-right-decorativa {
    display: none;
  }

  .decorative-images {
    height: 200px;
    margin: 20px 0;
  }

  /* Footer – tighter spacing */
  .footer {
    padding: 16px 0;
  }

  .footer-section h3,
  .footer-section h4 {
    margin-top: 16px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
    margin-bottom: 16px;
  }

  .footer-logo {
    justify-content: center;
  }

  /* HERO SECTION */
  .hero-content {
    min-height: auto;
    gap: 0;
  }

  .hero-logo-area {
    padding: 80px 20px 20px;
  }

  .hero-main-logo {
    max-width: 300px;
    width: 70%;
  }

  .hero-text-area {
    padding: 10px 16px 30px;
  }

  .hero-left {
    padding: 16px 16px 10px;
    margin-top: 70px;
  }

  .hero-title {
    font-size: 1.5rem;
    padding: 12px 16px;
    margin-bottom: 8px;
    margin-top: 20px;
  }

  .hero-subtitle {
    font-size: 1rem;
    padding: 10px 16px;
    margin-bottom: 12px;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 8px;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: none;
  }

  .hero-right {
    padding: 10px 16px;
    min-height: auto;
  }

  .hero-logo-img {
    max-width: 90vw;
    width: 100%;
  }

  /* FREE ASSESSMENT SECTION */
  .free-assessment-columns .columns-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .free-assessment-columns .column-left {
    padding: 16px;
  }

  .free-assessment-columns .column-left .about {
    padding: 0;
  }

  .free-assessment-columns .column-left .about p {
    margin-bottom: 12px;
    font-size: 1rem;
  }

  .free-assessment-columns .column-right {
    padding: 0 16px 20px;
  }

  .assessment-card {
    max-width: 100%;
    padding: 20px;
  }

  .assessment-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .assessment-card p {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .assessment-features {
    margin: 12px 0 16px 0;
  }

  .assessment-features li {
    font-size: 1.1rem;
    line-height: 1.5rem;
    padding: 4px 0 4px 30px;
    position: relative;
  }

  .assessment-features li::before {
    font-size: 1.5rem;
    /* Slightly smaller checkmark on mobile */
    top: 2px;
    /* Adjust vertical alignment */
  }

  /* SERVICES SECTION */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
  }

  .service-card {
    padding: 20px;
  }

  .service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .service-card p {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  .card-features li {
    font-size: 1rem;
  }

  .services::before,
  .services::after {
    opacity: 0 !important;
    display: none;
  }

  /* Section headers */
  .section-header {
    padding: 0 16px;
    margin-bottom: 16px;
  }

  .section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }

  .section-header p {
    font-size: 1rem;
  }

  .section-header-t {
    margin-bottom: 16px;
  }

  .section-header-t h2 {
    font-size: 2rem;
    margin-bottom: 8px;
  }

  .section-header-t p {
    font-size: 1.1rem;
  }

  .section-header-c {
    margin-bottom: 16px;
  }

  .section-header-c h2 {
    font-size: 2rem;
    margin-bottom: 8px;
  }

  .section-header-c p {
    font-size: 1rem;
    margin-left: 0;
    margin-right: 0;
    padding: 0 16px;
  }

  /* ABOUT SECTION */
  .about-content {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .about-text {
    padding-right: 0;
  }

  .about h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .about p {
    font-size: 1rem;
    margin-bottom: 16px;
  }

  .credentials {
    padding: 20px;
  }

  .credentials h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }

  .credentials h4 {
    margin: 12px 0 8px 0;
  }

  .about-carousel {
    max-width: 100%;
    height: 350px;
  }

  .about-photo {
    border-radius: 15px;
  }

  /* GALLERY */
  .gallery-slider {
    max-width: 95vw;
  }

  .gallery-img {
    max-width: 95vw;
    height: 300px;
  }

  .gallery-caption {
    font-size: 0.95rem;
    padding: 10px 16px;
    bottom: 28px;
  }

  /* TESTIMONIALS */
  /* TESTIMONIALS SLIDER MOBILE */
  .testimonial-card {
    flex: 0 0 280px;
    max-width: 280px;
    padding: 18px;
  }



  .testimonial-card p {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  .testimonials-decorada::after {
    display: none;
  }

  /* CONTACT SECTION */
  .contact-content {
    grid-template-columns: 1fr !important;
    gap: 16px;
    margin-top: 16px;
  }

  .contact-info {
    text-align: left;
  }

  .contact-form {
    padding: 20px;
  }

  .form-control {
    font-size: 1rem;
  }

  .imagen-redes {
    max-width: 100%;
    margin-left: 0;
  }

  /* Container */
  .container {
    padding: 0 16px;
  }
}

/* MÓVILES PEQUEÑOS (480px y menores) */
@media (max-width: 480px) {

  .hero-left {
    padding: 12px 12px 8px;
    margin-top: 65px;
  }

  .hero-title {
    font-size: 1.2rem;
    padding: 10px 12px;
    margin-top: 12px;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    padding: 8px 12px;
    margin-bottom: 10px;
  }

  .hero-logo-img {
    max-width: 100%;
  }

  .services {
    padding: 28px 0;
  }

  .about {
    padding: 28px 0;
  }

  .testimonials {
    padding: 28px 0;
  }

  .contact {
    padding: 28px 0;
  }

  .trust-badges {
    padding: 24px 0;
  }

  .assessment-card {
    padding: 16px;
  }

  .assessment-card h3 {
    font-size: 1.2rem;
  }

  .service-card {
    padding: 16px;
  }

  .service-card h3 {
    font-size: 1.1rem;
  }

  .service-card p {
    font-size: 0.9rem;
  }

  .about h2 {
    font-size: 1.3rem;
  }

  .about-carousel {
    height: 280px;
  }

  .gallery-img {
    height: 220px;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .credentials {
    padding: 16px;
  }

  .credentials h3 {
    font-size: 1.1rem;
  }

  .testimonial-card {
    flex: 0 0 85vw;
    max-width: 85vw;
    padding: 15px;
  }

  .testimonial-card {
    padding: 14px;
  }

  .form-group {
    margin-bottom: 10px;
  }

  .btn-full-width {
    padding: 12px 20px;
    font-size: 1rem;
  }

  .footer {
    padding: 12px 0;
  }
}


/* ============================================
   TRUST BADGES SECTION
   ============================================ */
.trust-badges {
  padding: 60px 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, var(--clocher-cream) 100%);
  border-top: 1px solid rgba(112, 127, 98, 0.1);
  border-bottom: 1px solid rgba(112, 127, 98, 0.1);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.trust-badge {
  text-align: center;
  padding: 32px 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  border: 1px solid rgba(112, 127, 98, 0.12);
  box-shadow: 0 4px 20px rgba(112, 127, 98, 0.06);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.trust-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clocher-green) 0%, var(--clocher-beige-gold) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.trust-badge:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(112, 127, 98, 0.12);
  border-color: var(--clocher-green);
}

.trust-badge:hover::before {
  opacity: 1;
}

.trust-icon {
  font-size: 2.8rem;
  color: var(--clocher-green);
  margin-bottom: 16px;
  display: block;
  font-variation-settings: 'FILL' 0, 'wght' 300;
  transition: font-variation-settings 0.3s ease;
}

.trust-badge:hover .trust-icon {
  font-variation-settings: 'FILL' 1, 'wght' 400;
}

.trust-badge h4 {
  font-family: var(--font-family-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--clocher-green);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.trust-badge p {
  font-size: 0.9rem;
  color: var(--clocher-green-dark);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 900px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .trust-badge {
    padding: 24px 16px;
  }

  .trust-badges {
    padding: 40px 0;
  }
}


/* ============================================
   MEDICAL STANDARDS CALLOUT
   ============================================ */
.medical-standards {
  background: linear-gradient(135deg, rgba(112, 127, 98, 0.06) 0%, rgba(245, 223, 182, 0.15) 100%);
  border-left: 4px solid var(--clocher-green);
  border-radius: 0 16px 16px 0;
  padding: 28px 32px;
  margin-bottom: 32px;
  position: relative;
}

.standards-icon {
  font-size: 2.4rem;
  color: var(--clocher-green);
  display: block;
  margin-bottom: 12px;
  font-variation-settings: 'FILL' 1, 'wght' 400;
}

.medical-standards h3 {
  font-family: var(--font-family-heading);
  font-size: 1.3rem;
  color: var(--clocher-green);
  margin-bottom: 16px;
  font-weight: 700;
}

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

.standards-list li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--clocher-green-dark);
  font-size: 0.95rem;
  line-height: 1.6;
}

.standards-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--clocher-green);
  font-weight: 700;
  font-size: 1.1rem;
}


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

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

/* Stagger children animations inside trust-grid */
.scroll-reveal.visible .trust-badge {
  animation: staggerIn 0.6s ease-out both;
}

.scroll-reveal.visible .trust-badge:nth-child(1) {
  animation-delay: 0.1s;
}

.scroll-reveal.visible .trust-badge:nth-child(2) {
  animation-delay: 0.2s;
}

.scroll-reveal.visible .trust-badge:nth-child(3) {
  animation-delay: 0.3s;
}

.scroll-reveal.visible .trust-badge:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes staggerIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }

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

/* Stagger service cards */
.scroll-reveal.visible .service-card {
  animation: staggerIn 0.6s ease-out both;
}

.scroll-reveal.visible .service-card:nth-child(1) {
  animation-delay: 0.15s;
}

.scroll-reveal.visible .service-card:nth-child(2) {
  animation-delay: 0.3s;
}

.scroll-reveal.visible .service-card:nth-child(3) {
  animation-delay: 0.45s;
}

/* Stagger testimonial cards */
.scroll-reveal.visible .testimonial-card {
  animation: staggerIn 0.5s ease-out both;
}

.scroll-reveal.visible .testimonial-card:nth-child(1) {
  animation-delay: 0.1s;
}

.scroll-reveal.visible .testimonial-card:nth-child(2) {
  animation-delay: 0.25s;
}

.scroll-reveal.visible .testimonial-card:nth-child(3) {
  animation-delay: 0.4s;
}