/* =============================================
   QULORQENAI — WATERCOLOR COURSE STYLESHEET
   Prefix: qd-
   Design: Organic Shapes, friendly, natural
   ============================================= */

/* 1. DESIGN TOKENS */
:root {
  /* Colors */
  --qd-bg: #fff8f2;
  --qd-bg-alt: #f5f0eb;
  --qd-bg-blue: #e8f4f8;
  --qd-surface: #ffffff;
  --qd-primary: #2d7a8a;
  --qd-primary-dark: #1f5f6e;
  --qd-primary-light: #5ba3b3;
  --qd-secondary: #d4845a;
  --qd-secondary-light: #e8a882;
  --qd-accent: #7bb89a;
  --qd-accent-warm: #c9a96e;
  --qd-text: #2a2420;
  --qd-text-muted: #6b5f58;
  --qd-text-light: #9b8f88;
  --qd-border: rgba(45, 122, 138, 0.15);

  /* Shadows — consistent top-left light source */
  --qd-shadow-xs: 0 1px 3px rgba(45, 50, 60, 0.07), 0 1px 2px rgba(45, 50, 60, 0.04);
  --qd-shadow-sm: 0 2px 8px rgba(45, 50, 60, 0.08), 0 1px 3px rgba(45, 50, 60, 0.05);
  --qd-shadow-md: 0 4px 20px rgba(45, 50, 60, 0.10), 0 2px 6px rgba(45, 50, 60, 0.06);
  --qd-shadow-lg: 0 8px 40px rgba(45, 50, 60, 0.12), 0 4px 12px rgba(45, 50, 60, 0.07);
  --qd-shadow-xl: 0 16px 60px rgba(45, 50, 60, 0.15), 0 6px 20px rgba(45, 50, 60, 0.08);

  /* Radius scale */
  --qd-radius-sm: 10px;
  --qd-radius-md: 18px;
  --qd-radius-lg: 28px;
  --qd-radius-xl: 40px;
  --qd-radius-blob: 60% 40% 55% 45% / 50% 60% 40% 50%;

  /* Spacing */
  --qd-space-xs: 0.5rem;
  --qd-space-sm: 1rem;
  --qd-space-md: 1.5rem;
  --qd-space-lg: 2.5rem;
  --qd-space-xl: 4rem;
  --qd-space-2xl: 6rem;

  /* Nav */
  --qd-nav-h: 72px;

  /* Transitions */
  --qd-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --qd-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Onest', sans-serif;
  background-color: var(--qd-bg);
  color: var(--qd-text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color 0.25s var(--qd-ease); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* 3. TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: 'Onest', sans-serif;
  color: var(--qd-text);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.qd-hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.qd-section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 700;
}

.qd-section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--qd-secondary);
  margin-bottom: var(--qd-space-xs);
}

.qd-section-intro {
  font-size: 1.08rem;
  color: var(--qd-text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.qd-section-header {
  text-align: center;
  margin-bottom: var(--qd-space-xl);
}

.qd-section-header .qd-section-title {
  margin: 0.4rem 0 0.8rem;
}

/* 4. LAYOUT */
.qd-container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--qd-space-md);
}

/* 5. NAVIGATION */
.qd-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--qd-nav-h);
  transition: background 0.4s var(--qd-ease), backdrop-filter 0.4s var(--qd-ease), border-color 0.4s var(--qd-ease), box-shadow 0.4s var(--qd-ease);
  border-bottom: 1px solid transparent;
}

.qd-nav.qd-nav-scrolled {
  background: rgba(255, 248, 242, 0.82);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: rgba(45, 122, 138, 0.12);
  box-shadow: 0 2px 20px rgba(45, 50, 60, 0.06);
}

.qd-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--qd-space-md);
}

.qd-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 10;
}

.qd-logo-img { width: 38px; height: 38px; }

.qd-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--qd-primary);
  letter-spacing: -0.02em;
}

.qd-nav-links {
  display: flex;
  align-items: center;
  gap: var(--qd-space-lg);
}

