
/* Botón banner: mantener color tras click */



/* Unifica el color base en todos los estados menos hover */
.banner-button,
.banner-button:visited,
.banner-button:focus,
.banner-button:active {
  background-color: #7e8a4a;
  color: #e3e3e4;
  outline: none;
}

/* Botón continuar: mantener color tras click */
.continue-button:active,
.continue-button:focus {
  background-color: var(--primary-color-LaRoca);
  color: white;
  outline: none;
}

/* Botón CTA de popup: mantener color tras click */
.popup-content .popup-cta:active,
.popup-content .popup-cta:focus {
  background-color: var(--primary-dark-LaRoca, #059669);
  color: #fff;
  outline: none;
}

/* ------------------------------------------------
   FONTS AND IMPORTS
   ------------------------------------------------ */
/* Fuente Aime */
@font-face {
  font-family: 'Aime';
  src: url('img/LaRocaVillage/Aime/Aime-Regular_1179269767.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
}

/* Clase global para texto Aime */
/* Unificada: clase global para texto Aime */
.font-aime {
  font-family: 'Aime';
  font-weight: 600;
  font-style: normal;
  font-size: 40px;
  line-height: 105%;
  letter-spacing: 0;
  text-align: center;
  vertical-align: bottom;
  color: var(--dark-text-LaRoca);
}

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

@font-face {
  font-family: 'BrownStd';
  src: url('img/LaRocaVillage/BrownStd/BrownStd-Regular_2972178242.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.font-brownstd {
  font-family: 'BrownStd', "Avenir Next", "Avenir", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  line-height: 120%;
  letter-spacing: -1%;
  color: var(--dark-text-LaRoca);
}

/* ------------------------------------------------
      CSS VARIABLES
      ------------------------------------------------ */
:root {
  /* Primary colors */
  --primary-color: #10B981;
  --primary-light: #34D399;
  --primary-dark: #059669;
  --primary-gradient: linear-gradient(135deg, #10B981, #059669);

  /* Background colors */
  --light-bg: #ffffff;
  --chat-bg: #ffffff;
  --login-bg: #ffffff;
  --general-bg: #dbf7ed;

  /* Text colors */
  --dark-text: #374151;
  --light-text: #ffffff;
  --subtle-text: #6B7280;

  /* Message colors */
  --user-message-bg: #10B981;
  --bot-message-bg: #F3F4F6;

  /* UI elements */
  --border-color: #E5E7EB;
  --input-bg: #F3F4F6;
  --success-color: #10B981;
  --disabled-color: #D1D5DB;

  /* Shadows */
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-elegant: 0 10px 25px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.06);
  --form-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);

  /* Transitions */
  --animation-time: 0.3s;

  /* -------------------------------------------------

  LA ROCA VILLAGE COLORES 

  ------------------------------------------------*/ 

  /* primary colors LA ROCA VILLAGE */ 

  --primary-color-LaRoca: #7e8a4a; 
  --primary-light-LaRoca: #f5f0e6; 
  --primary-dark-LaRoca: #4c542d;
  --primary-gradient-LaRoca: linear-gradient(135deg, #7e8a4a, #4c542d);

  /* Texto-font LA ROCA VILLAGE*/ 

  --dark-text-LaRoca: #101010;
  --light-text-LaRoca: #787777;
  --subtle-text-LaRoca: #35383f; 

  /* Background colors LA ROCA VILLAGE */
  --header-chat-LaRoca: #f5f0e6; 
  --light-bg-LaRoca: #f5f0e6;
  --chat-bg-LaRoca: #ffffff;
  --login-bg-LaRoca: #f5f0e6;
  --general-bg-LaRoca: #dbf7ed;
  --second-buttom-LaRoca: #ffffff; 

/* Mensajes de ejemplo rápidos LA ROCA VILLAGE*/

--quick-reply-bg-LaRoca: #eefcf7;
--quick-reply-border-LaRoca: #17ce92;

/* Chat Colors LA ROCA VILLAGE*/

--user-message-bg-LaRoca: rgba(217, 252, 212, 1);
--bot-message-bg-LaRoca: #F4F5FF;
--font-message-LaRoca: #303030;
}



/* Dark theme variables */
[data-theme="dark"] {
  --light-bg: #1a1a1a;
  --dark-text: #e0e0e0;
  --bot-message-bg: #2a2a2a;
  --user-message-bg: #059669;
  --chat-bg: #121212;
  --border-color: #333;
  --subtle-text: #9CA3AF;
  --login-bg: #1e1e1e;
  --form-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  --input-bg: #2a2a2a;
  --disabled-color: #444444;
}

/* ------------------------------------------------
      RESET AND BASE STYLES
      ------------------------------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: var(--light-bg);
  color: var(--dark-text);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease-in-out;
}

/* ------------------------------------------------
      WIZARD SCREEN
      ------------------------------------------------ */

.wizard-container{
  display: flex;
  flex-direction: column;
  justify-content: space-between;  
  align-items: stretch;
  width: 90%;
  max-width: 400px;
  height: 100%;
  margin: 0 auto;
  padding: 2rem 0 1.75rem;
  
}

.wizard-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  
}

.wizard-body {
  width: 100%;
  height: 200px;
  flex-direction: column;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.75rem; 
}

.wizard-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wizard-title{
  width: 100%; 
  color: var(--dark-text-LaRoca);
  font-weight: 700;
}

.welcome-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
  color: var(--dark-text-LaRoca);
}

.welcome-footer img:not(.logo-large) {
  filter: brightness(0) saturate(0%) invert(10%);
  width: 60px;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.welcome-footer img.logo-large {
  filter: brightness(0) saturate(0%) invert(10%);
  width: 160px;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Tema oscuro para welcome-footer */
[data-theme="dark"] .welcome-footer img {
  filter: brightness(0) saturate(0%) invert(95%);
}

/* Animación suave de entrada para cada paso del wizard */
@keyframes wizardFadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.onboarding-wizard-screen.active .wizard-container {
  animation: wizardFadeSlideIn 0.3s ease-in-out;
}

.wizard-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 2.5rem 0;
}

.wizard-text {
  margin: 0;
  line-height: 1.18;
  color: var(--dark-text-LaRoca);
  text-align: left;
  width: 100%;
  align-self: flex-start;
  font-size: 19px;
}

.wizard-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary-color-LaRoca);
  transition: width 0.3s ease-in-out;
}

.wizard-dot.active {
  width: 32px;
  background: var(--primary-dark-LaRoca);
}

.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 374px;
  height: 48px;
  opacity: 1;
  gap: 1px;
}

.wizard-actions--single {
  justify-content: center;
}

.continue-button--full {
  width: 100% !important;
  max-width: 100%;
}

#wizard-skip {
  margin-right: 0.875rem;
}

/* ------------------------------------------------
      WELCOME AND ONBOARDING SCREENS
      ------------------------------------------------ */
.welcome-screen,
.onboarding-screen,
.onboarding-wizard-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--login-bg-LaRoca);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  overflow-y: auto; /* Permitir scroll */
  -webkit-overflow-scrolling: touch; /* Smooth scroll en iOS */
}

.welcome-screen.active,
.onboarding-screen.active,
.onboarding-wizard-screen.active {
  opacity: 1;
  visibility: visible;
}

.welcome-container,
.onboarding-container {
  width: 90%;
  max-width: 400px;
  text-align: center;
  padding: 2rem;
  margin: auto; /* Centrar con margin en lugar de align-items */
  min-height: min-content; /* Ajustar al contenido */
}

/* Login screen specific layout */
.onboarding-container.login-centered {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 0.5rem;
  gap: 0;
}

.login-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  justify-content: flex-start;
  padding-top: 4rem;
}

.login-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}

.welcome-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height para móviles */
  overflow: hidden;
  padding: 2rem 1rem 1.5rem;
  box-sizing: border-box;
}

/* Logo styles */
.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex: 1;
  min-height: 0;
}

.logo-container img {
  width: 280px;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.welcome-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  color: var(--dark-text-LaRoca);
  flex-shrink: 0;
  min-height: fit-content;
}

.login-form .continue-button {
  width: 100% !important;
  max-width: 100%;
}

.logo-large {
  width: 160px;
  max-width: 90vw;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.logo-small {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  margin-left: auto;
  margin-right: auto;
}

/* Media queries para pantallas pequeñas */
@media (max-height: 700px) {
  .welcome-container {
    padding: 1.5rem 1rem 1rem;
  }
  
  .logo-container img {
    width: 220px;
  }
  
  .logo-large {
    width: 130px;
  }
}

@media (max-height: 600px) {
  .welcome-container {
    padding: 1rem 1rem 0.75rem;
  }
  
  .logo-container img {
    width: 180px;
  }
  
  .logo-large {
    width: 110px;
  }
  
  .welcome-footer {
    padding: 0.75rem;
  }
}

@media (max-height: 500px) {
  .welcome-container {
    padding: 0.75rem 1rem 0.5rem;
  }
  
  .logo-container img {
    width: 150px;
  }
  
  .logo-large {
    width: 90px;
  }
  
  .welcome-footer {
    padding: 0.5rem;
  }
}

@media (max-height: 500px) {
  .welcome-container {
    padding: 0.5rem 0.75rem;
  }
  
  .logo-container {
    max-height: 55vh;
    gap: 0.5rem;
  }
  
  .logo-container img {
    width: 150px;
  }
  
  .logo-large {
    width: 90px;
  }
  
  .welcome-footer {
    padding: 0.5rem 0;
  }
}

@media (max-height: 400px) {
  .welcome-container {
    padding: 0.25rem 0.5rem;
  }
  
  .logo-container {
    max-height: 50vh;
    gap: 0.25rem;
  }
  
  .logo-container img {
    width: 120px;
  }
  
  .logo-large {
    width: 70px;
  }
  
  .welcome-footer {
    padding: 0.25rem 0;
  }
}

/* Media queries adicionales para anchos pequeños */
@media (max-width: 360px) {
  .logo-large {
    width: 130px;
    max-width: 85vw;
  }
  
  .logo-container img {
    max-width: 85vw;
  }
}

@media (max-width: 320px) {
  .logo-large {
    width: 110px;
    max-width: 80vw;
  }
  
  .logo-container img {
    max-width: 80vw;
  }
  
  .welcome-footer {
    padding: 0.5rem 0.25rem;
  }
}

.brand-name {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 0.25rem;
}

.tagline {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 8rem;
  line-height: 1.4;
}

.gray-text {
  color: var(--subtle-text);
}

/* Añadir en styles.css */
#welcome-message {
  transition: opacity 0.3s ease-in-out;
}

