:root {
  --primary-color: #2d5f3f;
  --secondary-color: #1a3320;
  --accent-color: #6b8e70;
  --bg-color: #f8f8f8;
  --muted-bg-color: #f0f7f1;
  --border-color: #b8d4bf;
  --card-bg-color: #ffffff;
  --text-color: #333333;
  --muted-text-color: #666666;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
}

.assessment-container {
  min-height: 100vh;
  padding: 2rem 0;
}

.max-w-4xl {
  max-width: 896px; /* Approx. 56rem */
  margin: 0 auto;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.sm\:px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

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

.mb-8 {
  margin-bottom: 2rem;
}

.text-3xl {
  font-size: 1.875rem; /* 30px */
}

.md\:text-4xl {
  font-size: 2.25rem; /* 36px */
}

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

.mb-4 {
  margin-bottom: 1rem;
}

.text-lg {
  font-size: 1.125rem; /* 18px */
}

.text-muted-foreground {
  color: var(--muted-text-color);
}

.card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem; /* 20px */
  font-weight: bold;
}

.card-description {
  color: var(--muted-text-color);
  font-size: 0.875rem; /* 14px */
}

.card-content {
  padding: 1.5rem;
}

.space-y-8 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 2rem;
}

.label {
  font-weight: 500;
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.5rem;
}

.radio-group {
  display: grid;
  gap: 1rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.md\:grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  transition-property: background-color, border-color;
  transition-duration: 150ms;
}

.radio-option:hover {
  background-color: var(--muted-bg-color);
  cursor: pointer;
}

.radio-input {
  appearance: none;
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.radio-input:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--primary-color);
}

.radio-label {
  flex: 1;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
}

.textarea {
  display: block;
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  min-height: 120px;
}

.score-display {
  padding-top: 1.5rem;
}

.flex {
  display: flex;
}

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

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

.text-xl {
  font-size: 1.25rem;
}


.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); 
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.dialog-overlay.dialog-open {
    display: flex; 
}

.dialog-content {
    background-color: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    max-height: 90vh; 
    overflow-y: auto;
}


.dialog-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.dialog-title {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.text-destructive {
    color: #ef4444; 
}

.dialog-description {
    font-size: 0.95rem;
    color: #6b7280; 
}

.dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}


.checkbox-input {
    width: 16px;
    height: 16px;
    min-width: 16px; 
    margin-right: 8px;
    cursor: pointer;
}

.flex { display: flex; }
.items-start { align-items: flex-start; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.flex-1 { flex: 1 1 0%; }
.leading-relaxed { line-height: 1.625; }
.cursor-pointer { cursor: pointer; }


.overflow-hidden {
    overflow: hidden !important;
}


.button-primary {
    background-color: #2d5f3f;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1rem;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
}

.button-primary:hover {
    background-color: #1a3320;
}

.button-outline {
    background-color: white;
    color: #2d5f3f;
    border: 1px solid #2d5f3f;
}

.button-outline:hover {
    background-color: #f0f7f1;
}

.button:disabled, .button-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Iconos */
.icon {
    display: inline-block;
    vertical-align: middle;
}

.text-4xl {
  font-size: 2.25rem;
}

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

.text-sm {
  font-size: 0.875rem;
}

.buttons-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.button {
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background-color 150ms;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button:hover {
  background-color: #264a32;
}

.button:disabled {
  background-color: var(--border-color);
  color: var(--muted-text-color);
  cursor: not-allowed;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.grid {
  display: grid;
}

.md\:grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gap-6 {
  gap: 1.5rem;
}

.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1rem;
}

/* ===================================== */
/* 4. Estilos para el Formulario de Email */
/* ===================================== */

/* Estilos del contenedor del formulario */
.bg-gray-100 {
    background-color: #f7f7f7; /* Gris claro para diferenciar */
}
.border-dashed {
    border-style: dashed;
}
.border-gray-300 {
    border-color: #d1d5db; /* Gris de borde */
}
.my-10 {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}
.p-6 {
    padding: 1.5rem;
}

/* Estilos para el input de correo */
.flex-grow {
    flex-grow: 1;
}

.max-w-sm {
    max-width: 24rem; /* Ancho máximo para el formulario */
}

/* INPUT ESPECÍFICO */
#email-form input[type="email"] {
    /* Clases: flex-grow p-2 border border-gray-300 rounded-md text-base */
    padding: 0.5rem; /* p-2 */
    border-width: 1px; /* border */
    border-style: solid;
    border-color: #d1ddff; /* border-gray-300 */
    border-radius: 0.375rem; /* rounded-md */
    font-size: 1rem; /* text-base */
    width: 100%; /* Asegura que ocupe el espacio flexible */
    box-sizing: border-box; /* Incluir padding y borde en el ancho */
    transition: border-color 0.2s, box-shadow 0.2s;
}

#email-form input[type="email"]:focus {
    outline: none;
    border-color: #2d5f3f; /* Color primario al enfocar */
    box-shadow: 0 0 0 2px rgba(45, 95, 63, 0.2);
}

/* Estilos para el botón de Suscribirse (button-secondary) */
.button-secondary {
    /* Clases: button-secondary text-sm px-4 */
    background-color: #f8fafc; /* secondary/background (gris muy claro) */
    color: #2d5f3f; /* text-primary */
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem; /* p-2 px-4 */
    border-radius: 0.375rem; /* rounded-md */
    font-size: 0.875rem; /* text-sm */
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    white-space: nowrap; /* Evita que el texto se rompa */
}

.button-secondary:hover:not(:disabled) {
    background-color: #e2e8f0; /* Color al pasar el ratón */
    border-color: #cbd5e1;
}

/* Estilos para el contenedor flex */
#email-form {
    display: flex;
    gap: 0.5rem; /* gap-2 */
    align-items: center;
}

/* Estilos para los mensajes de estado del formulario */
#form-message {
    font-weight: 500;
}
.text-green-500 { color: #10b981; } /* Éxito */
.text-red-500 { color: #ef4444; }   /* Error */
.text-blue-500 { color: #3b82f6; }  /* Cargando */
.hidden { display: none; }

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


.card {
    border: 1px solid #e2e8f0; 
    border-radius: 0.5rem; 
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    background-color: white;
}


.border-primary\/20 {
    border-color: rgba(45, 95, 63, 0.2); 
}


.bg-gradient-to-r {
    background: linear-gradient(to right, 
        rgba(240, 247, 241, 0.3), 
        rgba(248, 250, 252, 0.3)  
    );
}

.text-primary {
    color: #2d5f3f; 
}

.text-muted-foreground {
    color: #64748b;
}

.bg-background\/50 {
    background-color: rgba(255, 255, 255, 0.7); 
    backdrop-filter: blur(2px); 
}


.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.text-center { text-align: center; }


.mb-4 { margin-bottom: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.p-4 { padding: 1rem; }
.rounded-lg { border-radius: 0.5rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.text-xl { font-size: 1.25rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-2xl { font-size: 1.5rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.border-t { border-top: 1px solid #e2e8f0; }
.pt-2 { padding-top: 0.5rem; }
.mt-2 { margin-top: 0.5rem; }