.qd-nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--qd-text-muted);
  position: relative;
  padding: 0.2rem 0;
  transition: color 0.25s var(--qd-ease);
}

.qd-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--qd-secondary);
  border-radius: 2px;
  transition: width 0.3s var(--qd-ease);
}

.qd-nav-link:hover { color: var(--qd-primary); }
.qd-nav-link:hover::after { width: 100%; }

/* Hamburger */
.qd-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
}

.qd-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--qd-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--qd-ease), opacity 0.3s var(--qd-ease);
}

/* Mobile Menu — circular reveal */
.qd-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: var(--qd-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  clip-path: circle(0px at calc(100% - 36px) 36px);
  transition: clip-path 0.55s var(--qd-ease);
  pointer-events: none;
}

.qd-mobile-menu.qd-menu-open {
  clip-path: circle(150% at calc(100% - 36px) 36px);
  pointer-events: all;
}

.qd-mobile-close {
  position: absolute;
  top: 20px; right: 20px;
  color: rgba(255,255,255,0.9);
  font-size: 1.5rem;
  padding: 12px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.25s var(--qd-ease);
}

.qd-mobile-close:hover { background: rgba(255,255,255,0.15); }

.qd-mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--qd-space-md);
}

.qd-mobile-link {
  font-size: 1.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s var(--qd-ease), transform 0.3s var(--qd-ease), color 0.25s var(--qd-ease);
}

.qd-mobile-menu.qd-menu-open .qd-mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.qd-mobile-menu.qd-menu-open .qd-mobile-links li:nth-child(1) .qd-mobile-link { transition-delay: 0.3s; }
.qd-mobile-menu.qd-menu-open .qd-mobile-links li:nth-child(2) .qd-mobile-link { transition-delay: 0.35s; }
.qd-mobile-menu.qd-menu-open .qd-mobile-links li:nth-child(3) .qd-mobile-link { transition-delay: 0.4s; }
.qd-mobile-menu.qd-menu-open .qd-mobile-links li:nth-child(4) .qd-mobile-link { transition-delay: 0.45s; }
.qd-mobile-menu.qd-menu-open .qd-mobile-links li:nth-child(5) .qd-mobile-link { transition-delay: 0.5s; }

.qd-mobile-link:hover { color: var(--qd-secondary-light); }

/* 6. BUTTONS */
.qd-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--qd-radius-xl);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s var(--qd-ease);
  min-height: 48px;
  white-space: nowrap;
}

.qd-btn-primary {
  background: var(--qd-secondary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(212, 132, 90, 0.35), 0 2px 6px rgba(212, 132, 90, 0.2);
}

.qd-btn-primary:hover {
  background: var(--qd-primary);
  box-shadow: 0 6px 24px rgba(45, 122, 138, 0.35), 0 3px 8px rgba(45, 122, 138, 0.2);
  transform: translateY(-2px);
  color: #fff;
}

.qd-btn-ghost {
  background: transparent;
  color: var(--qd-primary);
  border: 2px solid var(--qd-primary);
}

.qd-btn-ghost:hover {
  background: var(--qd-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* 7. WAVE DIVIDERS */
.qd-wave-divider {
  line-height: 0;
  overflow: hidden;
  margin-top: -1px;
}

.qd-wave-divider svg {
  display: block;
  width: 100%;
}

.qd-wave-flip { transform: scaleX(-1); }

/* 8. BLOB ACCENTS */
.qd-blob-accent {
  position: absolute;
  border-radius: var(--qd-radius-blob);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.qd-blob-about-1 {
  width: 420px; height: 420px;
  background: var(--qd-accent);
  top: -80px; right: -100px;
  border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%;
}

.qd-blob-tecnicas-1 {
  width: 350px; height: 350px;
  background: var(--qd-secondary);
  bottom: 80px; left: -80px;
  border-radius: 44% 56% 60% 40% / 50% 38% 62% 50%;
}

.qd-blob-proceso-1 {
  width: 380px; height: 380px;
  background: var(--qd-primary);
  top: 40px; right: -100px;
  border-radius: 56% 44% 38% 62% / 48% 62% 38% 52%;
}

.qd-blob-contacto-1 {
  width: 300px; height: 300px;
  background: var(--qd-accent-warm);
  bottom: -60px; left: -60px;
  border-radius: 50% 50% 40% 60% / 45% 55% 45% 55%;
}

/* 9. HERO */
.qd-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #e8f4f8 0%, #f5ede5 50%, #fff8f2 100%);
  padding: calc(var(--qd-nav-h) + var(--qd-space-xl)) 0 0;
  overflow: hidden;
}

.qd-hero-blob {
  position: absolute;
  border-radius: var(--qd-radius-blob);
  pointer-events: none;
  opacity: 0.25;
}

.qd-hero-blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--qd-primary-light), transparent 70%);
  top: -150px; right: -150px;
  border-radius: 60% 40% 55% 45% / 50% 65% 35% 50%;
  opacity: 0.3;
}