/* Clase para la animación de actualización */
.updating-message {
  opacity: 0.7;
}

/* Personalizing screen (loading) */
.personalizing-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--login-bg-LaRoca);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.personalizing-screen.active {
  display: flex;
}

.personalizing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}

.personalizing-logo {
  margin-bottom: 1rem;
}

.personalizing-logo .laroca-logo {
  max-width: 200px;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.personalizing-logo img {
  max-width: 280px;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.personalizing-text {
  font-size: 18px;
  color: var(--dark-text-LaRoca);
  text-align: center;
  line-height: 1.5;
  margin-top: 1rem;
}

.personalizing-subtext {
  color: var(--light-text-LaRoca);
  font-size: 16px;
  display: block;
  margin-top: 0.5rem;
}

.personalizing-screen .continue-button {
  width: 100% !important;
  max-width: 100%;
}

/* Circular loading dots */
/* Contenedor prácticamente igual */
.loading-dots-circular {
  display: inline-block;
  position: relative;
  width: 50px;
  height: 50px;
  color: var(--primary-color-LaRoca);
}

/* Cada "dot" es un eje de rotación, sin tamaño ni color */
.loading-dots-circular .dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  transform-origin: 25px 25px;
  animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

/* El punto real se crea en :after */
.loading-dots-circular .dot:after {
  content: "";
  display: block;
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin: -3px 0 0 -3px;
  opacity: 1;
}

/* 8 divis en vez de 9 para el roller */
.loading-dots-circular .dot:nth-child(1) {
  animation-delay: -0.036s;
}

.loading-dots-circular .dot:nth-child(2) {
  animation-delay: -0.072s;
}

.loading-dots-circular .dot:nth-child(3) {
  animation-delay: -0.108s;
}

.loading-dots-circular .dot:nth-child(4) {
  animation-delay: -0.144s;
}

.loading-dots-circular .dot:nth-child(5) {
  animation-delay: -0.180s;
}

.loading-dots-circular .dot:nth-child(6) {
  animation-delay: -0.216s;
}

.loading-dots-circular .dot:nth-child(7) {
  animation-delay: -0.252s;
}

.loading-dots-circular .dot:nth-child(8) {
  animation-delay: -0.288s;
}

/* Posicionamiento escalado a 50×50 (factor 0.625 sobre valores de 80×80) */
.loading-dots-circular .dot:nth-child(1):after {
  top: 39.142px;
  left: 39.142px;
}

.loading-dots-circular .dot:nth-child(2):after {
  top: 42.321px;
  left: 35.000px;
}

.loading-dots-circular .dot:nth-child(3):after {
  top: 44.319px;
  left: 30.176px;
}

.loading-dots-circular .dot:nth-child(4):after {
  top: 45.000px;
  left: 25.000px;
}

.loading-dots-circular .dot:nth-child(5):after {
  top: 44.319px;
  left: 19.824px;
}

.loading-dots-circular .dot:nth-child(6):after {
  top: 42.321px;
  left: 15.000px;
}

.loading-dots-circular .dot:nth-child(7):after {
  top: 39.142px;
  left: 10.858px;
}

.loading-dots-circular .dot:nth-child(8):after {
  top: 35.000px;
  left: 7.679px;
}

/* Giro completo */
@keyframes lds-roller {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


/* Onboarding specific styles */
.onboarding-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--dark-text-LaRoca);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.onboarding-text {
  font-size: 1rem;
  color: var(--subtle-text);
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

/* Welcome title and text for login screen */
.welcome-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--dark-text-LaRoca);
  margin: 0;
  line-height: 1.5;
  padding-bottom: 0.5rem;
}

.welcome-text {
  color: var(--dark-text-LaRoca);
  margin: 0;
  margin-top: 2rem;
  margin-bottom: 2rem;
  align-items: start;
  text-align: left;
}

/* Google login button */
.google-login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--login-bg-LaRoca);
  color: var(--dark-text-LaRoca);
  border: 1px solid var(--dark-text-LaRoca);
  border-radius: 8px;
  padding: 0.875rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  width: 100%;
  
}

.google-login-button img {
  width: 18px;
  height: 18px;
}

.google-login-button:hover {
  background-color: var(--primary-color-LaRoca);
}

/* Login separator */
.login-separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 0rem 0;
}

.login-separator::before,
.login-separator::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.login-separator span {
  padding: 0 10px;
  color: var(--subtle-text);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Social login buttons */
.social-login-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: -0.5rem 0;
}

/* Login divider */
.login-divider {
  display: flex;
  align-items: center;
  
}

.divider-line {
  flex: 1;
  height: 0px;
  background-color: var(--dark-text-LaRoca);
  opacity: 0.3;
}

.divider-text {
  font-size: 0.85rem;
  color: var(--dark-text-LaRoca);
  font-weight: 500;
}

/* Login form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.login-form input {
  padding: 0.875rem;
  border: 0.5px solid var(--dark-text-LaRoca);
  border-radius: 8px;
  font-size: 16px;
  background-color: var(--chat-bg-LaRoca);
  color: var(--dark-text-LaRoca);
  width: 100%;
}

.login-form input::placeholder {
  color: var(--light-text-LaRoca);
  font-size: 16px;
}

.continue-button {
  background-color: var(--primary-color-LaRoca);
  color: white;
  border: none;
  border-radius: 8px;
  width: 181px;
  height: 48px;
  opacity: 1;
  padding: 10px 24px;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.continue-button:hover {
  background-color: var(--primary-dark-LaRoca);
}

.second-button {
  background-color: var(--second-buttom-LaRoca);
  color: var(--primary-color-LaRoca);
  border: 1px solid var(--primary-color-LaRoca);
  border-radius: 8px;
  width: 181px;
  height: 48px;
  opacity: 1;
  padding: 10px 24px;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  box-shadow: none;
  border-width: 1px;
}

.second-button:hover {
  background-color: var(--bot-message-bg);
}

.disclaimer {
  font-size: 0.75rem;
  color: var(--subtle-text);
  margin: 0;
}

.disclaimer a {
  color: var(--dark-text);
  text-decoration: underline;
}

.haveAccount {
  color: var(--dark-text-LaRoca);
  font-size: 0.85rem;
  margin: 0;
}

.haveAccount a {
  color: var(--dark-text-LaRoca);
  text-decoration: none;
  font-weight: 600;
}

.haveAccount a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------
      PREFERENCES SCREEN
      ------------------------------------------------ */
.preferences-screen {
   background-color: var(--login-bg-LaRoca);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  padding: 0;
  overflow-y: auto;
}

.preferences-screen.active {
  opacity: 1;
  visibility: visible;
}

.preferences-container {
  width: 90%;
  max-width: 400px;
  background-color: var(--login-bg-LaRoca);
  padding: 1.5rem 0rem 1rem;
  text-align: left;
  height: auto;
  max-height: 90vh;
  overflow-y: auto;
  margin-top: 4rem;
  margin-left: auto;
  margin-right: auto;
}

.preferences-title {
  font-size: 40px;
  color: var(--dark-text-LaRoca);
  margin-bottom: 1rem;
  line-height: 1.2;
  text-align: center;
}

.preferences-subtitle {
  font-size: 21px;
  color: var(--dark-text-LaRoca);
  margin-bottom: 2rem;
  line-height: 1.18;
  letter-spacing: -1.14px;
  text-align: left;
  width: 100%;
}

.preferences-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field {
  text-align: left;
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--dark-text-LaRoca);
  border-radius: 8px;
  font-size: 0.95rem;
  background-color: var(--input-bg);
  color: var(--dark-text);
}

/* Style for placeholder text and input text separately */
.form-field input::placeholder {
  color: var(--dark-text-LaRoca);
  opacity: 0.9;
}

/* Specific styles for date input to improve mobile UX */
.form-field input[type="date"] {
  position: relative;
  color: var(--dark-text-LaRoca);
}

/* Placeholder simulado con label para input de fecha */
.birthday-field {
  position: relative;
}

.date-placeholder {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dark-text-LaRoca);
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
  font-size: 14px;
  z-index: 1;
  opacity: 1; /* Visible por defecto */
}

/* Ocultar el texto del input cuando está vacío para que se vea el label */
.birthday-field input[type="date"]:not(:focus):invalid {
  color: transparent;
}

.birthday-field input[type="date"]:not(:focus):invalid::-webkit-datetime-edit {
  color: transparent;
}

/* Ocultar específicamente cada parte del formato de fecha */
.birthday-field input[type="date"]:not(.has-value):not(:focus)::-webkit-datetime-edit-fields-wrapper {
  color: transparent;
}

.birthday-field input[type="date"]:not(.has-value):not(:focus)::-webkit-datetime-edit-text {
  color: transparent;
}

.birthday-field input[type="date"]:not(.has-value):not(:focus)::-webkit-datetime-edit-month-field,
.birthday-field input[type="date"]:not(.has-value):not(:focus)::-webkit-datetime-edit-day-field,
.birthday-field input[type="date"]:not(.has-value):not(:focus)::-webkit-datetime-edit-year-field {
  color: transparent;
}

/* Ocultar label cuando el input tiene foco o valor */
.birthday-field input[type="date"]:focus ~ .date-placeholder {
  opacity: 0;
}

/* Usar JavaScript para detectar cuando hay valor - ver clase .has-value */
.birthday-field.has-value .date-placeholder {
  opacity: 0;
}

.form-field input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
  position: relative;
  z-index: 2;
}

.form-field input[type="date"]::-webkit-datetime-edit-text,
.form-field input[type="date"]::-webkit-datetime-edit-month-field,
.form-field input[type="date"]::-webkit-datetime-edit-day-field,
.form-field input[type="date"]::-webkit-datetime-edit-year-field {
  color: var(--dark-text);
}

.form-field input[type="date"]::-webkit-datetime-edit {
  color: var(--dark-text);
}

