/* ==========================================================================
   HUELLA CONSCIENTE - SISTEMA DE DISEÑO Y ESTILOS GLOBALES
   Inspirado en la naturaleza, serenidad y bienestar holístico
   ========================================================================== */

:root {
  /* Paleta Corporativa */
  --color-primary: #6A2863;
  --color-primary-light: #8E3B85;
  --color-primary-dark: #4B1745;
  --color-primary-soft: #F5ECF3;

  --color-secondary: #6B8E23;
  --color-secondary-light: #84A932;
  --color-secondary-dark: #4E6819;
  --color-secondary-soft: #EEF4E3;

  --color-accent: #C5A059;
  --color-accent-light: #E0C185;

  /* Fondos y Neutros */
  --color-bg: #FAF7F2;
  --color-bg-alt: #F4EFE7;
  --color-surface: #FFFFFF;
  --color-surface-soft: #FCFAF8;

  /* Tipografía */
  --color-text-main: #2C242A;
  --color-text-muted: #6E636C;
  --color-text-light: #9B919A;
  --color-border: #E8E0D7;
  --color-border-light: #F0EBE3;

  /* Estados */
  --color-success: #2E7D32;
  --color-success-bg: #E8F5E9;
  --color-warning: #ED6C02;
  --color-warning-bg: #FFF4E5;
  --color-danger: #D32F2F;
  --color-danger-bg: #FFEBEE;
  --color-info: #0288D1;
  --color-info-bg: #E1F5FE;

  /* Sombras y Elevaciones */
  --shadow-sm: 0 2px 8px rgba(106, 40, 99, 0.04);
  --shadow-md: 0 6px 20px rgba(106, 40, 99, 0.08);
  --shadow-lg: 0 14px 35px rgba(106, 40, 99, 0.12);
  --shadow-xl: 0 20px 50px rgba(106, 40, 99, 0.16);

  /* Bordes y Transiciones */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary-dark);
  letter-spacing: -0.015em;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 860px;
}

/* ==========================================================================
   CABECERA Y NAVEGACIÓN
   ========================================================================== */

/* ==========================================================================
   CABECERA PRINCIPAL DISTRIBUIDA EN DOS NIVELES (HEADER 2-TIER)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #FFFFFF;
  border-bottom: 1px solid var(--color-border-light);
  box-shadow: 0 4px 20px rgba(106, 40, 99, 0.05);
  transition: all 0.25s ease;
}

/* Nivel 1: Fila Superior con Logo con más margen y al lado Login, Cesta y Salir */
.header-top-row {
  background: #FFFFFF;
  padding: 20px 0 16px; /* Margen superior amplio y despejado */
  border-bottom: 1px solid #F5EFEA;
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.brand-logo-wrap {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #FAF7F2;
  border: 1px solid #EAE2D8;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(106, 40, 99, 0.08);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.brand-link:hover .brand-logo-wrap {
  transform: scale(1.05);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-size: 11.5px;
  color: var(--color-secondary-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.btn-header-login {
  border-radius: var(--radius-full);
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(106, 40, 99, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-user-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 5px 14px 5px 6px;
  border-radius: 30px;
  background: #FAF7F2;
  border: 1px solid #EAE2D8;
  transition: all 0.2s ease;
}

.btn-user-panel:hover {
  background: #FFFFFF;
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(106, 40, 99, 0.1);
}

.user-avatar-micro {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.user-panel-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.user-panel-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.1;
}

.user-panel-role {
  font-size: 10.5px;
  color: var(--color-secondary-dark);
  font-weight: 600;
  text-transform: uppercase;
}

.btn-header-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  color: #C53030;
  background: #FFF5F5;
  border: 1.5px solid #FEB2B2;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-header-logout:hover {
  background: #C53030;
  color: #FFFFFF;
  border-color: #C53030;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(197, 48, 48, 0.25);
}

/* Nivel 2: Barra Inferior con Menú de Opciones */
.header-nav-bar {
  background: #FAF8F5;
  border-top: 1px solid #F0EAE3;
  padding: 4px 0;
}

.header-nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 4px 0;
  margin: 0;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: #4A4048;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.nav-link:hover {
  background: rgba(106, 40, 99, 0.08);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.nav-link.active {
  background: var(--color-primary);
  color: #FFFFFF !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(106, 40, 99, 0.2);
}

.btn-cart {
  position: relative;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 1px solid #EADEE8;
  cursor: pointer;
  transition: var(--transition);
}

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

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-secondary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-toggle {
  display: none;
  background: #FAF7F2;
  border: 1px solid #EAE2D8;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 20px;
  color: var(--color-primary);
  cursor: pointer;
}

/* ==========================================================================
   BOTONES Y COMPONENTES REUTILIZABLES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  line-height: 1.4;
}

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

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background-color: var(--color-secondary-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 34px;
  font-size: 17px;
  border-radius: var(--radius-md);
}

.btn-full {
  width: 100%;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.badge-purple {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.badge-green {
  background: var(--color-secondary-soft);
  color: var(--color-secondary-dark);
}

.badge-gold {
  background: #FFF8E7;
  color: #9A7B2C;
}

/* Tarjetas */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(106, 40, 99, 0.2);
}

/* Alertas */
.alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
}

.alert-success { background: var(--color-success-bg); color: var(--color-success); border: 1px solid #C8E6C9; }
.alert-error { background: var(--color-danger-bg); color: var(--color-danger); border: 1px solid #FFCDD2; }
.alert-warning { background: var(--color-warning-bg); color: var(--color-warning); border: 1px solid #FFE0B2; }
.alert-info { background: var(--color-info-bg); color: var(--color-info); border: 1px solid #B3E5FC; }

.alert-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
}

.alert-close:hover { opacity: 1; }

/* ==========================================================================
   SECCIONES HERO Y PORTADA
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 80px 0 100px;
  background: radial-gradient(circle at 80% 20%, rgba(107, 142, 35, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 10% 90%, rgba(106, 40, 99, 0.07) 0%, transparent 50%),
              var(--color-bg);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--color-primary-dark);
}

.hero-content h1 span {
  color: var(--color-secondary);
}

.hero-lead {
  font-size: 19px;
  color: var(--color-text-muted);
  margin-bottom: 35px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-features-bar {
  display: flex;
  gap: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--color-border);
}

.hero-feat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.hero-feat-item svg {
  color: var(--color-secondary);
}

.hero-visual {
  position: relative;
  text-align: center;
}

.hero-visual-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(106, 40, 99, 0.1);
  position: relative;
}

.hero-brand-symbol {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto 20px;
}

.hero-quote {
  font-style: italic;
  color: var(--color-primary-dark);
  font-size: 16px;
  margin-bottom: 15px;
}

.hero-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 15px;
}

/* ==========================================================================
   SECCIÓN HISTORIA & FILOSOFÍA
   ========================================================================== */

.section-story {
  padding: 90px 0;
  background: var(--color-surface);
}

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

.section-header .badge {
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 17px;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.story-text p {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--color-text-muted);
}

.story-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.pillar-card {
  background: var(--color-bg);
  padding: 22px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-secondary);
}

.pillar-card h4 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--color-primary-dark);
}

.pillar-card p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   GRID DE SERVICIOS Y TALLERES
   ========================================================================== */

.section-services {
  padding: 90px 0;
  background: var(--color-bg);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 21px;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 22px;
  flex: 1;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--color-border-light);
}