.qd-hero-blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--qd-secondary-light), transparent 70%);
  bottom: 100px; left: -100px;
  border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%;
  opacity: 0.2;
}

.qd-hero-blob-3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, var(--qd-accent), transparent 70%);
  top: 40%; left: 40%;
  border-radius: 50%;
  opacity: 0.12;
}

.qd-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--qd-space-2xl);
  align-items: center;
  padding-bottom: var(--qd-space-2xl);
}

.qd-hero-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--qd-primary);
  background: rgba(45, 122, 138, 0.1);
  padding: 0.35rem 1rem;
  border-radius: var(--qd-radius-xl);
  margin-bottom: var(--qd-space-sm);
}

.qd-hero-desc {
  font-size: 1.1rem;
  color: var(--qd-text-muted);
  max-width: 460px;
  margin: var(--qd-space-sm) 0 var(--qd-space-lg);
  line-height: 1.75;
}

.qd-hero-actions {
  display: flex;
  gap: var(--qd-space-sm);
  flex-wrap: wrap;
}

.qd-hero-img-wrap {
  position: relative;
  border-radius: 55% 45% 50% 50% / 45% 55% 45% 55%;
  overflow: hidden;
  box-shadow: var(--qd-shadow-xl);
}

.qd-hero-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--qd-ease);
}

.qd-hero-img-wrap:hover .qd-hero-img { transform: scale(1.04); }

.qd-hero-img-accent {
  position: absolute;
  bottom: -20px; right: -20px;
  width: 120px; height: 120px;
  background: var(--qd-secondary);
  border-radius: 55% 45% 60% 40% / 40% 60% 40% 60%;
  opacity: 0.25;
  z-index: -1;
}

/* 10. ABOUT */
.qd-about {
  position: relative;
  background: var(--qd-bg-alt);
  padding: var(--qd-space-2xl) 0 0;
  overflow: hidden;
}

.qd-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--qd-space-2xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.qd-about-img-stack {
  position: relative;
  height: 480px;
}

.qd-about-img {
  position: absolute;
  border-radius: var(--qd-radius-lg);
  object-fit: cover;
  transition: transform 0.4s var(--qd-ease), box-shadow 0.4s var(--qd-ease);
}

.qd-about-img:hover {
  transform: scale(1.02);
  box-shadow: var(--qd-shadow-xl);
}

.qd-about-img-main {
  width: 75%;
  height: 340px;
  top: 0; left: 0;
  box-shadow: var(--qd-shadow-lg);
  border-radius: 45% 35% 40% 30% / 35% 45% 35% 45%;
}

.qd-about-img-secondary {
  width: 60%;
  height: 240px;
  bottom: 0; right: 0;
  box-shadow: var(--qd-shadow-md);
  border-radius: 35% 45% 35% 45% / 45% 35% 45% 35%;
  border: 4px solid var(--qd-bg-alt);
}

.qd-about-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--qd-text);
  margin: var(--qd-space-sm) 0;
  line-height: 1.6;
}

.qd-about-text p {
  color: var(--qd-text-muted);
  margin-bottom: var(--qd-space-sm);
  line-height: 1.75;
}