/* Style for the disabled selected option in select */
.form-field select {
  color: var(--dark-text);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}

/* Show disabled options (placeholder) with dark text color */
.form-field select option[disabled] {
  color: var(--dark-text-LaRoca);
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.preferences-form .continue-button {
  margin-top: 1rem;
  width: 100% !important;
  max-width: 100%;
}

.skip-button {
  background: none;
  border: none;
  color: var(--primary-color-LaRoca);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s ease-in-out;
}

.skip-button:hover {
  color: var(--dark-text);
}

/* ------------------------------------------------
      CHAT APP (Keep exactly as is)
      ------------------------------------------------ */
.chat-app {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  width: 100%;
  max-width: 500px;
  height: 100vh;
  max-height: 800px;
  z-index: 1002;
  background-color: var(--chat-bg);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-elegant);
  position: relative;
}

.chat-app.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Ajustar el padding-top del chat-messages para móviles */
@media (max-width: 600px) {
  .chat-messages {
    padding-top: 90px !important;
    /* Aumentar el espacio en móvil */
  }

  /* Si hay banner activo, también ajustar ese caso */
  .chat-app.has-banner .chat-messages {
    padding-top: 220px !important;
    /* Más espacio cuando hay banner */
  }

  /* Sin banner */
  .chat-app:not(.has-banner) .chat-messages {
    padding-top: 90px !important;
    /* Más espacio que en desktop */
  }
}

/* Mantener el header fijo en su posición en escritorio */
@media (min-width: 601px) {
  .chat-header {
    top: 0 !important;
    transition: none;
  }

  /* En escritorio, mantener las posiciones fijas sin importar el teclado */
  .chat-app.has-banner .chat-header {
    top: 120px !important;
  }

  .chat-app.keyboard-open .chat-header {
    /* En escritorio, mantener la posición según si hay banner o no */
    top: inherit;
  }
}

/* Solo aplicar cambios de posición en móvil */
@media (max-width: 600px) {

  /* Header fijo siempre en móvil */
  .chat-header {
    position: fixed !important;
    top: 0 !important;
  }

  /* Cuando hay banner y NO hay teclado */
  .chat-app.has-banner:not(.keyboard-open) .chat-header {
    top: 120px !important;
  }

  /* Cuando el teclado está abierto, header siempre arriba */
  .chat-app.keyboard-open .chat-header {
    top: 0 !important;
  }

  /* Ocultar banners cuando el teclado está abierto */
  .chat-app.keyboard-open .promo-carousel:not([style*="display: none"]) {
    transform: translateY(-120px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  }
}

/* Para dispositivos pequeños */
@media (max-width: 320px) {
  .chat-messages {
    padding-top: 100px !important;
    /* Aún más espacio para pantallas muy pequeñas */
  }

  .chat-app.has-banner .chat-messages {
    padding-top: 230px !important;
  }

  .chat-app:not(.has-banner) .chat-messages {
    padding-top: 100px !important;
  }
}

/* Chat header */
.chat-header {
  background-color: var(--header-chat-LaRoca);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  z-index: 1000 !important;
  transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

/* Añadir un padding superior al contenedor de mensajes para compensar el header fijo */
.chat-messages {
  padding-top: 64px !important;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message.user {
  margin-bottom: 8px !important;
}

.avatar-container {
  position: relative;
  margin-right: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--chat-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-indicator {
  width: 12px;
  height: 12px;
  background-color: var(--success-color);
  border-radius: 50%;
  border: 2px solid var(--chat-bg);
  position: absolute;
  bottom: 0;
  right: 0;
  transition: border-color 0.3s ease-in-out;
  display: none;
}

.contact-info {
  flex: 1;
}

.contact-info h1 {
  font-size: 17px;
  font-weight: 500;
}

.contact-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 2px;
  transition: color 0.3s ease-in-out;
}

.contact-status {
  font-size: 12px;
  color: var(--primary-color-LaRoca);
  transition: color 0.3s ease-in-out;
}

.map-button,
.settings-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: none;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--dark-text);
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
  margin-left: 8px;
}

.header-rating-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: none;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--dark-text);
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
  margin-left: 8px;
}

.map-button:hover,
.settings-button:hover,
.header-rating-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .map-button:hover,
[data-theme="dark"] .settings-button:hover,
[data-theme="dark"] .header-rating-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Chat messages area */
.chat-messages {
  flex: 1;
  width: 100%;
  padding: 8px 12px;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: var(--chat-bg);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background-color 0.3s ease-in-out;
  position: relative;
  -webkit-overflow-scrolling: touch;
  height: calc(var(--app-height) - 120px);
  scrollbar-width: none;
  /* Para Firefox */
  -ms-overflow-style: none;
  /* Para Internet Explorer y Edge */
}

/* Para navegadores WebKit (Chrome, Safari, etc.) */
.chat-messages::-webkit-scrollbar {
  display: none;
}

/* Message containers */
.message-container {
  display: flex;
  max-width: 80%;
  animation: messageAppear 0.3s ease-in-out forwards;
}

.message-container.carousel-message-container {
  max-width: 100%;
}

.bot-container {
  flex-direction: row;
  align-items: flex-end;
  align-self: flex-start;
}

.bot-container.carousel-message-container {
  align-items: flex-start;
  align-self: flex-start;
}

.user-container {
  align-self: flex-end;
  flex-direction: column;
  align-items: flex-end;
}

/* Message styles */
.message {
  border-radius: 12px;
  position: relative;
  margin-bottom: 2px;
  word-break: break-word;
}

.bot {
  background-color: var(--bot-message-bg);
  color: var(--dark-text);
  max-width: 320px;
  width: fit-content;
  min-height: 48px;
  padding: 12px 12px 12px 12px;
  border-radius: 12px;
  gap: 10px;
  opacity: 1;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.user {
  background: rgba(217, 252, 212, 1);
  color: var(--font-message-LaRoca);
  box-shadow: 0px -3px 6px 0px rgba(244, 245, 250, 0.6) inset;
  max-width: 320px;
  min-height: 48px;
  padding: 12px 12px 12px 12px;
  border-radius: 12px;
  gap: 10px;
  opacity: 1;
  transition: background-color 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}


.message-content {
  font-size: 14px;
  line-height: 1.4;
}

/* Remove list bullets inside bot messages */
.message-content ul,
.message-content ol {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.message-content li {
  margin-left: 0;
}

/* Audio badge message (primera burbuja verde) */
.audio-badge-message {
  background-color: #defbdb !important;
  padding: 12px;
  border-radius: 12px;
  display: inline-block;
  width: 97.6px;
  height: 48px;
  opacity: 1;
  max-width: fit-content;
}

.audio-badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.audio-label {
  font-size: 14px;
  font-weight: 500;
  color: #303030;
}

/* Transcription message (segunda burbuja gris claro) */
.transcription-message {
  background-color: #f4f5ff !important;
  color: #303030;
  margin-top: 4px;
}

/* Quick reply styles */
.quick-reply-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  animation: messageAppear 0.3s ease-in-out forwards;
}

.quick-reply-divider {
  display: flex;
  flex-direction: column;
  text-align: center;
  margin-bottom: 5px;
}

.quick-reply-divider::before {
  content: "";
  width: 100%;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 5px;
  /* Espacio entre la línea y el texto */
}

/* Eliminar este pseudo-elemento que crea la línea de abajo */
.quick-reply-divider::after {
  content: none;
}

.quick-reply-divider span {
  padding: 0 10px;
  color: #9CA3AF;
  font-size: 0.75rem;
}

.quick-reply-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-reply-button {
  background-color: var(--quick-reply-bg-LaRoca);
  color: var(--dark-text-LaRoca);
  border: 1px solid var(--quick-reply-border-LaRoca);
  border-radius: 12px;
  padding: 10px 15px;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
  width: 100%;
}

.quick-reply-button:hover {
  background-color: rgba(16, 185, 129, 0.15);
  transform: translateY(-2px);
}

.quick-reply-button:active {
  transform: translateY(0);
}

/* Modificar el divisor para ajustar el color del texto */
.quick-reply-divider span {
  padding: 0 10px;
  color: #9CA3AF;
  /* Ajustar a un gris más claro para coincidir con la imagen */
  font-size: 0.75rem;
}

/* Chat input area */
.chat-input-area {
  padding: 8px 12px;
  background-color: var(--primary-light-LaRoca);
  border-top: 1px solid #EAEAEA;
  display: flex;
  align-items: center;
  gap: 8px;
  position: sticky;
  bottom: 0;
  z-index: 19;
}

/* Contenedor que incluye tanto el textarea como el botón de micrófono */
.input-container {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background-color: #FFF;
  border-radius: 8px;
  border: 1px solid #EAEAEA;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

/* Cambiar color del input-container cuando el textarea tiene foco */
.input-container:focus-within {
  background-color: #f0f4db;
  border-color: #7e8a4a;
}

/* Estilos para el campo de texto */
#chat-input {
  width: 318px;
  height: 48px;
  justify-content: space-between;
  padding: 10px 16px;
  border-radius: 8px;
  border: 2px solid transparent;
  outline: none;
  resize: none;
  font-size: 14px;
  background-color: transparent;
  color: #333;
  opacity: 1;
  transition: filter 0.3s ease-in-out;
}

#chat-input:disabled {
  filter: blur(1px);
  cursor: not-allowed;
}

/* Estilos para el placeholder cuando está en modo listening */
#chat-input.listening {
  text-align: center;
}

#chat-input.listening::placeholder {
  text-align: center;
  color: #606060;
  font-weight: 500;
}


/* Estilos para el botón de micrófono (ahora fuera del input) */
.mic-button {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: none;
  background-color: var(--primary-color-LaRoca);
  color: white;
  display: flex; /* Visible por defecto */
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.3s ease-in-out;
  flex-shrink: 0;
}

/* Estilos para el botón de enviar */
.send-button {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: none;
  background-color: var(--primary-color-LaRoca);
  color: white;
  display: none; /* Oculto por defecto */
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.3s ease-in-out;
  flex-shrink: 0;
}

/* Mostrar send-button cuando el input tiene contenido */
.chat-input-area.has-text .send-button {
  display: flex;
}