.service-price {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
}

.service-price small {
  font-size: 13px;
  font-weight: normal;
  color: var(--color-text-muted);
}

/* ==========================================================================
   SHOWROOM (TIENDA ONLINE)
   ========================================================================== */

.section-showroom {
  padding: 90px 0;
  background: var(--color-surface);
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-image-wrap {
  position: relative;
  background: var(--color-bg);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.product-image-wrap img {
  max-height: 180px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.06);
}

.product-badge-top {
  position: absolute;
  top: 12px;
  left: 12px;
}

.product-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-secondary-dark);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.product-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.product-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 18px;
  flex: 1;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
}

/* ==========================================================================
   MODAL DE CARRITO DE COMPRAS
   ========================================================================== */

.cart-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(43, 20, 40, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cart-modal-backdrop.active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  padding: 20px;
}

.cart-modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  max-width: 550px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.cart-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.cart-modal-footer {
  padding: 20px 24px;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   PIE DE PÁGINA (FOOTER) & BOTÓN FLOTANTE
   ========================================================================== */

.site-footer {
  background: var(--color-primary-dark);
  color: #F8F4F8;
  padding: 70px 0 30px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand h3 {
  color: #FFFFFF;
  font-size: 22px;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #D6C8D5;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--color-accent-light);
  font-size: 16px;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #D6C8D5;
  font-size: 14px;
}

.footer-links a:hover {
  color: #FFFFFF;
  padding-left: 4px;
}

.footer-contact-info {
  font-size: 14px;
  color: #D6C8D5;
  line-height: 1.8;
}

.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #B4A4B3;
}

/* Botón WhatsApp Flotante */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: var(--transition);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  color: white;
}

/* ==========================================================================
   FORMULARIOS Y TEXTBOXES ESTÉTICOS Y SECTORIZADOS
   ========================================================================== */

.form-section-card {
  background: var(--color-surface);
  border-radius: 18px;
  border: 1px solid #EAE2D8;
  padding: 30px;
  margin-bottom: 28px;
  box-shadow: 0 4px 18px rgba(106, 40, 99, 0.04);
  transition: var(--transition);
}

.form-section-card:hover {
  border-color: rgba(106, 40, 99, 0.25);
  box-shadow: 0 8px 25px rgba(106, 40, 99, 0.07);
}

.form-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid #F0E8DE;
}