.qd-about-details {
  margin-top: var(--qd-space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--qd-space-sm);
}

.qd-about-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--qd-text-muted);
}

.qd-about-detail i {
  color: var(--qd-primary);
  margin-top: 3px;
  flex-shrink: 0;
}

/* 11. TECHNIQUES */
.qd-tecnicas {
  position: relative;
  background: var(--qd-bg);
  padding: var(--qd-space-2xl) 0 0;
  overflow: hidden;
}

.qd-tecnicas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--qd-space-md);
  position: relative;
  z-index: 1;
}

.qd-tecnica-card {
  background: var(--qd-surface);
  border-radius: var(--qd-radius-lg);
  padding: var(--qd-space-md) var(--qd-space-md) var(--qd-space-lg);
  box-shadow: var(--qd-shadow-md);
  transition: transform 0.35s var(--qd-ease), box-shadow 0.35s var(--qd-ease);
  border: 1px solid rgba(45, 122, 138, 0.08);
  overflow: hidden;
}

.qd-tecnica-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--qd-shadow-xl);
}

.qd-tecnica-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--qd-primary-light), var(--qd-primary));
  border-radius: 50% 40% 50% 40% / 40% 50% 40% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: var(--qd-space-sm);
  box-shadow: 0 4px 12px rgba(45, 122, 138, 0.3);
}

.qd-tecnica-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--qd-radius-md);
  margin-bottom: var(--qd-space-sm);
  transition: transform 0.4s var(--qd-ease);
}

.qd-tecnica-card:hover .qd-tecnica-img { transform: scale(1.03); }

.qd-tecnica-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--qd-text);
  margin-bottom: 0.5rem;
}

.qd-tecnica-desc {
  font-size: 0.875rem;
  color: var(--qd-text-muted);
  line-height: 1.7;
}

/* 12. GALLERY */
.qd-galeria {
  position: relative;
  background: var(--qd-bg-alt);
  padding: var(--qd-space-2xl) 0 0;
  overflow: hidden;
}

.qd-gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--qd-space-sm);
}

.qd-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--qd-radius-lg);
  display: block;
  box-shadow: var(--qd-shadow-md);
  transition: box-shadow 0.35s var(--qd-ease);
}

.qd-gallery-item:hover { box-shadow: var(--qd-shadow-xl); }

.qd-gallery-item-wide { grid-row: 1 / 3; }

.qd-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--qd-ease);
  min-height: 200px;
}

.qd-gallery-item:hover img { transform: scale(1.06); }

.qd-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 122, 138, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s var(--qd-ease);
}

.qd-gallery-item:hover .qd-gallery-overlay { opacity: 1; }

/* 13. PROCESS */
.qd-proceso {
  position: relative;
  background: var(--qd-bg-blue);
  padding: var(--qd-space-2xl) 0 0;
  overflow: hidden;
}

.qd-proceso-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--qd-space-md);
  position: relative;
  z-index: 1;
}

.qd-proceso-step {
  background: var(--qd-surface);
  border-radius: var(--qd-radius-lg);
  padding: var(--qd-space-lg) var(--qd-space-md);
  box-shadow: var(--qd-shadow-sm);
  position: relative;
  border: 1px solid rgba(45, 122, 138, 0.08);
  transition: transform 0.3s var(--qd-ease), box-shadow 0.3s var(--qd-ease);
}

.qd-proceso-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--qd-shadow-lg);
}

.qd-step-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--qd-primary);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: var(--qd-space-sm);
  letter-spacing: -0.05em;
}

.qd-step-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--qd-text);
}

.qd-step-content p {
  font-size: 0.875rem;
  color: var(--qd-text-muted);
  line-height: 1.7;
}

/* 14. CONTACT */
.qd-contacto {
  position: relative;
  background: var(--qd-bg);
  padding: var(--qd-space-2xl) 0 var(--qd-space-2xl);
  overflow: hidden;
}

.qd-contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--qd-space-xl);
  align-items: start;
  position: relative;
  z-index: 1;
}