/* Ocultar mic-button cuando el input tiene contenido */
.chat-input-area.has-text .mic-button {
  display: none;
}

/* Estilo para cuando está grabando */
.mic-button.recording {
  background-color: #FF383C;
  color: white;
}

#chat-input::-webkit-scrollbar {
  display: none;
}

.mic-button:hover,
.send-button:hover {
  opacity: 0.9;
}


/* Transcription UI */
.transcription-container {
  display: flex;
  align-items: center;
  background-color: rgba(16, 185, 129, 0.1);
  border-radius: 18px;
  padding: 10px 15px;
  max-width: 80%;
  align-self: flex-end;
  margin-bottom: 8px;
  transition: background-color 0.3s ease-in-out;
}

.transcription-content {
  flex: 1;
  font-size: 14px;
  color: var(--dark-text);
  transition: color 0.3s ease-in-out;
}

.transcription-buttons {
  display: flex;
  gap: 8px;
  margin-left: 12px;
}

.transcription-edit,
.transcription-send {
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.transcription-edit {
  color: var(--dark-text);
  transition: color 0.3s ease-in-out;
}

.transcription-send {
  color: var(--primary-color);
  transition: color 0.3s ease-in-out;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 0px 0px;
  background-color: var(--chat-bg-LaRoca);
  border-radius: 18px;
  align-self: flex-start;
  transition: background-color 0.3s ease-in-out;
}

.thinking-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  animation: thinkingBounce 1.4s ease-in-out infinite;
}

/* Animación para los puntos del SVG */
@keyframes thinkingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-4px);
  }
}

.thinking-text {
  font-size: 14px;
  color: var(--dark-text-LaRoca);
  font-weight: 400;
  transition: opacity 0.3s ease-in-out;
}

.thinking-text.fade-out {
  opacity: 0;
}

.thinking-text .dot-1,
.thinking-text .dot-2,
.thinking-text .dot-3 {
  display: inline-block;
  animation: dotBounce 1.4s ease-in-out infinite;
}

.thinking-text .dot-1 {
  animation-delay: 0s;
}

.thinking-text .dot-2 {
  animation-delay: 0.2s;
}

.thinking-text .dot-3 {
  animation-delay: 0.4s;
}

@keyframes dotBounce {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-3px);
  }
}

/* ------------------------------------------------
      EDIT PREFERENCES SCREEN
      ------------------------------------------------ */
.preferences-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.close-button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark-text);
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease-in-out;
}

.close-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .close-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Estilos para la pantalla de edición de perfil */
#edit-preferences-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  height: 100vh;
  max-width: 500px;
  z-index: 1002;
  background-color: var(--chat-bg);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-elegant);
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0s 0.3s ease-in-out;
  overflow: hidden;
}

#edit-preferences-screen.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0s;
}

.edit-preferences-form {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 30px;
}

.form-group {
  text-align: left;
  margin-bottom: 12px;
  background-color: #ffffff;
  border-radius: 8px;
}

.form-group label {
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--dark-text);
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  background-color: #f9f9f9;
  color: #333333;
}

.save-profile-button {
  background-color: #10B981;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  width: 100%;
  margin-top: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

.save-profile-button:hover {
  background-color: #0ea573;
}

.logout-button {
  margin-top: 12px;
  background: none;
  border: 1px solid #e74c3c;
  color: #e74c3c;
  border-radius: 8px;
  padding: 14px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
}

/* Modificar el área de contenido para que sea scrolleable */
.preferences-content.profile-content {
  flex: 1;
  overflow-y: auto !important;
  /* Forzar scroll vertical */
  max-height: calc(100vh - 60px);
  /* Restar altura del header */
  padding-bottom: 20px;
  /* Espacio extra después del último botón */
}

/* Estilos para Mi Perfil */
.profile-content {
  padding: 0 !important;
}

.profile-header {
  display: flex;
  align-items: center;
  padding: 20px 16px;
  background-color: #ffffff;
  border-bottom: 1px solid #f1f1f1;
}

.profile-avatar {
  width: 60px;
  height: 60px;
  background-color: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
}

.profile-user-info {
  text-align: left;
}

.profile-username {
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 4px;
}

.profile-subtitle {
  font-size: 13px;
  color: #777777;
}

/* Mejorar los estilos de las notificaciones */
.notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  text-align: center;
  min-width: 200px;
}

.notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.notification.success {
  background-color: #10B981;
  color: white;
}

.notification.error {
  background-color: #EF4444;
  color: white;
}

@media (max-width: 600px) {
  #edit-preferences-screen {
    max-width: 100%;
    border-radius: 0;
  }
}

.edit-preferences-form select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: var(--input-bg);
  font-size: 14px;
  color: var(--dark-text);
  width: 100%;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  transition: border-color 0.3s ease-in-out;
}

.edit-preferences-form select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.logout-button {
  margin-top: 12px;
  background: none;
  border: 1px solid #e74c3c;
  color: #e74c3c;
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  width: 100%;
}

.logout-button:hover {
  background-color: rgba(231, 76, 60, 0.1);
  transform: translateY(-2px);
}

.logout-button:active {
  transform: translateY(0);
}

/* ------------------------------------------------
      APP SETTINGS SCREEN
      ------------------------------------------------ */


/* Estilos para la pantalla de ajustes como página completa */
/* Asegura que el contenedor esté centrado */
#app-settings-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* Esto ayuda con el centrado */
  margin: 0 auto;
  /* Centrado horizontal */
  width: 100%;
  height: 100vh;
  max-width: 500px;
  z-index: 1002;
  background-color: var(--chat-bg);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-elegant);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0s 0.3s ease-in-out;
}

#app-settings-screen.active {
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0s;
}


/* Mejora la apariencia en móviles */
@media (max-width: 600px) {
  #app-settings-screen {
    max-width: 100%;
    border-radius: 0;
  }
}

/* Botón de retroceso */
.back-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: none;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--dark-text);
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
  margin-right: 10px;
}

.back-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .back-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.preferences-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  width: 100%;
  max-width: 500px;
  background-color: #ffffff;
  /* Fondo gris claro */
  padding: 0;
  /* Eliminar padding */
}

/* Ajustar el header de preferencias */
.preferences-header {
  display: flex;
  align-items: center;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  background-color: #ffffff;
  border-bottom: 1px solid #f1f1f1;
  padding: 10px 16px;
}


/* Modificar la apariencia de las opciones de configuración */
.settings-options {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* Reducir espacio entre opciones */
  padding: 10px 12px;
  gap: 6px;
  /* Menor espacio entre opciones */
  margin-top: 0;
  margin-bottom: 0;
}

.settings-option {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 10px;
  /* Bordes redondeados */
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #eaeaea;
  /* Borde gris claro */
  margin-bottom: 6px;
  /* Espacio entre opciones */
  height: 48px;
  /* Altura fija más pequeña */
}

.settings-option:hover {
  background-color: #f9f9f9;
  /* Gris muy claro al pasar el ratón */
  transform: none;
  /* Eliminar la animación de elevación */
}

.settings-option-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 12px;
  color: var(--primary-color);
}

.settings-option-text {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  /* Menos negrita */
  color: #333333;
  /* Color más oscuro para el texto */
}

.settings-option-arrow {
  color: #cccccc;
  /* Gris claro para las flechas */
}

.settings-option-icon svg {
  stroke: var(--primary-color);
  /* Color del icono */
}

/* ------------------------------------------------
      ANIMATIONS
      ------------------------------------------------ */
@keyframes messageAppear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typing-animation {

  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-4px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(226, 82, 65, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(226, 82, 65, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(226, 82, 65, 0);
  }
}

/* ------------------------------------------------
      MEDIA QUERIES AND RESPONSIVENESS
      ------------------------------------------------ */
@media (max-width: 600px) {
  .chat-app {
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .message-container {
    max-width: 85%;
  }

  .welcome-container,
  .onboarding-container,
  .preferences-container {
    width: 95%;
    padding: 1.5rem;
  }
}

@media (max-width: 320px) {
  .preferences-title {
    font-size: 1.25rem;
  }

  .preferences-container {
    padding: 1rem;
  }

  .form-field label {
    font-size: 0.8rem;
  }

  .form-field input,
  .form-field select {
    padding: 0.625rem;
    font-size: 0.875rem;
  }

  .chat-header {
    padding: 8px 12px;
  }

  .avatar {
    width: 32px;
    height: 32px;
  }

  .contact-name {
    font-size: 13px;
  }

  .message-content {
    font-size: 13px;
  }

  .chat-input-area {
    padding: 8px 12px;
  }

  #chat-input {
    padding: 8px 10px;
  }

  .mic-button,
  .send-button {
    width: 36px;
    height: 36px;
  }
}

@media (hover: none) {

  .button:hover,
  .option-button:hover,
  .nav-button:hover,
  .map-button:hover,
  .settings-button:hover {
    transform: none;
    box-shadow: none;
  }
}

@supports (height: 100dvh) {

  body,
  .chat-app {
    height: 100dvh;
  }
}

:root {
  --app-height: 100vh;
}

/* Dark theme adjustments */
[data-theme="dark"] .app-download-banner {
  background: linear-gradient(135deg, var(--primary-dark), #065F46);
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
  .chat-app {
    height: -webkit-fill-available;
    max-height: var(--app-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
  }

  #chat-input {
    font-size: 16px;
  }
}

/* avatar al lado del mensaje */
/* Estilos para el avatar en mensajes */
.message-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 8px;
  flex-shrink: 0;
  /* Evita que el avatar se encoja */
  align-self: flex-end;
  /* Alinea el avatar con la parte superior del mensaje */
  margin-bottom: 0;
  /* Elimina el margen inferior */
  margin-top: auto;
}

.message-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modificar el contenedor de mensaje del bot para incluir el avatar */
.bot-container {
  display: flex;
  align-items: flex-end;
  /* Alinea los elementos en la parte superior */
  max-width: 80%;
  margin-bottom: 8px;
  /* Espacio entre mensajes */
}

/* Asegúrate de que el mensaje ocupe el espacio restante */
.bot-container .message {
  flex: 1;
}

/* Para los mensajes del usuario, mantén el alineamiento a la derecha */
.user-container {
  align-self: flex-end;
}

/* Estilos para el botón "Dejar de generar" */
.stop-generating-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 8px 0;
}