.form-section-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.form-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 2px;
}

.form-section-desc {
  font-size: 13px;
  color: var(--color-text-muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-label small {
  font-size: 11.5px;
  font-weight: normal;
  color: var(--color-text-muted);
}

/* Textbox / Inputs redondeados de alta gama */
.form-control {
  width: 100%;
  padding: 14px 18px;
  background: #FFFFFF;
  border: 1.5px solid #E2D7E0;
  border-radius: 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--color-text-main);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02), 0 2px 5px rgba(106, 40, 99, 0.02);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-control::placeholder {
  color: #A99EA8;
  font-weight: 400;
}

.form-control:hover {
  border-color: #B990B2;
  background-color: #FCFAF8;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(106, 40, 99, 0.12), 0 4px 12px rgba(106, 40, 99, 0.06);
}

/* Select con flecha estilizada personalizada */
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236A2863' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
  padding-right: 44px;
  cursor: pointer;
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
  border-radius: 16px;
}

/* Input sectorizado con badge de seguridad */
.form-captcha-box {
  background: var(--color-bg-alt);
  border: 1.5px dashed #DCCFD9;
  border-radius: 16px;
  padding: 18px 22px;
  margin: 15px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* ==========================================================================
   RESPONSIVE CABECERA Y ELEMENTOS GENERALES
   ========================================================================== */

@media (max-width: 992px) {
  .hero-grid, .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .header-nav-bar {
    display: none;
  }

  .header-nav-bar.active {
    display: block;
    background: #FFFFFF;
    border-bottom: 2px solid var(--color-primary-soft);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  }

  .header-nav-bar.active .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px 18px;
  }

  .header-nav-bar.active .nav-link {
    width: 100%;
    border-radius: 12px;
    padding: 10px 16px;
    background: #FAF7F2;
    border: 1px solid #EFEAE1;
    justify-content: flex-start;
  }

  .header-nav-bar.active .nav-link.active {
    background: var(--color-primary);
    color: #FFFFFF !important;
    border-color: var(--color-primary);
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .brand-logo-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .brand-title {
    font-size: 18px;
  }

  .brand-tagline {
    font-size: 9.5px;
  }

  .header-actions {
    gap: 8px;
  }

  .btn-header-reservar {
    display: none; /* Ocultar reservar en la barra si el espacio es reducido */
  }

  .user-panel-info {
    display: none; /* Dejar avatar micro y nombre corto */
  }

  .btn-header-login {
    padding: 6px 12px;
    font-size: 12px;
  }

  .btn-header-logout {
    padding: 5px 10px;
    font-size: 11px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 34px;
  }
  .hero-features-bar {
    flex-direction: column;
    gap: 12px;
  }
}

/* ==========================================================================
   GRILLA DE FRANJAS HORARIAS DE CITAS RESPONSIVA Y FLUIDA
   ========================================================================== */

.booking-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(78px, 12vw, 98px), 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 12px;
}

.btn-slot-hora {
  padding: 12px 8px;
  border: 1.5px solid #D5C8D4;
  background: #FFFFFF;
  color: #2C242A;
  border-radius: 10px;
  font-weight: 600;
  font-size: clamp(13px, 1vw, 15px);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-slot-hora:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #FAF4F9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(106, 40, 99, 0.1);
}

.btn-slot-hora.selected {
  background: var(--color-primary) !important;
  color: #FFFFFF !important;
  border-color: var(--color-primary) !important;
  box-shadow: 0 4px 12px rgba(106, 40, 99, 0.25) !important;
}

/* ==========================================================================
   VISIBILIDAD DE CONTRASEÑAS (VER / OCULTAR)
   ========================================================================== */

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrapper input.form-control {
  padding-right: 48px !important;
  width: 100%;
}

.btn-toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  font-size: 18px;
  line-height: 1;
  min-width: 38px;
  min-height: 38px;
  touch-action: manipulation;
  z-index: 5;
}

.btn-toggle-password:hover {
  color: var(--color-primary);
  background: rgba(106, 40, 99, 0.08);
  transform: translateY(-50%) scale(1.08);
}

.btn-toggle-password.visible {
  color: var(--color-primary);
}

.btn-toggle-password:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(106, 40, 99, 0.2);
}

/* ==========================================================================
   MODALES FLOTANTES (HC MODAL BACKDROP)
   ========================================================================== */

.hc-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(45, 39, 39, 0.65);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.hc-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.hc-modal-dialog {
  background: #FFFFFF;
  border-radius: 22px;
  width: 92%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  border: 1px solid #EAE2D8;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hc-modal-backdrop.active .hc-modal-dialog {
  transform: translateY(0) scale(1);
}

.hc-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid #EFEAE1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hc-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.hc-modal-close {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.hc-modal-close:hover {
  opacity: 1;
}

.hc-modal-body {
  padding: 24px;
}

.hc-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #EFEAE1;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #FAF8F5;
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
}