.qd-contact-card {
  background: var(--qd-surface);
  border-radius: var(--qd-radius-lg);
  padding: var(--qd-space-lg);
  box-shadow: var(--qd-shadow-md);
  margin-bottom: var(--qd-space-md);
  border: 1px solid var(--qd-border);
}

.qd-contact-item {
  display: flex;
  gap: var(--qd-space-sm);
  align-items: flex-start;
  padding: var(--qd-space-sm) 0;
  border-bottom: 1px solid rgba(45, 122, 138, 0.08);
}

.qd-contact-item:last-child { border-bottom: none; padding-bottom: 0; }

.qd-contact-icon-wrap {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, rgba(45, 122, 138, 0.1), rgba(45, 122, 138, 0.15));
  border-radius: 50% 40% 50% 40% / 40% 50% 40% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--qd-primary);
  flex-shrink: 0;
  font-size: 0.9rem;
}

.qd-contact-item strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--qd-text-light);
  margin-bottom: 0.2rem;
}

.qd-contact-item p {
  font-size: 0.9rem;
  color: var(--qd-text-muted);
  line-height: 1.5;
}

.qd-contact-item a {
  color: var(--qd-primary);
  font-weight: 500;
  transition: color 0.25s var(--qd-ease);
}

.qd-contact-item a:hover { color: var(--qd-secondary); }

.qd-map-wrap {
  border-radius: var(--qd-radius-lg);
  overflow: hidden;
  box-shadow: var(--qd-shadow-md);
}

/* 15. CONTACT FORM */
.qd-contacto-form-wrap {
  background: var(--qd-surface);
  border-radius: var(--qd-radius-lg);
  padding: var(--qd-space-lg);
  box-shadow: var(--qd-shadow-md);
  border: 1px solid var(--qd-border);
}

.qd-form-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--qd-space-md);
  color: var(--qd-text);
}

.qd-form-row {
  display: flex;
  gap: var(--qd-space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--qd-space-sm);
}

.qd-form-group {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.qd-form-group-message { flex: 0 0 100%; }

.qd-form-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--qd-text-muted);
}

.qd-form-input {
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(45, 122, 138, 0.2);
  border-radius: var(--qd-radius-md);
  font-family: 'Onest', sans-serif;
  font-size: 0.95rem;
  color: var(--qd-text);
  background: var(--qd-bg);
  transition: border-color 0.25s var(--qd-ease), box-shadow 0.25s var(--qd-ease), background 0.25s var(--qd-ease);
  outline: none;
  width: 100%;
}

.qd-form-input:focus {
  border-color: var(--qd-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(45, 122, 138, 0.12);
}

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

.qd-form-textarea { resize: vertical; min-height: 70px; }

.qd-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--qd-space-sm);
  flex-wrap: wrap;
  padding-top: var(--qd-space-sm);
  border-top: 1px solid rgba(45, 122, 138, 0.08);
}

.qd-privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--qd-text-muted);
  cursor: pointer;
  flex: 1;
  min-width: 200px;
}

.qd-privacy-check {
  width: 18px; height: 18px;
  accent-color: var(--qd-primary);
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
}

.qd-privacy-label a {
  color: var(--qd-primary);
  text-decoration: underline;
  text-decoration-color: rgba(45, 122, 138, 0.4);
  transition: color 0.25s var(--qd-ease);
}

.qd-privacy-label a:hover { color: var(--qd-secondary); }

/* 16. FOOTER */
.qd-footer {
  position: relative;
  background: var(--qd-text);
  color: rgba(255, 248, 242, 0.85);
  padding: var(--qd-space-2xl) 0 0;
  overflow: hidden;
}

.qd-footer-illustration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.qd-footer-blob {
  position: absolute;
  border-radius: var(--qd-radius-blob);
  opacity: 0.06;
}

.qd-footer-blob-1 {
  width: 500px; height: 500px;
  background: var(--qd-primary-light);
  top: -150px; left: -100px;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
}

.qd-footer-blob-2 {
  width: 350px; height: 350px;
  background: var(--qd-secondary);
  bottom: 0; right: 10%;
  border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%;
}