.stop-generating-button {
  display: flex;
  align-items: center;
  background-color: #f2f2f2;
  color: var(--dark-text);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.stop-generating-button::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #17ce92;
  border-radius: 3px;
  margin-right: 8px;
}

/* Estilos para botones de reacción */
.message-reactions {
  display: flex;
  gap: 5px;
  position: absolute;
  right: 8px;
  bottom: -26px;
  /* Posición justo debajo de la burbuja */
  padding: 3px 5px;
  padding-bottom: 3px;
  transition: opacity 0.3s ease-in-out;
  z-index: 10;
}

.message-reactions:hover {
  opacity: 1;
}

/* Ajustar el contenedor de mensaje para posicionamiento relativo */
.bot-container {
  position: relative;
  margin-bottom: 8px;
  /* Añadir espacio para los botones de reacción */
}

/* Añadir margen extra solo cuando tiene botones de reacción */
.bot-container:has(.message-reactions) {
  margin-bottom: 32px;
  /* Espacio para los botones */
}

.reaction-button {
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 3px;
  border-radius: 50%;
  color: var(--subtle-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in-out;
}

.reaction-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: scale(1.1);
}

/* Estilo para botones activos */
.reaction-button.active {
  color: var(--primary-color);
}

.reaction-button.active svg {
  fill: var(--primary-color);
}

/* Color específico para thumbs-down activo */
.reaction-button.thumbs-down.active {
  background: none;
}

.reaction-button.thumbs-down.active img {
  filter: invert(35%) sepia(89%) saturate(3500%) hue-rotate(345deg) brightness(100%) contrast(105%);
}

/* Ajuste para temas oscuros */
[data-theme="dark"] .message-reactions {
  background-color: #2a2a2a;
}

[data-theme="dark"] .reaction-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ------------------------------------------------
   BANNER Y CARRUSEL
   ------------------------------------------------ */

.banner-button {
  background-color: #7e8a4a;
  color: #e3e3e4;
  /* Cambiar de white a var(--primary-color) */
  padding: 8px 20px;
  /* Aumentar el padding para hacerlo más espacioso */
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
  text-transform: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  position: relative;
  z-index: 10;
  right: 0;
  /* Agregar sombra sutil */
  margin-top: 0;
  /* Empuja el botón hacia abajo */
  align-self: flex-end;
  margin-left: auto;
  margin-top: auto;
  /* Alinea el botón en la parte inferior */
  transform: none;
  transition: all 0.3s ease-in-out;
}

/* Agregar efecto hover (opcional) */

.banner-button:hover {
  background-color: #6c773e;
  color: #e3e3e4;
  transform: translateY(3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.banner-button:focus:not(:hover),
.banner-button:active:not(:hover) {
  background-color: #7e8a4a;
  color: #e3e3e4;
}

/* Carrusel de promociones */
.promo-carousel {
  width: 100%;
  height: 120px;
  z-index: 1100;
  /* Mayor que el z-index del header (1000) */
  overflow: hidden;
  position: fixed;
  /* Cambiar a fixed para posicionarlo igual que el header */
  top: 0;
  /* Comienza en la parte superior */
  left: 0;
  right: 0;
  max-width: 500px;
  margin: 0 auto;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.carousel-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  /* Capa semi-transparente negra */
  z-index: -1;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: blur(1px);
  /* Añade esta línea para crear el efecto de desenfoque */
}

.carousel-slide .banner-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  width: calc(100% - 24px);
  margin: 12px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
  z-index: 5;
  height: calc(100% - 24px);
  box-sizing: border-box;
}

.carousel-slide .banner-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  padding: 0 8px;
  color: white;
  position: relative;
  z-index: 5;
  height: 100%;
  gap: 12px;
  /* Asegurar que ocupe toda la altura */
}

.banner-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  max-width: 90%;
  margin-top: 0;
  flex: 1;
}

.banner-text h2 {
  font-family: 'Aime';
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.5px;
}

.banner-text p {
  font-family: 'BrownStd';
  font-size: 14px;
  margin: 0;
  opacity: 0.9;
}

/* Navegación con puntos */
.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 5px;
  display: none;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.dot.active {
  background-color: white;
}


/* Ajustar el header cuando hay banner visible */
.chat-app.has-banner .chat-header {
  top: 120px !important;
  /* Mover el header debajo del banner */
  transition: top 0.3s ease-in-out;
}

/* Ajustar el área de mensajes cuando hay banner */
.chat-app.has-banner .chat-messages {
  padding-top: 200px !important;
  /* Espacio para header (60px) + banner (120px) */
  transition: padding-top 0.3s ease-in-out;
}

/* Cuando solo está el header, sin banner */
.chat-app:not(.has-banner) .chat-messages {
  padding-top: 80px !important;
  /* Solo espacio para el header */
  transition: padding-top 0.3s ease-in-out;
}

/* Header cuando NO hay banner o cuando el teclado está abierto */
.chat-app:not(.has-banner) .chat-header,
.chat-app.keyboard-open .chat-header {
  top: 0 !important;
  transition: top 0.3s ease-in-out;
}

/* Botón para cerrar el carrusel */
/* Botón para cerrar el carrusel - Diseño mejorado */
.close-carousel-button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 102;
  color: #333;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  opacity: 0;
  /* Inicialmente invisible */
  visibility: hidden;
  /* Inicialmente oculto */
  transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s ease-in-out, transform 0.3s ease-in-out;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  transform: scale(0.8);
}

/* Cuando está visible */
.close-carousel-button.visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-in-out, visibility 0s linear 0s, transform 0.3s ease-in-out;
  transform: scale(1);
}

.close-carousel-button:hover {
  background-color: white;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  color: #10B981;
}

.close-carousel-button:active {
  transform: rotate(90deg) scale(0.95);
}

/* Efecto de onda al hacer clic */
.close-carousel-button::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.close-carousel-button:active::after {
  opacity: 1;
  transform: scale(1.5);
}

/* Clase para cuando se elimina el carrusel */
.chat-app.no-banner .chat-messages {
  height: calc(var(--app-height) - 60px);
  /* Ajustar solo para el alto del header */
}

/* Añade esto a tu styles.css */
@keyframes pulse-textarea {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

#chat-input.pulse-effect {
  animation: pulse-textarea 0.3s ease-in-out forwards;
}

/* Estilo para el botón de micrófono durante la transcripción */
.mic-button.transcribing {
  animation: pulse 1s infinite;
  background-color: var(--primary-color-LaRoca);
}

/* Animación de pulso para el micrófono */
@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

/* ------------------------------------------------
   POPUP MODAL
   ------------------------------------------------ */
.popup-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-in-out;
}

.popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.popup-card {
  position: relative;
  width: 272px;
  max-width: calc(100% - 32px);
  height: 450px;
  background-color: white;
  border-radius: 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  z-index: 2;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.3s ease-in-out;
  overflow: hidden;
  opacity: 1;
}

.close-popup-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.05);
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: #333;
  transition: all 0.3s ease-in-out;
  z-index: 3;
}
/* Forzar fondo blanco en el botón de cerrar popup */
#popup-modal .close-carousel-button {
  background-color: rgba(255, 255, 255, 0.9) !important;
}

.close-popup-button:hover {
  background-color: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.close-popup-button:active {
  transform: rotate(90deg) scale(0.95);
}

.popup-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.popup-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

.popup-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  flex: 1;
  justify-content: space-between;
}

.popup-content h3 {
  font-family: 'Aime', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--dark-text-LaRoca, #333);
  line-height: 1.2;
}

.popup-content p {
  font-family: 'BrownStd', sans-serif;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  color: var(--dark-text-LaRoca, #333);
  line-height: 1.4;
  flex: 1;
}

.popup-content .popup-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background-color: var(--primary-color-LaRoca, #10B981);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'BrownStd', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  width: 100%;
  text-decoration: none;
  margin-top: auto;
  text-decoration: none;
  align-self: flex-start;
}

.popup-content .popup-cta:hover {
  background-color: var(--primary-dark-LaRoca, #059669);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.popup-content .popup-cta:active {
  transform: translateY(0);
}



@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Estilos para navegación tipo mapa - Versión refinada */
.navigation-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: #f5f5f7;
  border-radius: 16px;
  padding: 12px 14px;
  /* Padding reducido */
}

.navigation-header {
  display: flex;
  align-items: center;
  gap: 10px;
  /* Gap reducido */
  margin-bottom: 6px;
  /* Margen reducido */
  padding-left: 3px;
}

.header-dot {
  width: 10px;
  /* Más pequeño */
  height: 10px;
  background-color: #9CA3AF;
  border-radius: 50%;
  flex-shrink: 0;
}

.header-title {
  font-size: 14px;
  /* Fuente más pequeña */
  font-weight: 600;
  color: #374151;
}

.steps-wrapper {
  position: relative;
  padding-left: 5px;
  padding-bottom: 14px;
}

/* Línea vertical punteada */
.steps-wrapper::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 1.5px;
  /* Línea más delgada */
  background-image: linear-gradient(to bottom, #D1D5DB 50%, transparent 50%);
  background-size: 1.5px 6px;
  /* Puntos más pequeños */
  background-repeat: repeat-y;
}

.navigation-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  /* Gap reducido */
  padding: 6px 0;
  /* Padding reducido */
  margin-left: 0;
  position: relative;
}

.direction-icon {
  width: 30px;
  /* Icono más pequeño */
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-color);
  background-color: rgba(16, 185, 129, 0.1);
  border-radius: 8px;
  /* Radio reducido */
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  border: none;
  transition: all 0.3s ease-in-out;
}

.direction-icon svg {
  width: 18px;
  /* SVG más pequeño */
  height: 18px;
  stroke-width: 2.5;
}

/* Efecto hover opcional */
.direction-icon:hover {
  background-color: rgba(16, 185, 129, 0.15);
  transform: scale(1.05);
}

/* Estilos específicos para diferentes tipos de dirección */
.navigation-step:last-child .direction-icon {
  background-color: var(--primary-color);
  color: white;
}

.step-content {
  flex: 1;
  padding-top: 3px;
  /* Padding superior reducido */
}