.qd-footer-blob-3 {
  width: 200px; height: 200px;
  background: var(--qd-accent);
  top: 30%; right: 30%;
  border-radius: 50%;
}

.qd-footer-drops {
  position: absolute;
  inset: 0;
}

.qd-footer-drops span {
  position: absolute;
  width: 8px; height: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.qd-footer-drops span:nth-child(1) { top: 20%; left: 15%; width: 10px; height: 14px; }
.qd-footer-drops span:nth-child(2) { top: 60%; left: 25%; width: 6px; height: 9px; }
.qd-footer-drops span:nth-child(3) { top: 35%; left: 60%; width: 12px; height: 16px; }
.qd-footer-drops span:nth-child(4) { top: 70%; left: 75%; width: 8px; height: 11px; }
.qd-footer-drops span:nth-child(5) { top: 15%; right: 20%; width: 14px; height: 18px; }
.qd-footer-drops span:nth-child(6) { top: 50%; right: 35%; width: 6px; height: 8px; }
.qd-footer-drops span:nth-child(7) { bottom: 20%; left: 45%; width: 10px; height: 13px; }
.qd-footer-drops span:nth-child(8) { bottom: 30%; right: 15%; width: 7px; height: 10px; }

.qd-footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.2fr 1fr;
  gap: var(--qd-space-xl);
  padding-bottom: var(--qd-space-xl);
  border-bottom: 1px solid rgba(255, 248, 242, 0.1);
}

.qd-footer-logo {
  width: 42px; height: 42px;
  margin-bottom: var(--qd-space-sm);
  filter: brightness(0) invert(1) opacity(0.9);
}

.qd-footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 248, 242, 0.6);
  line-height: 1.65;
  max-width: 260px;
}

.qd-footer h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 248, 242, 0.5);
  margin-bottom: var(--qd-space-md);
}

.qd-footer-nav ul,
.qd-footer-legal ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.qd-footer-nav a,
.qd-footer-legal a {
  font-size: 0.9rem;
  color: rgba(255, 248, 242, 0.75);
  transition: color 0.25s var(--qd-ease);
}

.qd-footer-nav a:hover,
.qd-footer-legal a:hover { color: var(--qd-secondary-light); }

.qd-footer-contact p {
  font-size: 0.875rem;
  color: rgba(255, 248, 242, 0.7);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}

.qd-footer-contact i {
  color: var(--qd-primary-light);
  margin-top: 2px;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.qd-footer-contact a {
  color: rgba(255, 248, 242, 0.75);
  transition: color 0.25s var(--qd-ease);
}

.qd-footer-contact a:hover { color: var(--qd-secondary-light); }

.qd-footer-bottom {
  position: relative;
  z-index: 1;
  padding: var(--qd-space-md) 0;
  font-size: 0.82rem;
  color: rgba(255, 248, 242, 0.4);
  text-align: center;
}

/* 17. COOKIE CONSENT — SPLIT BOTTOM */
.qd-cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--qd-surface);
  border-top: 1px solid rgba(45, 122, 138, 0.15);
  box-shadow: 0 -4px 30px rgba(45, 50, 60, 0.12);
  display: flex;
  transform: translateY(100%);
  transition: transform 0.45s var(--qd-ease);
}

.qd-cookie-banner.qd-cookie-visible {
  transform: translateY(0);
}

.qd-cookie-left {
  flex: 1;
  padding: var(--qd-space-lg) var(--qd-space-xl);
  border-right: 1px solid rgba(45, 122, 138, 0.1);
}

.qd-cookie-right {
  flex: 1;
  padding: var(--qd-space-lg) var(--qd-space-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.qd-cookie-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--qd-text);
  margin-bottom: 0.5rem;
}

.qd-cookie-desc {
  font-size: 0.84rem;
  color: var(--qd-text-muted);
  line-height: 1.65;
  max-width: 380px;
}

.qd-cookie-desc a {
  color: var(--qd-primary);
  text-decoration: underline;
  transition: color 0.25s var(--qd-ease);
}