.step-instruction {
  font-size: 14px;
  /* Fuente más pequeña */
  line-height: 1.3;
  /* Interlineado más compacto */
  color: #1F2937;
  margin-bottom: 2px;
  /* Margen reducido */
}

.step-distance {
  font-size: 12px;
  /* Fuente más pequeña */
  color: #6B7280;
  margin-top: 1px;
}

/* Último paso - punto de destino */
.navigation-step:last-child {
  padding-bottom: 8px;
}

/* Mejoras visuales adicionales */
.navigation-container {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  /* Sombra sutil */
}

/* Para alinear mejor los iconos con el texto */
.navigation-step {
  align-items: center;
  /* Cambiar de flex-start a center */
}

.step-content {
  padding-top: 0;
  /* Quitar padding superior ya que está centrado */
}

/* Efecto visual mejorado para el último paso */
.navigation-step:last-child .direction-icon {
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

/* Tema oscuro - ajustes para tamaños reducidos */
[data-theme="dark"] .navigation-container {
  background-color: #1F2937;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .header-title,
[data-theme="dark"] .step-instruction {
  color: #F9FAFB;
}

[data-theme="dark"] .step-distance {
  color: #9CA3AF;
}

[data-theme="dark"] .direction-icon {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--primary-light);
}

[data-theme="dark"] .navigation-step:last-child .direction-icon {
  background-color: var(--primary-color);
  color: white;
}

[data-theme="dark"] .steps-wrapper::before {
  background-image: linear-gradient(to bottom, #4B5563 50%, transparent 50%);
}

/* Ajustar el ancho del mensaje para que sea más similar a la imagen */
.bot-container:has(.navigation-container) {
  max-width: 90%;
}

/* Hacer el mensaje más ancho en móviles */
@media (max-width: 600px) {
  .bot-container:has(.navigation-container) {
    max-width: 95%;
  }
}

/* Transición suave cuando aparece el contenedor */
.navigation-container {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mejorar la legibilidad con mejor contraste */
.step-instruction {
  font-weight: 500;
  /* Peso de fuente medio para mejor legibilidad */
}

/* Ajuste fino para el espaciado entre pasos */
.navigation-step:not(:last-child) {
  margin-bottom: 2px;
}

/* Estilo más moderno para el header */
.navigation-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

/* Contenedor del mapa interactivo nativo */
.mappedin-container {
  width: 100%;
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: #f5f5f5;
  position: relative;
}

.mappedin-map {
  width: 100%;
  height: 280px;
  position: relative;
}

/* Estados de carga y error */
.mappedin-loading,
.mappedin-error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 300px;
  color: #6B7280;
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

.mappedin-error {
  color: #EF4444;
}

/* Marcadores personalizados */
.mappedin-marker-start,
.mappedin-marker-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mappedin-marker-start .marker-dot {
  width: 16px;
  height: 16px;
  background: #10B981;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.mappedin-marker-end .marker-dot {
  width: 16px;
  height: 16px;
  background: #EF4444;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.mappedin-marker-start .marker-label,
.mappedin-marker-end .marker-label {
  background: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

/* Ajuste responsive para el mapa */
@media (max-width: 768px) {
  .mappedin-map {
    height: 260px;
  }
}

@media (max-width: 480px) {
  .mappedin-map {
    height: 240px;
  }
}

/* Ajuste para dispositivos pequeños */
@media (max-width: 400px) {
  .navigation-container {
    padding: 10px 12px;
  }

  .step-instruction {
    font-size: 13px;
  }

  .step-distance {
    font-size: 11px;
  }
}

/* Estilos para el carrusel de restaurantes */
.restaurant-carousel-container {
  width: 100%;
  margin: 2px 0;
  position: relative;
  overflow-x: hidden;
  /* Ocultar overflow del contenedor */
  padding-right: 0;
}

/* Indicadores de scroll (blur) */
.restaurant-carousel-container::after,
.restaurant-carousel-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 1;
}

.restaurant-carousel-container::after {
  right: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--chat-bg, #ffffff) 85%);
}

.restaurant-carousel-container::before {
  left: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0), var(--chat-bg, #ffffff) 85%);
}

.restaurant-carousel-container.scroll-right::after {
  opacity: 1;
}

.restaurant-carousel-container.scroll-left::before {
  opacity: 1;
}


.restaurant-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 12px;
  padding: 0 8px 8px 0;
  scroll-behavior: smooth;
  margin-left: 0;
  width: 100%;
  box-sizing: border-box;
}

.restaurant-carousel::-webkit-scrollbar {
  display: none;
}

/* Tarjeta individual */
.restaurant-card {
  flex: 0 0 220px;
  min-width: 220px;
  position: relative;
  background-color: #F3F4F6;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.restaurant-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Tag informativo */
.restaurant-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: rgba(0, 0, 0, 0.75);
  color: #FFFFFF;
  font-family: 'BrownStd', sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 1;
}

/* Imagen del restaurante */
.restaurant-image {
  width: 100%;
  height: 120px;
  overflow: hidden;
}

.restaurant-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contenido con fondo blanco */
.restaurant-content {
  padding: 12px;
  background-color: #FFFFFF;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header con nombre e ícono */
.restaurant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.restaurant-name {
  font-family: "Aime", sans-serif;
  font-size: 16px;
  color: #212121;
  margin: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ícono de teléfono */
.restaurant-phone-icon {
  width: 32px;
  height: 32px;
  background-color: #7E8A4A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-decoration: none;
  flex-shrink: 0;
  margin-left: 8px;
  transition: background-color 0.3s ease-in-out;
}

.restaurant-phone-icon:hover {
  background-color: #6a7540;
}

.restaurant-description {
  font-family: 'BrownStd', sans-serif;
  font-size: 13px;
  color: #202020;
  margin: 0 0 8px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  line-clamp: 2;
  line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Info con horario */
.restaurant-info {
  margin-bottom: 12px;
}

.restaurant-schedule {
  font-size: 12px;
  color: #6B7280;
  display: flex;
  align-items: center;
  gap: 4px;
}

.schedule-icon {
  font-size: 14px;
}

/* Contenedor de botones */
.restaurant-actions {
  display: flex;
  gap: 8px;
}

/* Botones de acción */
.restaurant-button {
  flex: 1;
  background-color: #7E8A4A;
  color: #FAFBFF;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-family: 'BrownStd', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.restaurant-button:hover {
  background-color: #6a7540;
}

/* Botón de guía con estilo alternativo */
.restaurant-guide-button {
  background-color: #FFFFFF;
  color: #7E8A4A;
  border: 1px solid #7E8A4A;
}

.restaurant-guide-button:hover {
  background-color: #F9FAFB;
  color: #6a7540;
  border-color: #6a7540;
}

/* Mantener compatibilidad con clase antigua */
.restaurant-menu-button {
  background-color: #7E8A4A;
  color: #FAFBFF;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.restaurant-menu-button:hover {
  background-color: #6a7540;
}

/* Contenedor de mensaje específico para carruseles */
/* Contenedor de mensaje específico para carruseles */
.carousel-message-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  margin-bottom: 2px;
  width: 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  position: relative;
  box-sizing: border-box;
}

/* Avatar */
.carousel-message-container .message-avatar {
  flex-shrink: 0;
  margin-right: 8px;
  position: relative;
  /* Cambiado de sticky */
}

/* Contenedor de carrusel */
.carousel-message-container .restaurant-carousel-container {
  flex: 1;
  min-width: 0;
  width: 100%;
  overflow-x: hidden;
  /* Importante para permitir que flex funcione correctamente */
}

/* Para dispositivos móviles */
@media (max-width: 600px) {
  .restaurant-carousel-container {
    width: 100%;
  }

  .restaurant-card {
    flex: 0 0 200px;
    min-width: 200px;
  }

  .carousel-message-container .restaurant-carousel-container {
    width: 100%;
    overflow-x: hidden;
  }
}

/* Para escritorio */
@media (min-width: 601px) {
  .restaurant-carousel-container {
    width: 100%;
    overflow-x: auto;
    /* Permitir scroll en escritorio */
  }

  /* Mostrar una sombra para indicar que hay más contenido */
  .restaurant-carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 0;
    background: transparent;
    pointer-events: none;
    z-index: 1;
  }

  /* Sombra al inicio cuando hay scroll */
  .restaurant-carousel-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0;
    background: transparent;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }

  /* Mostrar sombra izquierda cuando hay scroll */
  .restaurant-carousel-container.has-scroll::before {
    opacity: 0;
  }
}

/* Fix específico para iOS si es necesario */
@supports (-webkit-touch-callout: none) {
  .restaurant-carousel-container {
    transform: translateZ(0);
    /* Activar aceleración por hardware */
  }

  .restaurant-carousel {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
}

/* Fix adicional para evitar problemas de scroll */
.chat-messages {
  overflow-x: hidden;
  /* Prevenir scroll horizontal del chat */
  overflow-y: auto;
}

/* Asegurar que las tarjetas son visibles en móvil */
.restaurant-card {
  display: block;
  /* Asegurar display block */
  visibility: visible;
  opacity: 1;
}

/* Fix adicional para evitar que el chat se mueva */
.chat-messages {
  overflow-x: hidden;
  /* Evitar scroll horizontal en el contenedor de mensajes */
}

/* Tema oscuro */
[data-theme="dark"] .restaurant-card {
  background-color: #1F2937;
}

[data-theme="dark"] .restaurant-content {
  background-color: #1F2937;
}

[data-theme="dark"] .restaurant-name {
  color: #F9FAFB;
}

[data-theme="dark"] .restaurant-description,
[data-theme="dark"] .restaurant-schedule {
  color: #D1D5DB;
}

[data-theme="dark"] .restaurant-menu-button {
  background-color: #374151;
  color: #F9FAFB;
  border-color: #4B5563;
}

[data-theme="dark"] .restaurant-menu-button:hover {
  background-color: #4B5563;
  border-color: #6B7280;
}

/* Estilos para el carrusel de tiendas */
.store-carousel-container {
  width: 100%;
  margin: 2px 0;
  position: relative;
  overflow-x: hidden;
  padding-right: 0;
}

/* Indicadores de scroll (blur) para tiendas */
.store-carousel-container::after,
.store-carousel-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 1;
}

.store-carousel-container::after {
  right: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--chat-bg, #ffffff) 85%);
}

.store-carousel-container::before {
  left: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0), var(--chat-bg, #ffffff) 85%);
}

.store-carousel-container.scroll-right::after {
  opacity: 1;
}

.store-carousel-container.scroll-left::before {
  opacity: 1;
}

.store-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 12px;
  padding: 0 8px 8px 0;
  scroll-behavior: smooth;
  margin-left: 0;
  width: 100%;
  box-sizing: border-box;
}

.store-carousel::-webkit-scrollbar {
  display: none;
}

/* Tarjeta individual de tienda */
.store-card {
  flex: 0 0 220px;
  min-width: 220px;
  background-color: #F3F4F6;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.store-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Header con Category y Promotion */
.store-card-header {
  position: relative;
  width: 100%;
  height: 160px;
  background-color: #e5e5e5;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px;
  box-sizing: border-box;
}

/* Badge de Promotion (izquierda) */
.store-promotion-badge {
  width: 75px;
  height: 24px;
  padding: 4px 8px;
  border: 1px solid #212121;
  border-radius: 4px;
  background-color: #212121;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  box-sizing: border-box;
  opacity: 1;
  position: absolute;
  left: 8px;
  bottom: 8px;
}

/* Label de Category (derecha) */
.store-category-label {
  width: 70px;
  height: 24px;
  padding: 4px 8px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.82);
  color: #4B5563;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  box-sizing: border-box;
  opacity: 1;
  position: absolute;
  right: 8px;
  top: 8px;
}

/* Contenedor de imagen con badge de descuento */
.store-image-wrapper {
  position: relative;
  width: 100%;
}

/* Imagen de la tienda */
.store-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background-color: #f8f8f8;
}

.store-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Badge de descuento superpuesto */
.store-discount-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.85);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  text-align: center;
  backdrop-filter: blur(4px);
}

/* Contenido de la tarjeta */
.store-content {
  padding: 12px;
  background-color: #FFFFFF;
}

.store-name {
  font-family: "Aime", sans-serif;
  font-size: 16px;
  color: #212121;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-description {
  font-family: 'BrownStd', sans-serif;
  font-size: 13px;
  color: #202020;
  margin: 0 0 12px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer de la tarjeta */
.store-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  gap: 4px;
  margin-bottom: 12px;
}

/* Contenedor de botones de acción de tienda */
.store-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* Botones de acción de tienda */
.store-button {
  flex: 1;
  background-color: #7E8A4A;
  color: #FAFBFF;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-family: 'BrownStd', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-button:hover {
  background-color: #6a7540;
}

/* Botón "Guide me" con estilo alternativo (blanco con borde) */
.store-guide-button {
  background-color: #FFFFFF;
  color: #7E8A4A;
  border: 1px solid #7E8A4A;
}

.store-guide-button:hover {
  background-color: #F9FAFB;
  color: #6a7540;
  border-color: #6a7540;
}

/* Indicador de precio */
.store-price-indicator {
  background-color: #7E8A4A;
  color: #FAFBFF;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  flex-shrink: 0;
}

.store-price-indicator:hover {
  background-color: #F9FAFB;
  color: #7E8A4A;
  border-color: #9CA3AF;
}

/* Botón/Icono de ver imágenes */
.store-images-icon {
  height: 32px;
  min-height: 32px;
  flex: 1;
  /* Tomar todo el espacio disponible */
  max-width: 80px;
  /* Limitar el ancho máximo */
  border-radius: 8px;
  background-color: #7E8A4A;
  color: #FAFBFF;
  border: 1px solid #D1D5DB;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  padding: 0 12px;
  /* Añadir padding horizontal */
  position: relative;
  overflow: hidden;
}

.store-images-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(16, 185, 129, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

.store-images-icon:hover::before {
  transform: translateX(100%);
}

.store-images-icon:hover {
  background-color: #F9FAFB;
  color: #7E8A4A;
  border-color: #9CA3AF;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.store-images-icon:active {
  transform: scale(0.95);
}

.store-images-icon svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease-in-out;
}


.store-images-icon:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.store-images-icon:disabled:hover {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--primary-color);
  transform: scale(1);
  box-shadow: none;
}

/* Añadir múltiples iconos para indicar galería */
.store-images-icon svg:first-child {
  position: relative;
  z-index: 2;
}

/* Indicador de precio - ajustado */
.store-price-indicator {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
  background-color: rgba(16, 185, 129, 0.1);
  padding: 6px 12px;
  border-radius: 16px;
  flex-shrink: 0;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Tema oscuro para el icono */
[data-theme="dark"] .store-images-icon {
  background-color: rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] .store-images-icon:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Ajuste para móviles */
@media (max-width: 600px) {
  .store-images-icon {
    height: 28px;
    min-height: 28px;
    padding: 0 10px;
  }

  .store-price-indicator {
    height: 28px;
    padding: 4px 10px;
  }

  .store-images-icon svg {
    width: 18px;
    height: 18px;
  }
}


/* Tema oscuro para tiendas */
[data-theme="dark"] .store-card {
  background-color: #1F2937;
}

[data-theme="dark"] .store-content {
  background-color: #1F2937;
}

[data-theme="dark"] .store-name {
  color: #F9FAFB;
}

[data-theme="dark"] .store-description {
  color: #D1D5DB;
}

[data-theme="dark"] .store-discount-badge {
  background-color: rgba(0, 0, 0, 0.9);
}

[data-theme="dark"] .store-price-indicator {
  background-color: rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

[data-theme="dark"] {
  background-color: var(--primary-color);
  color: white;
}

/* Responsivo para móviles */
@media (max-width: 600px) {
  .store-card {
    flex: 0 0 200px;
    min-width: 200px;
  }

  .store-image {
    height: 120px;
  }

  .store-discount-badge {
    font-size: 11px;
    padding: 5px 10px;
  }
}

/* Galería de imágenes a pantalla completa */
.product-images-gallery {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  display: none;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.product-images-gallery.show {
  display: flex;
  opacity: 1;
}

/* Header de la galería */
.gallery-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  padding: 16px 20px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gallery-title {
  color: white;
  font-size: 16px;
  font-weight: 600;
}

.gallery-counter {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.gallery-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: white;
  transition: background-color 0.3s ease-in-out;
}

.gallery-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Contenedor principal de imágenes */
.gallery-main {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
}

/* Contenedor de imagen activa */
.gallery-image-container {
  position: relative;
  width: 90%;
  max-width: 600px;
  height: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  user-select: none;
  -webkit-user-drag: none;
}

/* Indicadores de slide */
.gallery-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.gallery-dot.active {
  background-color: white;
  transform: scale(1.2);
}

/* Botones de navegación */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  z-index: 10;
}

.gallery-nav:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
  left: 20px;
}

.gallery-nav.next {
  right: 20px;
}

/* Ocultar navegación en primera/última imagen */
.gallery-nav.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Transiciones de imagen */
.gallery-image-container {
  transition: transform 0.3s ease-in-out;
}

/* Efecto de swipe */
.gallery-image-container.swiping {
  transition: none;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-nav {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
  }

  .gallery-nav.prev {
    left: 10px;
  }

  .gallery-nav.next {
    right: 10px;
  }

  .gallery-image-container {
    width: 95%;
    height: 70%;
  }
}

/* Animación de entrada */
@keyframes galleryImageIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.gallery-image {
  animation: galleryImageIn 0.3s ease-in-out;
}

/* Contenedor del carrusel de servicios */
.service-carousel-container {
  width: 100%;
  position: relative;
  margin: 2px 0;
}

/* Indicadores de scroll (blur) para servicios */
.service-carousel-container::after,
.service-carousel-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 1;
}

.service-carousel-container::after {
  right: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--chat-bg, #ffffff) 85%);
}

.service-carousel-container::before {
  left: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0), var(--chat-bg, #ffffff) 85%);
}

.service-carousel-container.scroll-right::after {
  opacity: 1;
}

.service-carousel-container.scroll-left::before {
  opacity: 1;
}