.qd-cookie-desc a:hover { color: var(--qd-secondary); }

.qd-cookie-toggles {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: var(--qd-space-sm);
}

.qd-cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(45, 122, 138, 0.07);
}

.qd-cookie-toggle-row:last-child { border-bottom: none; }

.qd-cookie-toggle-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--qd-text);
}

.qd-cookie-toggle-sub {
  font-size: 0.75rem;
  color: var(--qd-text-light);
  display: block;
}

.qd-toggle-switch {
  position: relative;
  width: 44px; height: 24px;
  flex-shrink: 0;
}

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

.qd-toggle-slider {
  position: absolute;
  inset: 0;
  background: #ddd;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.3s var(--qd-ease);
}

.qd-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s var(--qd-ease-spring);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.qd-toggle-switch input:checked + .qd-toggle-slider { background: var(--qd-primary); }
.qd-toggle-switch input:checked + .qd-toggle-slider::before { transform: translateX(20px); }
.qd-toggle-switch input:disabled + .qd-toggle-slider { opacity: 0.5; cursor: not-allowed; }

.qd-cookie-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.qd-cookie-btn {
  padding: 0.6rem 1.2rem;
  border-radius: var(--qd-radius-xl);
  font-family: 'Onest', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.25s var(--qd-ease);
  min-height: 44px;
  cursor: pointer;
}

.qd-cookie-btn-accept {
  background: var(--qd-primary);
  color: #fff;
  border: 2px solid var(--qd-primary);
}

.qd-cookie-btn-accept:hover {
  background: var(--qd-primary-dark);
  border-color: var(--qd-primary-dark);
}

.qd-cookie-btn-save {
  background: transparent;
  color: var(--qd-primary);
  border: 2px solid var(--qd-primary);
}

.qd-cookie-btn-save:hover {
  background: rgba(45, 122, 138, 0.08);
}

.qd-cookie-btn-reject {
  background: transparent;
  color: var(--qd-text-muted);
  border: 2px solid rgba(45, 122, 138, 0.2);
}

.qd-cookie-btn-reject:hover {
  border-color: var(--qd-text-muted);
  color: var(--qd-text);
}

/* 18. LEGAL PAGE STYLES */
.qd-legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--qd-bg);
}

.qd-legal-content {
  flex: 1;
  padding: calc(var(--qd-nav-h) + var(--qd-space-xl)) 0 var(--qd-space-2xl);
}

.qd-legal-hero {
  background: linear-gradient(135deg, #e8f4f8 0%, #f5ede5 100%);
  padding: var(--qd-space-xl) 0;
  margin-bottom: var(--qd-space-xl);
  position: relative;
  overflow: hidden;
}

.qd-legal-hero::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--qd-primary-light), transparent 70%);
  top: -100px; right: -80px;
  border-radius: 50%;
  opacity: 0.2;
}

.qd-legal-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.qd-legal-hero p {
  color: var(--qd-text-muted);
  font-size: 0.95rem;
}

.qd-legal-body {
  max-width: 780px;
}

.qd-legal-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--qd-primary);
  margin: var(--qd-space-lg) 0 0.6rem;
  padding-top: var(--qd-space-sm);
  border-top: 2px solid rgba(45, 122, 138, 0.12);
}

.qd-legal-body h2:first-child { border-top: none; margin-top: 0; }

.qd-legal-body p {
  color: var(--qd-text-muted);
  line-height: 1.8;
  margin-bottom: var(--qd-space-sm);
  font-size: 0.95rem;
}

.qd-legal-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--qd-text-muted);
  margin-bottom: var(--qd-space-sm);
}

.qd-legal-body ul li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.qd-legal-body a {
  color: var(--qd-primary);
  text-decoration: underline;
  transition: color 0.25s var(--qd-ease);
}

.qd-legal-body a:hover { color: var(--qd-secondary); }

.qd-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--qd-primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--qd-space-lg);
  transition: gap 0.25s var(--qd-ease), color 0.25s var(--qd-ease);
}

.qd-back-link:hover { gap: 0.8rem; color: var(--qd-secondary); }

/* 19. THANKS PAGE */
.qd-thanks-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #e8f4f8 0%, #fff8f2 60%, #f5ede5 100%);
}

.qd-thanks-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--qd-nav-h) + var(--qd-space-xl)) var(--qd-space-md) var(--qd-space-2xl);
}

.qd-thanks-card {
  background: var(--qd-surface);
  border-radius: var(--qd-radius-xl);
  padding: var(--qd-space-2xl) var(--qd-space-xl);
  box-shadow: var(--qd-shadow-xl);
  text-align: center;
  max-width: 520px;
  width: 100%;
  border: 1px solid var(--qd-border);
}

.qd-thanks-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--qd-primary-light), var(--qd-primary));
  border-radius: 50% 40% 50% 40% / 40% 50% 40% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  margin: 0 auto var(--qd-space-md);
  box-shadow: 0 6px 24px rgba(45, 122, 138, 0.3);
}

.qd-thanks-card h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: var(--qd-space-sm);
}

.qd-thanks-card p {
  color: var(--qd-text-muted);
  line-height: 1.7;
  margin-bottom: var(--qd-space-lg);
}

/* 20. RESPONSIVE */
@media (max-width: 1024px) {
  .qd-tecnicas-grid { grid-template-columns: repeat(2, 1fr); }
  .qd-proceso-steps { grid-template-columns: repeat(2, 1fr); }
  .qd-footer-grid { grid-template-columns: 1fr 1fr; gap: var(--qd-space-lg); }
  .qd-hero-content { gap: var(--qd-space-xl); }
}

@media (max-width: 768px) {
  :root { --qd-nav-h: 64px; }

  .qd-nav-links { display: none; }
  .qd-hamburger { display: flex; }

  .qd-hero-content {
    grid-template-columns: 1fr;
    gap: var(--qd-space-lg);
    padding-bottom: var(--qd-space-xl);
  }

  .qd-hero-visual { order: -1; }

  .qd-hero-img {
    height: 300px;
    border-radius: var(--qd-radius-xl);
  }

  .qd-hero-img-wrap {
    border-radius: var(--qd-radius-xl);
  }

  .qd-about-grid { grid-template-columns: 1fr; gap: var(--qd-space-lg); }

  .qd-about-img-stack { height: 320px; }
  .qd-about-img-main { width: 70%; height: 240px; }
  .qd-about-img-secondary { width: 55%; height: 180px; }

  .qd-about-details { grid-template-columns: 1fr; }

  .qd-tecnicas-grid { grid-template-columns: 1fr; }

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

  .qd-gallery-item-wide { grid-column: 1 / 3; grid-row: auto; }
  .qd-gallery-item img { min-height: 180px; }

  .qd-proceso-steps { grid-template-columns: 1fr; }

  .qd-contacto-grid { grid-template-columns: 1fr; gap: var(--qd-space-lg); }

  .qd-form-row { flex-direction: column; }

  .qd-form-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .qd-btn-submit { width: 100%; justify-content: center; }

  .qd-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--qd-space-lg);
  }

  .qd-footer-brand { grid-column: 1 / 3; }

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

  .qd-cookie-left {
    padding: var(--qd-space-md);
    border-right: none;
    border-bottom: 1px solid rgba(45, 122, 138, 0.1);
  }

  .qd-cookie-right { padding: var(--qd-space-md); }
}

@media (max-width: 480px) {
  .qd-hero-actions { flex-direction: column; align-items: flex-start; }
  .qd-hero-actions .qd-btn { width: 100%; justify-content: center; }

  .qd-gallery-grid { grid-template-columns: 1fr; }
  .qd-gallery-item-wide { grid-column: 1; }

  .qd-footer-grid { grid-template-columns: 1fr; }
  .qd-footer-brand { grid-column: 1; }

  .qd-thanks-card { padding: var(--qd-space-lg) var(--qd-space-md); }

  .qd-cookie-btns { flex-direction: column; }
  .qd-cookie-btn { width: 100%; text-align: center; justify-content: center; }
}