.service-carousel {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 5px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.service-carousel::-webkit-scrollbar {
  display: none;
}

/* Tarjeta de servicio */
.service-card {
  flex: 0 0 220px;
  min-width: 220px;
  background: #F3F4F6;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  scroll-snap-align: start;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Imagen del servicio */
.service-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contenido de la tarjeta */
.service-content {
  padding: 12px;
  background-color: #FFFFFF;
}

.service-name {
  font-family: "Aime", sans-serif;
  font-size: 16px;
  color: #212121;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-description {
  font-family: 'BrownStd', sans-serif;
  font-size: 13px;
  color: #202020;
  margin: 0 0 12px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer con botones híbridos */
.service-footer {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: space-between;
  margin-top: auto;
}

.service-action-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  text-decoration: none;
  border: none;
}

.service-action-button.primary {
  background-color: #7E8A4A;
  color: #FAFBFF;
  border: 1px solid #D1D5DB;
}

.service-action-button.primary:hover {
  background-color: #F9FAFB;
  color: #7E8A4A;
  border-color: #9CA3AF;
}

.service-action-button.secondary {
  background-color: #7E8A4A;
  color: #FAFBFF;
  border: 1px solid #D1D5DB;
}

.service-action-button.secondary:hover {
  background-color: #F9FAFB;
  color: #7E8A4A;
  border-color: #9CA3AF;
}

.service-action-button svg {
  flex-shrink: 0;
}

.service-action-button span {
  white-space: nowrap;
}

/* Botones icono - NUEVO */
.service-icon-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  border: none;
  text-decoration: none;
  position: relative;
}

/* Icono de acceso al servicio */
.service-icon-button.access-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.service-icon-button.access-icon:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Icono de más información */
.service-icon-button.info-icon {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border: 2px solid rgba(102, 126, 234, 0.2);
}

.service-icon-button.info-icon:hover {
  background: rgba(102, 126, 234, 0.2);
  border-color: #667eea;
  transform: translateY(-2px) scale(1.05);
}

/* Efecto tooltip (opcional) */
.service-icon-button::before {
  content: attr(aria-label);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
  pointer-events: none;
  margin-bottom: 5px;
}

.service-icon-button:hover::before {
  opacity: 1;
  visibility: visible;
}

/* Responsive para móviles */
@media (max-width: 600px) {
  .service-card {
    flex: 0 0 250px;
  }

  .service-content {
    padding: 16px;
  }

  .service-name {
    font-size: 16px;
  }

  .service-description {
    font-size: 13px;
  }

  .service-footer {
    gap: 15px;
    /* Menos espacio en móvil */
  }

  .service-icon-button {
    width: 40px;
    height: 40px;
  }
}

/* ------------------------------------------------
      PRIVACY POLICY SCREEN
      ------------------------------------------------ */
.privacy-policy-screen {
  background-color: var(--login-bg-LaRoca);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  padding: 2rem 1rem;
  overflow-y: auto;
}

.privacy-policy-screen.active {
  opacity: 1;
  visibility: visible;
}

.privacy-policy-container {
  width: 100%;
  max-width: 400px;
  background-color: var(--login-bg-LaRoca);
  padding: 1rem 1.5rem 1rem 1.5rem;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.privacy-policy-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.privacy-policy-header {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.privacy-policy-title {
  
  color: var(--dark-text-LaRoca);
  margin: 0;
  line-height: 1.2;
}

.privacy-policy-content {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.privacy-policy-message {
  font-size: 1.145rem;
  color: var(--dark-text-LaRoca);
  line-height: 1.6;
  margin: 0;
  text-align: left;
  
}

.privacy-policy-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0;
  flex: 0 0 auto;
  padding-bottom: 1rem;
}

/* Make the privacy accept button span full width of the actions column */
#privacy-accept-btn {
  width: 100%;
  max-width: 100%;
  display: inline-block;
  padding: 12px 18px;
  box-sizing: border-box;
}

.privacy-view-link {
  background-color: transparent;
  border: none;
  color: var(--primary-color-LaRoca);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.3s ease-in-out;
  margin-top: 0.25rem;
  text-decoration: underline;
}

.privacy-view-link:hover {
  opacity: 0.7;
}

/* Responsive adjustments for mobile */
@media (max-height: 700px) {
  .privacy-policy-container {
    min-height: 90vh;
    padding-bottom: 2rem;
  }
  
  .privacy-policy-actions {
    padding-bottom: 1.5rem;
  }
}

@media (max-height: 600px) {
  .privacy-policy-main {
    gap: 1.5rem;
  }
  
  .privacy-policy-title {
    font-size: 2rem;
  }
  
  .privacy-policy-message {
    font-size: 1rem;
  }
}

/* ------------------------------------------------
      PRIVACY POLICY MODAL
      ------------------------------------------------ */
.privacy-policy-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.privacy-policy-modal.active {
  display: flex;
}

.privacy-policy-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.privacy-policy-modal-content {
  position: relative;
  width: 90%;
  max-width: 500px;
  max-height: 85vh;
  background-color: var(--chat-bg-LaRoca);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  z-index: 2001;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease-in-out;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.privacy-modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--dark-text-LaRoca);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease-in-out;
}

.privacy-modal-close-btn:hover {
  opacity: 0.7;
}

.privacy-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-text-LaRoca);
  margin-bottom: 1rem;
  line-height: 1.2;
  margin-top: 0;
}

.privacy-modal-body {
  font-size: 0.875rem;
  color: var(--light-text-LaRoca);
  line-height: 1.6;
}

.privacy-modal-body p {
  margin-bottom: 0.75rem;
}

.privacy-modal-actions {
  display: flex;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.privacy-modal-disclaimer {
  font-size: 0.7rem;
  color: var(--subtle-text);
  line-height: 1.4;
  margin-top: 0.5rem;
}

/************************************************************
   FEEDBACK MODAL
************************************************************/
.feedback-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: flex-end; /* Alinear al fondo */
}

.feedback-modal.active {
  display: flex;
}

.feedback-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
}

.feedback-modal-content {
  position: relative;
  background-color: white;
  border-radius: 24px 24px 0 0; /* Bordes redondeados solo arriba */
  padding: 1.5rem 1.5rem 2rem 1.5rem;
  width: 100%;
  max-width: 600px; /* Más ancho para desktop */
  max-height: 90vh;
  min-height: 60vh;
  overflow-y: auto;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  animation: slideUpFromBottom 0.3s ease-in-out;
  transform-origin: bottom;
}

@keyframes slideUpFromBottom {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animación de cierre */
.feedback-modal:not(.active) .feedback-modal-content {
  animation: slideDownToBottom 0.3s ease-in-out;
}

@keyframes slideDownToBottom {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(100%);
  }
}

.feedback-modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease-in-out;
}

.feedback-modal-close-btn:hover {
  background-color: #f3f4f6;
}

.feedback-modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  padding-right: 2rem;
}

.feedback-modal-subtitle {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.feedback-modal-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feedback-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feedback-option {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  position: relative;
}

.feedback-option:hover {
  border-color: var(--primary-color-LaRoca);
  background-color: #f9fafb;
}

.feedback-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.feedback-option-text {
  flex: 1;
  font-size: 0.95rem;
  color: #374151;
}

.feedback-radio {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease-in-out;
}

.feedback-option input[type="radio"]:checked ~ .feedback-radio {
  border-color: var(--primary-color-LaRoca);
  background-color: var(--primary-color-LaRoca);
}

.feedback-option input[type="radio"]:checked ~ .feedback-radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: white;
}

.feedback-option input[type="radio"]:checked {
  & ~ .feedback-option-text {
    color: var(--primary-color-LaRoca);
    font-weight: 500;
  }
}

.feedback-option:has(input[type="radio"]:checked) {
  border-color: var(--primary-color-LaRoca);
  background-color: rgba(126, 138, 74, 0.05);
}

/* Deshabilitar opciones cuando se escribe en Other */
.feedback-options.disabled .feedback-option {
  opacity: 0.4;
  pointer-events: none;
}

.feedback-options.disabled .feedback-option input[type="radio"]:checked ~ .feedback-option-text {
  color: #374151;
  font-weight: normal;
}

.feedback-options.disabled .feedback-option:has(input[type="radio"]:checked) {
  border-color: #e5e7eb;
  background-color: transparent;
}

.feedback-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.3s ease-in-out;
}

.feedback-textarea:focus {
  outline: none;
  border-color: var(--primary-color-LaRoca);
}

.feedback-textarea::placeholder {
  color: #9ca3af;
}

.feedback-send-button {
  width: 100%;
  padding: 0.875rem;
  background-color: var(--primary-color-LaRoca);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.3s ease-in-out;
}

.feedback-send-button:hover {
  opacity: 0.9;
}

.feedback-send-button:active {
  transform: scale(0.98);
}
/* Feedback Success Modal */
.feedback-success-content {
  position: relative;
  background: white;
  width: 100%;
  max-width: 600px;
  border-radius: 24px 24px 0 0;
  padding: 2.5rem 1.5rem;
  max-height: 90vh;
  min-height: 40vh;
  overflow-y: auto;
  animation: slideUpFromBottom 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.feedback-success-title {
  font-size: 32px;
  line-height: 32px;
  color: #212121;
  margin: 0 0 1rem 0;
}

.feedback-success-subtitle {
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  line-height: 130%;
  letter-spacing: 0%;
  text-align: center;
  color: var(--dark-text-LaRoca);
  margin: 0;
  max-width: 400px;
}

/* Age Restriction Modal */
.age-restriction-content {
  position: relative;
  background-color: var(--login-bg-LaRoca); /* Same as preferences-screen */
  width: 100%;
  max-width: 600px;
  border-radius: 24px 24px 0 0;
  padding: 2.5rem 1.5rem;
  max-height: 90vh;
  min-height: 40vh;
  overflow-y: auto;
  animation: slideUpFromBottom 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.age-restriction-title {
  font-size: 32px;
  line-height: 110%;
  color: #212121;
  margin: 0 0 1rem 0;
}

.age-restriction-subtitle {
  font-family: BrownStd, "Avenir Next", "Avenir", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  line-height: 130%;
  letter-spacing: 0%;
  text-align: center;
  color: var(--dark-text-LaRoca);
  margin: 0;
  max-width: 400px;
}

/* Rating Button in Chat */
.rating-button-container {
  position: fixed;
  bottom: 80px; /* Sobre el input del chat */
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 8px 0;
  z-index: 1000; /* Por encima del chat */
  pointer-events: none; /* Permite scroll del chat debajo */
  animation: messageAppear 0.3s ease-in-out forwards;
}

.rating-button-container > * {
  pointer-events: auto; /* El botón sí es clickeable */
}

.rating-trigger-button {
  display: flex;
  align-items: center;
  gap: 2px;
  background-color: #f2f2f2;
  color: var(--dark-text);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.rating-trigger-button:hover {
  opacity: 0.9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Rating Modal */
.rating-modal-content {
  position: relative;
  background: white;
  width: 90%;
  max-width: 500px;
  border-radius: 24px;
  padding: 2rem 1.5rem;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-in-out;
  margin: 1rem;
}

.rating-modal-title {
  font-family: Aime, serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0;
  color: #212121;
  margin: 2rem 0 0 0;
  text-align: left;
  vertical-align: middle;
}

.rating-modal-question {
  font-family: BrownStd, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #212121;
  margin: 1.5rem 0 1rem 0;
  text-align: left;
  line-height: 120%;
  letter-spacing: -0.01em;
}

.rating-modal-question:last-of-type {
  margin-top: 2.5rem;
}

.rating-icons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 1.5rem;
}

.rating-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.3s ease-in-out;
  opacity: 0.85;
}

.rating-icon-btn img {
  width: 40px;
  height: 40px;
}

.rating-icon-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.rating-icon-btn.selected {
  opacity: 1;
  transform: scale(1.15);
}

.rating-thumbs {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 2rem;
}

.rating-thumb-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  border-radius: 50%;
  transition: all 0.3s ease-in-out;
  opacity: 0.85;
}

.rating-thumb-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.rating-thumb-btn.selected {
  opacity: 1;
  transform: scale(1.15);
}

.rating-send-button {
  width: 100%;
  padding: 0.875rem;
  background-color: var(--primary-color-LaRoca);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.3s ease-in-out;
}

.rating-send-button:hover {
  opacity: 0.9;
}

.rating-send-button:active {
  transform: scale(0.98);
}

.rating-send-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.rating-send-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
